Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-14-2014, 04:11 AM   #1
LQ Newbie
Registered: Aug 2014
Posts: 3

Rep: Reputation: Disabled
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

Old 08-14-2014, 04:18 AM   #2
LQ Newbie
Registered: Jul 2012
Distribution: Redhat,Fedora,centos
Posts: 17

Rep: Reputation: Disabled
use cron deamon

i think this website may help you
Old 08-14-2014, 04:50 AM   #3
LQ Newbie
Registered: Aug 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
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?
Old 08-14-2014, 07:50 AM   #4
LQ Newbie
Registered: Aug 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Any idea ?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
To use or not to use nohup entz Linux - Server 9 04-07-2007 05:52 PM
output redirect back to file mathfeel Linux - Software 1 03-21-2007 01:28 PM
problem with nohup command and nohup file size vbseeker Linux - General 1 09-17-2006 12:36 PM
Pause a Job - bring back as nohup? rizhun Linux - General 3 07-20-2006 09:45 AM
help on nohup vinayuh Linux - General 3 07-22-2005 01:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration