This suggestion won't do it. The semicolons just separate it into further statements, i.e. the following are equivalent: ifup eth0 /etc/init.d/./samba/start /etc/init.d/./hylafax start ifup eth0 ; /etc/init.d/./samba/start ; /etc/init.d/./hylafax start And the below exapmle is just like ifup eth0 ; ; /etc/init.d/./samba start ; ; /etc/init.d/./hylafax start or " ifup eth0 /etc/init.d/./samba start /etc/init.d/./hylafax start " The problem is as someone else has already described: ifup returns before networking is fully up, so you'll need to wait a little bit (i.e. with sleep) before proceeding. Vineet * W. Paul Mills (wpmills@Mills-USA.com) [010625 14:01]: > > > ifup eth0 ; > /etc/init.d/./samba start ; > /etc/init.d/./hylafax start > > > > vdemart@supereva.it (Victor) writes: > > > 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? > > > -- > * For God so loved the world that He gave his only begotten Son, * > * that whoever believes in Him should not perish... John 3:16 * > > > > -- > To UNSUBSCRIBE, email to debian-user-request@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org >
Attachment:
pgpLp4EDFI7Ec.pgp
Description: PGP signature