bash question

ken_i_m at elegantinnovations.net ken_i_m at elegantinnovations.net
Sat Feb 5 14:21:02 PST 2005


Hi,

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

<bash stuff>
  sleeper &
<more bash stuff>


<sleeper>
  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
nothing.
-- 
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