I have 2 shell scripts a.sh and b.sh,
I'd like to start them and put them to background.
I can do it with 2 commands:
sh a.sh &
sh b.sh &

Is it possible to use only 1 command?
I tried
sh a.sh & ; sh b.sh &

But I got "syntax error near unexpected token `;'"

It seems that I can do it with:
(sh a.sh &) ; (sh b.sh &)
But in this case, I cannot find those background processes with
"jobs", since there are run in another shell.

Is it possible to use only 1 command to do this and still can use
command "jobs"?

Thanks.

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

Reply via email to