[CS-FSLUG] SHELP!!!
K. Luckenbaugh
kluck at gdrs.com
Thu Jul 22 16:18:47 CDT 2004
Josiah Ritchie wrote:
>How about 2 scripts? One is called to do what needs to be done in the
>other xterm environment. Am I missing something?
>
>JSR/
>
>
I was really bored, and just wanted to see if it could be done. I don't
need to do this. My mind was bored.
-Kelly
>On Thu, 2004-07-22 at 14:28, K. Luckenbaugh wrote:
>
>
>>Hey all,
>>
>>I am trying to write a shell script that does the following:
>>
>>cd /etc/sysconfig/network
>>(as root) cp <an ifcfg file I made > ifcfg-eth-idxxxxxxx
>>(open an xterm) xterm -e (this is what I am having trouble with
>>->) sudo /sbin/ifdown eth0 (then) ifup eth0
>>ifconfig (to check all is well)
>>
>>
>>I can get as far as "ifdown eth0" without a hitch, but I can't get
>>"ifup eth0" and "ifconfig". The shell exits after it completes "ifdown
>>eth0" (even with a "&" at end of line).
>>What is the syntax for multiple commands (ie. ifdown, then ifup).
>>
>>Thanks
>>Kelly L
>>
>>_______________________________________________
>>ChristianSource FSLUG mailing list
>>Christiansource at ofb.biz
>>http://cs.uninetsolutions.com
>>
>>
>
>
>_______________________________________________
>ChristianSource FSLUG mailing list
>Christiansource at ofb.biz
>http://cs.uninetsolutions.com
>
>
>
More information about the Christiansource
mailing list