LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   get back of redirect the nohup (https://www.linuxquestions.org/questions/linux-newbie-8/get-back-of-redirect-the-nohup-4175514779/)

ki_ha1984 08-14-2014 03:11 AM

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

dundu 08-14-2014 03:18 AM

hi
use cron deamon

i think this website may help you http://www.thegeekstuff.com/2011/07/...ery-5-minutes/

ki_ha1984 08-14-2014 03:50 AM

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?

ki_ha1984 08-14-2014 06:50 AM

Any idea ?


All times are GMT -5. The time now is 10:08 AM.