[CS-FSLUG] SHELP!!!
K. Luckenbaugh
kluck at gdrs.com
Thu Jul 22 13:28:58 CDT 2004
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
More information about the Christiansource
mailing list