[comp.emacs] Getting an inferior shell using GNU Emacs in Batch Mode

brown@cs.utk.edu (Lance A. Brown) (06/28/91)

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