Jack van de Vossenberg wrote:
> Dear Jim
> 
> I use nohup (ubuntu linux), and I have a feature request.
> Often I run more than one program at a time under nohup, and some of
> these programs run for at least a couple of hours.
> 
> Every now and then nohup writes the output to nohup.out, which I find
> very useful.
> 
> My request is: could the output be preceded by
> 1) the name/PID of the process that produces the output.

That's not possible unfortunately, as nohup just
sets things up, and replaces itself with the command.
It might suffice to have separate files for each command,
which you can specify by using redirection:

nohup nice command1 >command1.out&
nohup nice command2 >command2.out&

Personally I much prefer using screen to nohup:
http://www.pixelbeat.org/docs/screen/

> 2) the time that the output was produced.

Hrm, if your command output was sufficiently terse,
perhaps you could use the system logging facility for that?

nohup nice command1 | logger&

Pádraig.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to