Re: [LAU] Radio: Winfried Ritsch at ORF1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Julien Claassen <julien@...>
Cc: <linux-audio-user@...>
Date: Tuesday, September 15, 2009 - 12:38 pm

On Tue, Sep 15, 2009 at 01:44:53PM +0200, Julien Claassen wrote:

Not sure I understand why you need to do it ... but ...

A program on Linux should work identically if the environment and
command line are the same.

The command line can be recovered using /proc/${PID}/cmdline, and the
environment from /proc/${PID}/environ . The environ file is null
separated, so use the strings command rather than cat.

So to run something from cron that might otherwise be run from a shell
prompt ... means you might have to select certain environment variables
and define them before running the program. Exactly which depends on
the program.

Oh, and of course, the program should have the same working directory.

--
James Cameron
http://quozl.linux.org.au/
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] Radio: Winfried Ritsch at ORF1, Florian Faber, (Tue Sep 15, 6:14 am)
Re: [LAU] Radio: Winfried Ritsch at ORF1, Peter Plessas, (Wed Sep 16, 1:33 am)
Re: [LAU] Radio: Winfried Ritsch at ORF1, Julien Claassen, (Tue Sep 15, 11:45 am)
Re: [LAU] Radio: Winfried Ritsch at ORF1, James Cameron, (Tue Sep 15, 12:38 pm)