[Techtalk] shell scripting

Emma Jane Hogbin emmajane at xtrinsic.com
Mon Feb 10 20:39:51 EST 2003


I added a ; at the end of each line and this seems to have fixed the
problem. Thanks. :)

On Mon, Feb 10, 2003 at 10:47:04PM +0000, Maria Blackmore wrote:
> > How do I say (in the shell script), "don't start until it's your turn"?
> hmm, normally I would suggest to put them all on one line, and put &&
> between them.
> && means "only run the next command if the previous command returned exit
> code 0", which in turn gives the effect that you have to wait for it to
> finish, because until it finishes you don't have an exit code.

Can you put && at the end of the line and have it do the same thing, or
does it need to be all on the same line to work its magic? 

> If you run one of the commands on a command line, by itself, do you get a
> shell prompt back straight away?

No. I have to wait for it to finish to get my prompt back unless I force
it into the background with a single &.

emma

-- 
Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]



More information about the Techtalk mailing list