[R] RCMD for Windows

Duncan Murdoch murdoch at stats.uwo.ca
Thu Mar 16 18:46:15 CET 2006


On 3/16/2006 12:17 PM, Louis Zollo wrote:
> Trying to use rcmd in our Windows environment to launch tasks on remote
> servers. We are using the job scheduler from Tidal corporation. The
> problem is the return code that's coming back to the job
> scheduler,Tidal, is from the RCMD NOT from the tasks that it launched.
> 
>  
> 
> We need to get the return code from the task that was launched via rcmd.

One way to do this would be to write a wrapper for your command, and get 
Rcmd to launch the wrapper. The wrapper can process the result code from 
the real task in any way it likes.

Another would be to replace Rcmd with your own launching script; you can 
see from the source code which environment variables it sets up and set 
them up yourself.

It might be safe to edit the Rcmd source (in 
src/gnuwin32/front-ends/rcmdfn.c) so that it returns the exit code from 
whatever task it launches, but that may mess up something else in the R 
build process.  Try it if you like, but I wouldn't make it a high 
priority to accept a patch that did that.

Duncan Murdoch
> 
>  
> 
> Help
> 
>  
> 
> Lou Zollo
> 
> Production Control Manager
> 
> Lava Trading, Inc.
> 
> 95 Morton Street, 6th Floor
> 
> New York, NY  10014
> 
> Tel: 212-519-8928
> 
> Fax: 212-519-9283
> 
> www.lavatrading.com
> 
>  
> 
> 
> 
> The information contained in this message and any attachments (the "Message") is intended for specific individual(s), and may be confidential or proprietary. If you are not the intended recipient, please notify the sender immediately, delete this Message and do not disclose. Messages are not secure or error free and can contain viruses and the sender is not liable for any of these occurrences. The sender reserves the right to monitor, record and retain Messages.
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list