bash question

ken_i_m at ken_i_m at
Sat Feb 5 14:21:02 PST 2005


I want to branch a process that sleeps, then does something when it
wakes up.

<bash stuff>
  sleeper &
<more bash stuff>

  echo "going to sleep"
  sleep 1m
  echo "I'm awake"

If I run 'sleeper' directly it works as expected.  If it's started by the
main bash script it does the stuff before the sleep, sleeps, then
I reason and act, therefore, ken_i_m
Chief Gadgeteer, Elegant Innovations
Founder, Bozeman Linux Users Group
(406) 581-0495

More information about the lfs-chat mailing list