[ILUG] Re: [OT?] batch jobs query
John P . Looney
valen at tuatha.org
Fri Sep 17 14:58:03 IST 1999
On Fri, Sep 17, 1999 at 01:39:11PM +0000, michael conry mentioned:
> Hi,
> this is a unix rather than linux query, not sure if that is quite on
> topic. If I have a batch file set up to run a number of programs (or a
> program a number of times), how do i set it so that the lines are
> executed sequentially (by which i mean, that line two is not executed
> until processes arising from line one have completed). The need to do
> this arises out of problems with licensed software and its internal
> queuing (which i do not have access to).
> Thanks in advance,
> mick
Something like:
% command1 &
% command 2 &
% wait
The wait command will pause until all waiting jobs are done. You can give
it a process or job id, if you want, and it'll wait just for that one.
Kate
--
Microsoft. The best reason in the world to drink beer.
More information about the ILUG
mailing list