Article View: comp.emacs
Article #3516Getting an inferior shell using GNU Emacs in Batch Mode
From: Lance A. Brown
Date: Thu, 27 Jun 1991 17:18
Date: Thu, 27 Jun 1991 17:18
25 lines
1560 bytes
1560 bytes
Hi,
I have a package that, although normally used interactively, can be run
from a cron job periodically to perform routine work.
This package starts up a *shell* buffer with /bin/csh in it. It uses the
buffer to run a program that hooks up to a server and then interactively
sends commands to the server and analyzes the output.
This all works fine and dandy when I run it interactively, but blows up
if I try to do it in a cron job. I have determined that things are going
awry when the emacs -batch tries to start up the /bin/csh. When the csh
realizes that it does not have a connection to a tty device it shuts down
immediately. This of course means that the emacs cannot run the client
program etc.
I am running GNU Emacs 18.55.11 on a Sun with SunOS 4.1. Does anyone
know of a way to keep the csh from killing itself?
Lance
--
Lance A. Brown <brown@cs.utk.edu>
The Crystal Wind is the Storm, and the Storm is Data,
and the Data is Life -- The Player's Litany
from _The Long Run_ by D.K. Moran
Technical Details
Message-ID:
<BROWN.91Jun27131837@thud.cs.utk.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!spool.mu.edu!sol.ctr.columbia.edu!emory!utkcs2!!brownShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!spool.mu.edu!sol.ctr.columbia.edu!emory!utkcs2!!brown From: brown@cs.utk.edu (Lance A. Brown) Newsgroups: comp.emacs Subject: Getting an inferior shell using GNU Emacs in Batch Mode Message-ID: <BROWN.91Jun27131837@thud.cs.utk.edu> Date: 27 Jun 91 17:18:37 GMT Sender: usenet@cs.utk.edu (USENET News Poster) Distribution: comp Organization: /silver/homes/brown/.organization Lines: 20