Xref: utzoo comp.unix.questions:25662 comp.unix.internals:354 Path: utzoo!attcan!uunet!fernwood!oracle!news From: rcardena@oracle.com (Ricardo Cardenas) Newsgroups: comp.unix.questions,comp.unix.internals Subject: running an NNTP program from crontab Message-ID: Date: 18 Sep 90 23:35:58 GMT Sender: news@oracle.com Distribution: comp Organization: Oracle Corp. Lines: 56 Hi wizards, I have a problem you might help me resolve. I have an ELISP (emacs lisp) program that uses a news-reader (GNUS) and tries to connect out to a newshost server via NNTP. When I run it from the shell command line, it works beautifully. It also works fine when I put it in the background from the command line. Now I want it to run automatically from crontab, but it hangs for hours when trying to open the NNTP connection. Then the program dies, never having connected. The same thing happens if I put my program into the background FROM A SHELL SCRIPT (as opposed to from the command line, where it works fine). 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, Ricardo rcardena@oracle.com (please email if possible) Newsgroups: gnu.emacs.gnus From: rcardena@oracle.com (Ricardo Cardenas) Subject: HELP: trying to run a GNUS elisp program from crontab Organization: Oracle Corp. Distribution: gnu Date: Sat, 15 Sep 90 23:33:37 GMT gnus-batch-kill (in gnus.el) works well from the cmd line. Now I am trying to get it to run from crontab. But it hangs. It's getting stuck in trying to establish the connection to the NNTP server (I checked the output). It just hangs. Any reason the connection can't be established when running the program from cron ? Am I missing something? I have a Sun-3/80, Emacs 18.55.1, GNUS 3.13, NNTP 3.10. Thanks, please email if you can help.. Ricky rcardena@oracle.com ------------------------------------------------------------------------ here's ps ux output: 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 and here's my personal crontab entry 0 16 * * * /bin/emacs -batch -l /elisp/gnus -f gnus-batch-kill talk.bizarre -- Ricardo Cardenas \\/\ INTERNET: rcardena@oracle.com Oracle Corp. \/\\ USENET: uunet!oracle!rcardena Redwood Shores, CA, USA \\