I tried all of them still its not working.
$command ="nice R --slave --args $DirName $SubDirName < read_param
+eters_by_file_batch.R > $SubDir?outR.txt";
my $oput=`$command`;
I am lost | [reply] [d/l] |
| [reply] [d/l] [select] |
my $ifile = "read_parameters_by_file_batch";
my $ofile = "outR.txt";
my @args = ( $DirName, $SubDirName );
my $cmd = "R --slave --args @args < $ifile > $SubDirName/$ofile 2>
+/dev/null &"
my $failed = system( $cmd );
if ( $failed ) {
die "$0: command failed: ($failed) $!\n trying: $cmd\n";
}
Try running it that way from a shell first, to see if it does what you want (there's a chance you might need to fix something in the command line syntax, so be sure you have that right before trying it via http).
Then, when you try it in your cgi script (or whatever), if it fails, be sure to check the server's error log. If you can't do that, try using the "FatalsToBrowser" trick in CGI, so that the error report goes to the browser.
If you still have trouble and decide you want to post another question, you had better include the actual code you are using, and the actual error message(s) you are getting. Just saying "it doesn't work" is no way to make progress. If necessary, create a small script that does nothing else except demonstrate the problem, so you can post it in full. That will give us more of what we need in order to help. | [reply] [d/l] |