> 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
> >

You can appreciate the power of wait command if you are sending jobs in the
background

consider the scripts below

    #!/bin/sh
        updatedb &
        wait
        locate <put desired files here>

this will tell to the shell that updatedb must finish first before it
execute the locate command


jon


_
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]

Reply via email to