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

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