get back of redirect the nohup
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