Xref: utzoo comp.unix.questions:25652 comp.unix.internals:348 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!telxon!ping!gorpong From: gorpong@ping.uucp (Gordon C. Galligher) Newsgroups: comp.unix.questions,comp.unix.internals Subject: Re: running an NNTP program from crontab Message-ID: <1990Sep22.024333.507@ping.uucp> Date: 22 Sep 90 02:43:33 GMT References: Distribution: comp Organization: The 23rd. Century Lines: 31 In article rcardena@oracle.com (Ricardo Cardenas) writes: > >What differences are there when running with crontab as opposed to >running directly from the shell? Anything I should be aware of? I >posted the following to gnu.emacs.gnus but noone has been able to help >me. Thanks in advance, > One of the major differences is terminal attachment. When you execute it in the shell, it has a controlling terminal (namely yours). When you background it, it also has a controlling terminal. When jobs are executed from cron, they do not have controlling terminals. Gnu-emacs may attempt to do things with a terminal, which it does not have. In your 'ps' listing: >USER PID %CPU %MEM SZ RSS TT STAT START TIME COMMAND >rcardena 7440 72.8 5.1 520 344 ? R N 16:07 13:49 /bin/emacs -batch -l /elisp/gnus -f gnus-batch-kill talk.bizarre >rcardena 7439 0.0 0.4 32 24 ? I N 16:07 0:00 sh -c /bin/emacs -batch -l /elisp/gnus -f gnus-batch-kill talk.bizarre ^^ It shows no controlling terminal. This may have nothing to do with your problem, but it is definitely something different from a shell and cron job. I do hope this helps, and if not you directly, I hope it will jog someone's memory into figuring out the problem. -- Gordon. -- Gordon C. Galligher 9127 Potter Rd. #2E Des. Plaines, Ill. 60016-4881 telxon!ping%gorpong@uunet.uu.net (not tested) (Is this even legal??) ...!uunet!telxon!ping!gorpong (tested) (And it works!) "It seems to me, Golan, that the advance of civilization is nothing but an exercise in the limiting of privacy." - Janov Pelorat -- _Foundation's Edge_