Nikos Vassiliadis
2016-07-10 15:34:40 UTC
Hi,
Is there a way to redirect "jobs" output?
While this works on other bourne-like shells like zsh
or bash, it doesn't on /bin/sh.
Thanks,
Nikos
Is there a way to redirect "jobs" output?
While this works on other bourne-like shells like zsh
or bash, it doesn't on /bin/sh.
$ sleep 100 &
$ sleep 100 &
$ jobs -p
1760
1761
$ jobs -p | cat
$
for j in $jobs
do
(
blah; blah; blah;
) &
done
and I'd like to limit the number of jobs my script could create.$ sleep 100 &
$ jobs -p
1760
1761
$ jobs -p | cat
$
for j in $jobs
do
(
blah; blah; blah;
) &
done
Thanks,
Nikos