running an NNTP program from crontab
Ricardo Cardenas
rcardena at oracle.com
Wed Sep 19 09:35:58 AEST 1990
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 at oracle.com
(please email if possible)
Newsgroups: gnu.emacs.gnus
From: rcardena at 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 at 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 at oracle.com
Oracle Corp. \/\\ USENET: uunet!oracle!rcardena
Redwood Shores, CA, USA \\
More information about the Comp.unix.internals
mailing list