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

Re: [Condor-users] Condor commands execution using system() function in C++



Hi,

I am compiling a program and executing it through a batch file. The batch
file becomes the executable in the submit description file. So when I use
the system() function in another executable to automate the job submission
or to find the status of the jobs or to analyze the q, I am not able to do
so, as the system command execution gives me an error as mentioned before.

I tried using the system() function to execute other executables other than
those belonging to condor. They work pretty fine. So I am not sure what the
problem is with the condor executables/condor commands.

Madhu

-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx
[mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Ben Burnett
Sent: Tuesday, March 31, 2009 3:19 PM
To: 'Condor-Users Mail List'
Subject: Re: [Condor-users] Condor commands execution using system()
function in C++

Hi Madhu:

Are you compiling a C program and executing it with a batch file
in your job, or are you just writing the call verbatim in the
batch file?

-B

> -----Original Message-----
> From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-
> bounces@xxxxxxxxxxx] On Behalf Of Madhu Vadali
> Sent: Tuesday, March 31, 2009 2:20 PM
> To: 'Condor-Users Mail List'
> Subject: [Condor-users] Condor commands execution using system() function
in
> C++
> 
> Hi guys,
> 
> I am trying to submit a job using the system() function in C, I have
> trouble. The command prompt is not recognizing the command. It gives an
> error: "Bad Command or file name".
> 
> System("c:\\condor\\bin\\condor_status");
> 
> When I write the same command on a batch file and try to execute the batch
> file using system() function, I get the same error.
> 
> But when I directly use the command on the prompt, the command works as
> expected. I guess there is some issues with the condor commands and system
> function. Did anyone faced a similar problem?
> 
> Any kind of help will be appreciated.
> 
> Thank you
> 
> Madhu

_______________________________________________
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/