You are not logged in.

#1 2013-01-27 21:01:20

Osiris
Member
Registered: 2003-01-18
Posts: 127
Website

Enhanced nohup

Hello,

at my university work I have a lot of long running jobs with I usually start with nohup. I'm a bit disappointed by the lack of some features. Things I miss at nohup are:

- Configurable output file name instead of nohup.out
- Some kind of action when the command has returned: Send a mail / XMPP message with the return code and the last few lines of the output

Is there an alternative or could these two things achieved with some shell magic I'm unaware of?

Last edited by Osiris (2013-01-27 21:01:32)

Offline

#2 2013-01-27 22:03:28

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,221
Website

Re: Enhanced nohup

Three options:

dtach
screen
tmux

more probably exist.

And a very interesting one reptyr:  http://blog.nelhage.com/2011/01/reptyr- … -terminal/ which you could use to grab already running processes from inside screen and then detach them.

Ok, I can see now that I didn't actually read your post. Hope you find the information useful anyways.

Last edited by Ashren (2013-01-27 22:39:01)

Offline

#3 2013-01-27 22:20:26

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,025
Website

Re: Enhanced nohup

nohup COMMAND > log.file && COMMAND_WHEN_DONE

InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

Board footer

Powered by FluxBB