advait has asked for the wisdom of the Perl Monks concerning the following question:

Hi
I want my cgi to call a R script with some command line arguments. Since this script takes very long time and is CPU extensive job I would like to batch it. Can anyone give me the idea how to do it.
when I say
batch -f R --slave <rscript.R> --args arg1
I get an error
/usr/bin/getopt: unrecognized option `--slave'
/usr/bin/getopt: unrecognized option `--args'
batch: error parsing command-line arguments
please help
  • Comment on How to call unix/linux batch command from perl

Replies are listed 'Best First'.
Re: How to call unix/linux batch command from perl
by Joost (Canon) on Mar 06, 2008 at 21:20 UTC
Re: How to call unix/linux batch command from perl
by northwind (Hermit) on Mar 06, 2008 at 21:31 UTC

    Would this question perhaps be related to this or this (or even this)?