bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems substituting 'jobs' in a bash script


From: Bob Proulx
Subject: Re: problems substituting 'jobs' in a bash script
Date: Thu, 21 Feb 2008 23:53:14 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

Robert Whent (rwhent) wrote:
> sleep 100 &
> sleep 200 &
> sleep 300 &
> JOBS=`jobs`
> I have also trawled the web and can find no reports of any issues ?

More typically this data would be collected up as you go along.

  sleep 100 &
  JOBS="$JOBS $!"
  sleep 200 &
  JOBS="$JOBS $!"
  sleep 300 &
  JOBS="$JOBS $!"
  echo $JOBS
  
Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]