interesting, i've always assumed by default in shell scripts that commands are executed sequentially and each command has to finish first before the next one gets run. you're saying that isn't so?
-- vince
Sherwin T. Ang wrote:
If you need the first command to finish first before executing the second one, write a script with a wait command
#!/bin/sh firstcommand wait secondcommand
and edit or add it in your crontab
----- Original Message ----- From: "Dean Michael Berris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 24, 2003 11:32 AM Subject: Re: [plug] /etc/crontab
On Mon, 2003-03-24 at 11:23, Nathan V. Aceron wrote:http://plug.linux.org.ph
sirs:im not sure if you can do this in cron, but you can do:
how do i execute succeeding multiple commands in one line in my /etc/crontab? also, every command needs to finish executing first before executing the next.
(command1);(command2);(command3);...;(commandN)
or you could write one script that will run the commands in succession:
command1 command2 command3 . . . commandN
and execute this script via cron.
HTH
-- -=[mikhail]=-
aka Dean Michael C. Berris mobile +63 917 8901959 work +63 49 5680024 http://free.net.ph/Members/mikhailberis
_
Philippine Linux Users Group. Web site and archives at
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]http://marc.free.net.ph
Fully Searchable Archives With Friendly Web Interface at
To subscribe to the Linux Newbies' List: send "subscribe" in the body to[EMAIL PROTECTED]
_ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
_ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
