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: > > > > sirs: > > > > 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. > > > > im not sure if you can do this in cron, but you can do: > > (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 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]
