LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
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
 
Old 08-14-2014, 03:18 AM   #2
dundu
LQ Newbie
 
Registered: Jul 2012
Distribution: Redhat,Fedora,centos
Posts: 17

Rep: Reputation: Disabled
hi
use cron deamon

i think this website may help you http://www.thegeekstuff.com/2011/07/...ery-5-minutes/
 
Old 08-14-2014, 03:50 AM   #3
ki_ha1984
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, 06:50 AM   #4
ki_ha1984
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Any idea ?
 
  


Reply


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 04:52 PM
output redirect back to file mathfeel Linux - Software 1 03-21-2007 12:28 PM
problem with nohup command and nohup file size vbseeker Linux - General 1 09-17-2006 11:36 AM
Pause a Job - bring back as nohup? rizhun Linux - General 3 07-20-2006 08:45 AM
help on nohup vinayuh Linux - General 3 07-22-2005 12:24 PM


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

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