Here is what I use to run octave with sun's grid engine. PATH and LD_LIBRARY_PATH are set in my bash startup scripts. To run: qsub ~/bin/run_octave.sh script_name
"script_name" (without .m) is assumed to be in octave's path. hope this helps, Alex $ cat run_octave.sh #!/bin/sh #$ -S /bin/bash #$ -N octave #$ -cwd #$ -l h_vmem=2G #$ -l h_rt=24:00:00 #$ -j y export script=$1 source $HOME/.bash_profile source $HOME/.bashrc echo PATH: $PATH echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH $HOME/local/bin/octave <<EOF which $script tic $script toc EOF On Thu, Sep 9, 2010 at 8:18 AM, DoucheWhite <drl...@msn.com> wrote: > > I need to submit octave jobs through sun grid engine which I am not so > familiar with. More than that I, the jobs need to be started by a shell > script file. Can someone tell me the right way to use the qsub command in > sun grid engine to start my job. > I thought it would be something like > qsub ./run_octave myfile.m > run_octave is the shell script I wrote listed below > > #!/bin/sh -f > > FILE=$1 > > LGFL=`echo $FILE | sed 's/.$//' | sed 's/.$//'` > > echo "Running -> " $FILE > echo "Matlab Output -> " $LGFL".log" > > nohup Octave -q < $FILE >& $LGFL".log" & > > echo "Command Started" > > It doesn't seem to work though. Also after job started, how can I check > which .m file is running? qstat seems to only describe the job as > run_octave. > Thanks > > -- > View this message in context: > http://old.nabble.com/submitting-jobs-through-grid-engine-tp29647222p29647222.html > Sent from the octave-dev mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Octave-dev mailing list > Octave-dev@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/octave-dev > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev