Thank you, this sheds more light on what's going on.
Not being a real unix/bash guru the way I understand this is that cled
(command line editor?), called from the script Splus, exits silently if
called with BATCH in out.
Makes me wonder if that could and should not be filtered out by the Splus
script.
Actually I wonder why anyone would not want the command retrieval
functionality for the command line and why one needs the "-e" option.
Andreas Krause
Prof Brian Ripley <ripley@stats.ox.ac.uk>
08/30/2005 07:09 PM
To: Andreas Krause/PH/Novartis@PH
cc: s-news@lists.biostat.wustl.edu
Subject: Re: [S] Aliasing Splus and using BATCH or SBATCH
Category:
I cannot run Splus -e for 6.2 any more (it does not work with a 2.6.x
kernel). With 7.0 I get an empty test.log. This is not surprising as if
you run
Splus -e BATCH test.ssc test.log
you get the same. If you read the script file you will see if it
encounters -e it uses
S_FRONT_END="$CLED $CLEDJCTL --"
in
exec $S_FRONT_END "$c" ${1+"$@"}
do it runs cled and not the batch script.
On Tue, 30 Aug 2005 andreas.krause@novartis.com wrote:
> S-Plus 6.2.1 for Linux using Red Hat and bash.
>
> I have aliased Splus to Splus -e and want to run Splus in batch mode.
> This seems to prevent Splus from running BATCH properly.
> Details:
>
>> From the Unix (bash) command line, enter
>
> # set the alias
> alias Splus="Splus -e"
>
> # generate a command file
> cat > test.ssc
> print(1:11)
> <Ctrl-D>
>
> # run it
> Splus BATCH test.ssc test.log
>
> No visible effect of anything being done, no file test.log created.
> However,
>
> Splus SBATCH -input test.ssc
>
> works as I expect it, creating files test.slg and test.txt.
>
> It seems that the problem is in the script execution, <Splus
> directory>/cmd/BATCH but if I add a line
> echo $1 in the beginning, I get the name of the script file (so things
> seem to be fine).
> Any idea what's going on and how I can still alias Splus as above?
> Btw, without the alias set all works fine.
>
> Thanks in advance!
>
> Andreas
>
> --------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu. To
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> the BODY of the message: unsubscribe s-news
>
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
|