[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:

It seems I can reproduce the error.  I'll need to take a closer look
at the reasons it is failing, but it may just be the compiler you
are using.  If you want to bypass this problem, I would suggest using
Visual Studio or download the Windows Driver SDK.  Both of them come
with a compiler that will build an executable for use in Condor.

Regards,
-B

> -----Original Message-----
> From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-
> bounces@xxxxxxxxxxx] On Behalf Of Madhu Vadali
> Sent: Wednesday, April 15, 2009 11:46 AM
> To: 'Condor-Users Mail List'
> Subject: Re: [Condor-users] Condor commands execution using system()
function
> in C++
> 
> *** WiscMail warning: attached executable file was renamed ***
> *
> * Attached to this message is an executable file or an archive
> * that contains an executable file.  The attachment has been
> * renamed for your protection.
> *
> * The file was scanned by the WiscMail anti-virus scanners and
> * no threat was found.  However, executable files should be
> * treated with great caution.  It's possible for viruses to
> * slip through undetected in the minutes before anti-virus
> * definitions are published.
> *
> * Please confirm with the sender that the file was sent
> * intentionally, and that the file is safe to run before
> * renaming the file by removing the "_renamed" from the end of
> * the filename.
> *
> * For more information and support, please visit the following
> * link to the DoIT Help Desk
> *
> * http://kb.wisc.edu/wiscmail/page.php?id=6056
> *
> *** end of warning ***
> 
> Here are the two executables for the code.
> 
> Thanks for all the help
> 
> Madhu
> 
> -----Original Message-----
> From: condor-users-bounces@xxxxxxxxxxx
> [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Ben Burnett
> Sent: Wednesday, April 15, 2009 11:14 AM
> To: 'Condor-Users Mail List'
> Subject: Re: [Condor-users] Condor commands execution using system()
function
> in C++
> 
> Can you attach the executable you created too?  There are a set of
executables
> that Condor does not handle well (and this set is not well defined yet).
> 
> Regards,
> -B
> 
> > -----Original Message-----
> > From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-
> > bounces@xxxxxxxxxxx] On Behalf Of Madhu Vadali
> > Sent: Wednesday, April 15, 2009 10:50 AM
> > To: 'Condor-Users Mail List'
> > Subject: Re: [Condor-users] Condor commands execution using system()
> function
> > in C++
> >
> > Hi Ben,
> >
> > This is really weird. I tried to run the same thing as you have done
> > and
> am
> > still getting the same error. For the record this is what I am doing
> > with
> the
> > two programs I am attaching with the mail.
> > 1. Using turbo-C++ to compile
> > 2. Running them under DOS (Windows Xp)
> >
> > I am not sure if one of those is a trouble causer.
> >
> > Thanks for the Help.
> >
> > Madhu.
> >
> > P.S.  1. 'Code.c' is the actual code I am trying to use.
> > 	2. 'cond.c' is the same single line code that you have tried.
> >
> > -----Original Message-----
> > From: condor-users-bounces@xxxxxxxxxxx
> > [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Ben Burnett
> > Sent: Tuesday, April 14, 2009 4:10 PM
> > To: 'Condor-Users Mail List'
> > Subject: Re: [Condor-users] Condor commands execution using system()
> function
> > in C++
> >
> > Hi Madhu:
> >
> > I just compiled and ran:
> >
> > #include <stdio.h>
> > void main () {
> >   system ( "c:\\condor\\bin\\condor_status.exe" ); }
> >
> > And I've had no difficulties with it.  Maybe if I could see your code,
> > it might make a difference.
> >
> > Regards,
> > -B
> >
> >
> > > -----Original Message-----
> > > From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-
> > > bounces@xxxxxxxxxxx] On Behalf Of Madhu Vadali
> > > Sent: Tuesday, April 14, 2009 3:36 PM
> > > To: 'Condor-Users Mail List'
> > > Subject: Re: [Condor-users] Condor commands execution using system()
> > function
> > > in C++
> > >
> > > Hi Ben,
> > >
> > > After a hint from one of the condor users that there could be a
> > > problem
> > with
> > > the DLLs concerning the condor commands and sought the probability
> > > of solving that in 7.2.2. Unfortunately the problem is persistent
> > > here as
> > well.
> > > I was hoping if you can help me out with the problem.
> > >
> > > Thank you in Advance
> > >
> > > Madhu
> > >
> > > -----Original Message-----
> > > From: condor-users-bounces@xxxxxxxxxxx
> > > [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of
> > > burnett@xxxxxxxxxxx
> > > Sent: Wednesday, April 01, 2009 7:45 PM
> > > To: Condor-Users Mail List
> > > Subject: Re: [Condor-users] Condor commands execution using system()
> > > function in C++
> > >
> > > Hi Madhu:
> > >
> > > You should have the correct privileges to run condor_status, unless
> > > you have explicitly changed the c:\condor\bin directory's
> > > permissions (Everyone on the machine should at the very least have
> > > read and execute permissions for the directory).
> > >
> > > > System("c:\\condor\\bin\\condor_status");
> > >
> > > Maybe a .exe extension is necessary when using your compiled program
> > > from within Condor (unless that was just a typo).
> > >
> > > Regards,
> > > -B
> > >
> > >
> > >
> > > _______________________________________________
> > > 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/
> >
> > _______________________________________________
> > 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/