I always use computer of campus to run R program. Every time, I always check it in terminal (I use ssh
to connect to that computer) again and again to see whether the program is finished or not. Is there a way that the computer which is running my program can reminds me (e.g. send email to me) when the program is finished?
Asked
Active
Viewed 101 times
1

Ben
- 115
- 9
1 Answers
2
You can write a BASH
script that runs your R task and send you Email after it finish.
to send Email in bash
see here: https://stackoverflow.com/a/8260923/1726419
-
how to realized sending email after it finishes? I know how to write a shell script to run my task and how to send email. – Ben Apr 18 '15 at 22:37
-
so the script will be somthing like: A.Run R. B.Send Mail. – yossico Apr 18 '15 at 22:39
-
@Ben does your R task auto close it's process after it finish? – yossico Apr 18 '15 at 22:40
-
Yes. The R tasks (I use paralllel in one computer) will auto closed. – Ben Apr 18 '15 at 22:54
-
I already write a shell script to run R programs in linux. But I have no idea how to send email after program finished. – Ben Apr 18 '15 at 22:56
-
Ok. so if you luanch the R task from bash script and after the task you write the mail command it should work. – yossico Apr 18 '15 at 22:56
-
The link in the answer shows how to send Email - just add this part after the R part – yossico Apr 18 '15 at 23:00