From: Antoine Durr <antoine@(email surpressed)>
Subject: Re: redirects and semicolons in jobdumpcommand
   Date: Sat, 01 Dec 2007 13:13:52 -0500
Msg# 1656
View Complete Thread (5 articles) | All Threads
Last Next
On 2007-12-01 03:18:38 -0800, Greg Ercolano <erco@(email surpressed)> said:

Antoine Durr wrote:
[posted to rush.general]

Hi,
I tried the following in a jobdumpcommand, to no avail:

printenv > /home/antoine/foo

Is there a reason that does not work?  I also tried:

printenv ; sleep 60

	The command is invoked by exec(), so no shell is involved.
	(';' and '>' being shell characters)

	To use shell specific syntax, it's best if you put your commands
	into a shell script and invoke that.

Ahh, ok. Out of curiosity, why not just do a system() call, with shell and all? From the user's standpoint, it's not obvious that we cannot put arbitrary unix commands into those fields.

Thanks,

-- Antoine

Floq FX Inc.
10659 Cranks Rd.
Culver City, CA 90230
310/430-2473


Last Next