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

Re: [HTCondor-users] Windows - Condor 8.4.1 - queue command in submit file



Yes. This is down to OS behavior. By default windows always looks in the current directory AND the path, but on Linux only the path is used.

-tj

-----Original Message-----
From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of Greg.Hitchen@xxxxxxxx
Sent: Wednesday, November 25, 2015 7:27 PM
To: htcondor-users@xxxxxxxxxxx
Subject: Re: [HTCondor-users] Windows - Condor 8.4.1 - queue command in submit file

Bingo! This works John. Thanks.

Seems odd that condor_submit would not by default look in the directory that the condor_submit command is being run from? Seems to be the case for windows.
And is the case for the executable and any files to be transferred.

Or is this some underlying OS dodgyness/difference between the 2 OS'es?
Maybe the "script" is only looked for in whatever the current path is?
I guess that's what must be happening, condor_submit is just trying to get the OS to "run" something, and if it's not in the path then bad luck?

Cheers

Greg

-----Original Message-----
From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of John M Knoeller
Sent: Thursday, 26 November 2015 3:38 AM
To: HTCondor-Users Mail List
Subject: Re: [HTCondor-users] Windows - Condor 8.4.1 - queue command in submit file

You probably need ./files.sh  rather than just files.sh 

-----Original Message-----
From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of Greg.Hitchen@xxxxxxxx
Sent: Wednesday, November 25, 2015 2:14 AM
To: htcondor-users@xxxxxxxxxxx
Subject: Re: [HTCondor-users] Windows - Condor 8.4.1 - queue command in submit file

I've tried all these suggestions but it seems to not even get to that stage.

It seems to be an error parsing the queue statement:

condor_submit -dry-run - test.sub
Dry-Run job(s)
ERROR: on Line 23 of submit file: not a valid command

ERROR: Failed to parse command file (line 23).

Same parse error without the dry-run option.

when using the statement:

queue fname from files.sh |

Works OK for windows but linux has this parsing problem.

Cheers

Greg

-----Original Message-----
From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of Rich Pieri
Sent: Friday, 20 November 2015 10:55 PM
To: htcondor-users@xxxxxxxxxxx
Subject: Re: [HTCondor-users] Windows - Condor 8.4.1 - queue command in submit file

On 11/20/15 1:04 AM, Greg.Hitchen@xxxxxxxx wrote:
> #!/bin/bash
> ls -1 *.dat

Some advice:

Use /bin/sh rather than /bin/bash. /bin/sh will always exist on every UNIX and UNIX-like system you come across. GNU BASH isn't universal and it isn't always found as /bin/bash.

Always be explicit about paths to binaries whenever possible. A common problem is that several shells' built-in echo don't work the same way as /bin/echo with regards to certain switches such as -n. Use explicit paths like /bin/ls to avoid inconsistent behavior problems down the line.

A less well known option is to add "-x" to your shebang:

 /bin/sh -x

This enables trace mode so you can see what the script is doing and where it fails, and hopefully identify why.

--
Rich Pieri <ratinox@xxxxxxx>
MIT Laboratory for Nuclear Science
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/