s-news
[Top] [All Lists]

Re: Aliasing Splus and using BATCH or SBATCH

To: andreas.krause@novartis.com
Subject: Re: Aliasing Splus and using BATCH or SBATCH
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Tue, 30 Aug 2005 18:09:38 +0100 (BST)
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <OFFB67B028.65F99BC1-ONC125706D.004C1F08-C125706D.004DA393@EU.novartis.net>
References: <OFFB67B028.65F99BC1-ONC125706D.004C1F08-C125706D.004DA393@EU.novartis.net>
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

<Prev in Thread] Current Thread [Next in Thread>