Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!fernwood!oracle!news From: nhess@gumby.us.oracle.com (Nate Hess) Newsgroups: comp.arch Subject: Re: Tradeoffs Message-ID: <1990Jun28.160248.25989@oracle.com> Date: 28 Jun 90 16:02:48 GMT References: <1990Jun16.135245.19726@hellgate.utah.edu> <.X144F4@ggpc2.ferranti.com> <515@van-bc.wimsey.bc.ca> Sender: news@oracle.com Reply-To: nhess@gumby.us.oracle.com (Nate Hess) Organization: Oracle Corporation, Belmont, CA Lines: 29 In article <515@van-bc.wimsey.bc.ca>, jtc@van-bc (J.T. Conklin) writes: >In article <.X144F4@ggpc2.ferranti.com> peter@ficc.ferranti.com (Peter da Silva) writes: >>How do you take your fancy Emacs script and run it from cron, >>or in a Makefile? >By running emacs in batch mode. >`-batch' > Batch mode is used for running programs written in Emacs Lisp > from shell scripts, makefiles, and so on. Normally the `-l' > switch or `-f' switch will be used as well, to invoke a Lisp > program to do the batch processing. Extremely useful and *very* portable. I once wrote an Emacs lisp script to massage the output of a simulator to match the output format of a tester. I had done the coding and testing of the script on Un*x box. I ftp'ed the script to the VMS machine that the tester was hooked up to, and it worked without any modifications. Had I written it in sh, csh, sed, and/or awk, it wouldn't have ported without a major rewrite. --woodstock -- "What I like is when you're looking and thinking and looking and thinking...and suddenly you wake up." - Hobbes nhess@oracle.com or ...!uunet!oracle!nhess or (415) 598-3046