From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1012a6,aba8e38b318a2635 X-Google-Attributes: gid1012a6,public X-Google-Thread: fee84,aba8e38b318a2635 X-Google-Attributes: gidfee84,public From: Barry Margolin Subject: Re: Cron and background process problems Date: 2000/04/07 Message-ID: #1/1 X-Deja-AN: 608154355 Distribution: world References: <38ee53a1@news.together.net> X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: abuse@gtei.net X-Trace: /K0ZEC/uQwpttxQBIiXYLQCGGPie+Iw6Zqsj58eARjVZFPIWGV88AVn1VH26GZZSBBDI5puL2XAp!Z9rBRqyfpacYkeqP/CgQTGufEn6HMv+EUeH9DfEyvwnvczlVE3jtjGpIhDI= Organization: GTE Internetworking, Cambridge, MA X-Copies-To: never NNTP-Posting-Date: Fri, 07 Apr 2000 21:34:45 GMT Newsgroups: comp.unix.shell,comp.unix.osf.osf1 Originator: barmar@bbnplanet.com (Barry Margolin) In article <38ee53a1@news.together.net>, Dale Caldwell wrote: >This script works great manually. I can kill all or selective processes, >run my script and the appropriate action is taken, then the log file is >emailed to me. > >If I put the script into crontab, running every 5 minutes, the log file is >sent, but the processes don't exist. Many people post messages saying that a script works fine manually, but not from cron. This is almost always due to the fact that the script depends on environment settings from their .profile, .login, or .cshrc. Since none of these are executed by a cron job, scripts that depend on them fail. >I suspect that every time cron runs, restarts the 'dead' process, it then >shuts down. When cron shuts down, the processes are being killed. I don't think so. -- Barry Margolin, barmar@genuity.net Genuity, Burlington, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.