Quote:
Originally Posted by ekdya
Hi
running testing with 2.6.15, I have this script which I run by
#bash scirptname
echo "working"
exec ifup -a
sleep 5
perl -pi -e 's/"thisIP"/"thatIP"/e' /etc/resolv.conf
echo "done"
it fires up the first 2 liens but not the rest (sleep and the text replacement and the done echo".
how can do this?
thanks
|
I'm no expert in scripting, but this is from man exec:
Quote:
The exec family of functions replaces the current process image with a new process image.
|
I guess you could try without the exec, just put the ifup -a .