This must be a novie quesion. I try to activate Splus in Unix with shell script
as following:
prefix=`echo $1 | /bin/sed -e 's/.txt$//'`
HOME=$prefix
mkdir $prefix
chmod 777 $prefix
cd $prefix
/usr/local/bin/Splus CHAPTER<<END
source("/home/ahz095/proj/errest/ErrorCal2")
foo<-ErrorCal("$1", $2, $3, $4)
q()
Although we have changed the default HOME path to \tmp\ where the nobody can
write, Splus fail to creat its structures, such as MySwork in the tmp directory
because of pemission error. Since we are sure files and directories can be
made under the /tmp directory by any user, inlcuding the nobidy, there must be
something we have not set up correct from Splus side for it to be activated.
Any suggestions about activate Splus and run a script from CGI as NOBODY?
Thank you.
Xudong
|