s-news
[Top] [All Lists]

Aliasing Splus and using BATCH or SBATCH

To: s-news@lists.biostat.wustl.edu
Subject: Aliasing Splus and using BATCH or SBATCH
From: andreas.krause@novartis.com
Date: Tue, 30 Aug 2005 16:08:01 +0200
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


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