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

How to start program in cron script?



Hi!

I am giving up.  For at least an hour I tried to write a
shell script (t obe run by cron) that start another program
and sends it into the background.

For example, I tried:

#! /bin/sh
/usr/local/bin/myprogram &

or:

#! /bin/sh
nohup /usr/local/bin/myprogram &

But no matter how I did it, I ended up with the program running
as it should but the starting shell script (let's call it test.sh)
became a zombie:  Output from "ps auxwwwww":

 spiegl   32585  1.7  0.0     0     0 Z      0:00 (test.sh <zombie>)

What am I doing wrong???  Please someone enlighten me!

Thanks so much,
 Andy.

-- 
 Andy Spiegl, University of Technology, Muenchen, Germany
 E-Mail: Andy@spiegl.de     URL: http://www.spiegl.de
 Finger pgp.andy@spiegl.de for my PGP key
                                o      _     _         _
  --------- __o       __o      /\_   _ \\o  (_)\__/o  (_)
  ------- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/
  ------ (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Reply to: