get back of redirect the nohup
Hi
I am new to linux and would like to ask a question. I am using remote SSH and i am sending jobs with nohup command. This is the command that i use. nohup Java -jar myfile.jar > output.log 2>&1 & My program is running more tha 3-4 days, i need to redirect the output of my job every day because of the large amount of outputs. I mean the first day nohup Java -jar myfile.jar > output1.log 2>&1 & The second day nohup Java -jar myfile.jar > output2.log 2>&1 & And third day nohup Java -jar myfile.jar > output3.log 2>&1 & An so on for all the days IS there any way to do this manually or automatically ? Thank you in advanced ki_ha1984 |
hi
use cron deamon i think this website may help you http://www.thegeekstuff.com/2011/07/...ery-5-minutes/ |
Thank you very much for your answer.
Like i see in website, it is a system that repeat the same experiment in different times. My problem is that i need run an experiment for many days, example 10 days. And every day to redirect the output of the experiment in different outputfile without to stop the experiment. Not to re-execute the experiment every day. Sorry about my previous wrong explanation. This mean that the cron job does not help me. Any different help? |
Any idea ?
|
All times are GMT -5. The time now is 10:08 AM. |