[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Dagman post script argument is not working

ThankQ. That helped me.. I used following code to capture stdout in log file..

exec >>/home/dev/check_job_status_prescript.out


I accessed POST script argument like this: echo $1

Just for reference for others..

On Fri, Mar 20, 2015 at 12:10 AM, R. Kent Wenger <wenger@xxxxxxxxxxx> wrote:
On Thu, 19 Mar 2015, Sridhar Thumma wrote:

I am trying to pass argument for Dag post script. Post script is a shell
script. So, I tried accessing this argument using $1. That didn't work.
Later going through documents, I saw that, $ARGV[1]. I also tried that. That
also didn't work.

Please help me in this? I am passing single argument "test" here.


SCRIPT POST GETDATA logs/check_job_status_script.sh test

That all looks right. But keep in mind that any output your script generates will be lost unless you redirect it to a file, for example:

 #! /bin/sh
 echo $1 > test.out

Kent Wenger
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at: