Re: script
On Mon, Jun 25, 2001 at 01:44:23PM +0000, Victor wrote:
> I'm editing a bash script but I need to execute in the given order
> each command to completion. E.g.
>
> ifup eth0
> /etc/init.d/./samba start
> /etc/init.d/./hylafax start
>
> Unfortunately putting this lines in a file, while the script is still
> executing ifup eth0, samba and then hylafax are executed, messing it
> all up.
>
> What shall I do?
how about ifup eth0 && /etc/init.d/samba start && /etc/enit.d/hylafax
start
otherwise you can use something like
ifup eth0
sleep 2
/etc/init.d/samba start
yours martin
--
GnuPG 1024D/3E8DCCC0 30DC 1D28 1D79 32F5 5E67 3ABB 28EE B35A 3E8D CCC0
work: factline Krisper Fabro Harnoncourt OEG (www.factline.com)
Reply to:
- References:
- script
- From: Victor <vdemart@supereva.it>