|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Write a command to file?
HI all
I want to write a command to a file. This is my code: Code:
creddnsscript=creddnsscript.sh
ddnsupdate=ddnsupdate.sh
echo "echo \"networkcard=\`ps ax | grep dhclient | awk '{if (\$6 != \"dhclient\") print \$6;}'\`\" >> $ddnsupdate" >> $creddnsscript
I want the file look like this Code:
echo "networkcard=\`ps ax | grep dhclient | awk '{if (\$6 != \"dhclient\") print \$6;}'\`" >> $ddnsupdate
How can I do? Thanks in advance |
|
#2
|
|||
|
|||
|
An example of writing the output of echo to a text file:
ls * > file where file is the name of the file you want the results of ls * written to. |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Write a command to file? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|