Its the exe which cannot open another file........and I have to use system
and not exec, coz I need to get back to the script after executing the exe.
So, the problem is, the exe has no problems opening the other file if run on
the command prompt or by any other straight means, but if run within the
perl script it shows errors. Also, I have run other exe from the same script
and they work fine.
Thanks,
Prachi
----Original Message Follows----
From: Jean-Matthieu Guerin <[EMAIL PROTECTED]>
To: prachi shroff <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: system
Date: Thu, 07 Jun 2001 15:05:40 +0200
Hello,
Is your perl script that can't open exe file or your exe that can't open
another file ?
- if perl can't open exe file:
check that exe's path is defined on your PATH environment variable
or
if perl srcipt and exe are in same directory, check line
SYSTEM("./myexe.exe")
the ./ stands for current directory.
or
try another way than SYSTEM : exec, ` `, ...
prachi shroff wrote:
>
> Hi,
>
> I am trying to run an executable file from within my perl script using
the
> SYSTEM command. If I run the exe from either the command line or by
double
> clicking, it works fine, but when I embed it into the perl script it
gives
> errors compiling. It is an exe of a C code and shows errors specific to
the
> code like "error opening a file" that it needs to read.
>
> Could anyone please give in any suggestions.
>
> Thanks,
> Prachi
--
--------------------------------------------------------
Jean-Matthieu Guerin
Brime Ingenierie
[EMAIL PROTECTED]
--------------------------------------------------------
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com