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

Re: [Condor-users] a vanilla job



Yes, both A and B solutions are good... but
the strange thing is that condor_q writes the correct command and arguments list:


ID OWNER SUBMITTED RUN_TIME ST PRI SIZE CMD

107.0 dgadmin 6/28 17:00 0+00:00:00 I 0 0.5 sh -c date +%s

for the submission-file

executable=/bin/sh
arguments=-c date +%s


But as result it displays only the output for executable=/bin/sh arguments=-c date




J.Kewley@xxxxxxxx wrote:


I tried some of your alternatives.

Interesting how the Condor parse finds differerent excuses for each of your attempts.

I see 2 problems:

1. The end string probably needs the date +%s quoted together.
2. Condor doesn't appear keen to pass quotes through.

I tried 2 alternatives:

A. also pass an environment where DATE_STRING is the full date command line,
  but I failed to work out how to refer to it in the ARGUMENTS line.

B. Use the following:
executable = /bin/date
arguments = +%s

This works! :-)

Alternatively, if that isn't suitable, you can always put the
/bin/sh line into a 1 line shellscript and pass that shellscript
across (on the assumption that /bin/sh is already on the other machine - it
might even save you some execution time!)

JK

-----Original Message-----
From: marco Netscape [mailto:marcofuics@xxxxxxxxxxxx]
Sent: 28 June 2004 15:24
To: Condor-Users Mail List
Cc: J.Kewley@xxxxxxxx; matt@xxxxxxxxxxx
Subject: Re: [Condor-users] a vanilla job


Hi


I tryied in many ways to pass the obstacle of specifying a blank-space
inside a character argument



executable=/bin/sh arguments=-c date +%s executable=/bin/sh arguments=-c "date +%s"

executable=/bin/sh
arguments=-c 'date +%s'

executable=/bin/sh
arguments=-c \"date +%s\"

executable=/bin/sh
arguments=-c \'date +%s\'
_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
http://lists.cs.wisc.edu/mailman/listinfo/condor-users