Page 1 of 1

redirecting the execute command output

Posted: Mon May 18, 2009 7:46 am
by dspxlearn
Hi,

Can we redirect the output of the execute command stage to a file inside the stage itself?

Below is the inputs to the execute command stage:

Code: Select all

command: sed -n
parameters: 1,10p /tmp/source.txt > testfile.txt
When the job runs no file is being created. If don't send it to a file, i could see the output correctly in the job log.

Posted: Mon May 18, 2009 7:47 am
by chulett
Where are you looking for the file? :wink:

Posted: Mon May 18, 2009 8:11 am
by dspxlearn
Thanks Craig!!

I must mark this thread as resolved asap.
Else, i will get 'Welcome Aboard" replies. :oops:

Posted: Mon May 18, 2009 9:28 am
by chulett
No worries. :wink:

For the record, relative paths are relative to the 'current working directory' of the job that creates them, so that means the path starts from the job's Project directory.