Re: Using the wait function
From: Barry Margolin (barry.margolin_at_level3.com)
Date: 05/29/03
- Next message: wilt: "cannot fork problem"
- Previous message: Varshney: "Re: Need people for full time positions"
- In reply to: Anne: "Using the wait function"
- Next in thread: Bill Marcum: "Re: Using the wait function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 29 May 2003 14:33:33 GMT
In article <73fa94c2.0305290555.82af75f@posting.google.com>,
Anne <apembert@hq.nasa.gov> wrote:
>Hello,
>
>I'm using both tar and gzip in a script which also writes to a LOG
>when both
>functions have been done. But it seems that only the tar is getting
>done, and
>not the gzip.
>I'd like to use the "wait" command, but should it be used between the
>two functions, or after such as in the example:
>
> tar -cvf $FILE dumps
> echo "$FILE created" >> $LOG
> gzip $FILE
> wait
> echo "$FILE was gzipped" >> $LOG
The wait command is used to wait for background processes to finish. Since
you aren't running anything in the background in the script, there's no
need for it. The commands in your script are executed sequentially -- each
one starts when the previous one has finished.
-- Barry Margolin, barry.margolin@level3.com Level(3), Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
- Next message: wilt: "cannot fork problem"
- Previous message: Varshney: "Re: Need people for full time positions"
- In reply to: Anne: "Using the wait function"
- Next in thread: Bill Marcum: "Re: Using the wait function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|