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

Re: [Condor-users] 'simple' c++ program



Thanks John. I'll try these.

steve

On Jan 21, 2008, at 6:18 PM, Kewley, J (John) wrote:

Some ideas:

1. Does changing
    prog %1 %2 %3 %4 %5
to
    prog.exe %1 %2 %3 %4 %5
help?

or maybe even
    ./prog.exe %1 %2 %3 %4 %5

2. If you run
prog.bat 44 20 33750 12825 R2.txt
on a cmd prompt in a windows directory containing your input files, does it run OK and
produce sensible output?

3. I suspect it may be some libraries that prog.exe needs which aren't present.

4. Add a 'dir' to your debugging in prog.bat to ensure all the files have been
   transferred OK

5. Add an 'env' or 'set' (I forget Windows syntax) to see your environment. You are exporting the environment from cygwin onto a Windows achine with 'getenv = true',
   this may not be what you want.

GL

JK

-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx on behalf of Stephen Upton
Sent: Mon 21/01/2008 20:59
To: Condor-Users Mail List
Subject: [Condor-users] 'simple' c++ program

Hi all,

I'm trying to run a simple c++ program. I'm using version 6.8.1 (I
know - I need to upgrade!) on a windows xp cluster. However, I'm
submitting my job from a cygwin prompt. It appears to run since I get
output from my echo statements in the .bat file that I use to call
the c++ program. Here's the submit:

*****
Executable      = prog.bat
requirements = OpSys == "WINNT50" || OpSys == "WINNT51"
getenv = true
Universe        = vanilla
Error           = Output/err.$(process)
Output          = Output/out.$(process)
Log             = Output/log.$(process)

Should_Transfer_files = YES
When_To_Transfer_Output = ON_EXIT

transfer_input_files = prog.exe, R2.txt, initialnodes.txt,
nodearccosts.txt, nodepcm.txt, S10solutionfile.txt
Arguments = 44 20 33750 12825 R2.txt
Queue

***
and here's prog.bat

echo running prog.exe %1 %2 %3 %4 %5
prog %1 %2 %3 %4 %5
echo done
****

I suspect it has something to do with prog.exe but not sure where to
look. I don't have access to the source code, but have access to the
programmer. ;-)

I've seen various other emails that are similar, e.g., running
Fortran programs, and I think I've covered the bases, but still feel
I'm missing something easy.


thanx
steve upton

_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

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


_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

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