On 11-07-13 4:15 PM, Jorge Cornejo wrote:> Hi, I'm running long code in Batch mode (as a process in ubuntu using
> $nohup R CMD BATCH MyCode.R out.out&), but every one in a while it fail
> and the process stops.
>
> When the code finish with no problems, it sends an e-mail, but if fails,
> I'm not aware unless I check the working process, and I cannot be
> checking the process all day!.
>
> Is there any way to send me a warning when the process stops/fails?
This is really an Ubuntu question, isn't it?
I'd suggest writing a script which calls your R batch file. The last
thing the batch file should do is write some sort of status value. The
last thing the script should do is check and act on the status.
Of course, if whatever kills your batch file kills the script too,
you're out of luck.
Duncan Murdoch