[CS-FSLUG] SHELP!!!
Josiah Ritchie
jritchie at bible.edu
Thu Jul 22 12:36:22 CDT 2004
How about 2 scripts? One is called to do what needs to be done in the
other xterm environment. Am I missing something?
JSR/
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
More information about the Christiansource
mailing list