Dave,
Dave C. Brewington <[EMAIL PROTECTED]> said something to this effect on
07/12/2001:
> I am using a script to parse through info sent in from a web
> form. The information is parsed and creates two text files.
> One is used for a flat text history file and the other flat
> text file is used to import into our archaic email system
> cc:Mail...yuck!!. Everything works! The only problem I have
> is using the system command "system ( )" in the program. The
> script will create the text files but will not run the system
> called out batch job which will import the text file into
> cc:Mail when initializing it from the web page. When I go to
> the command prompt and run perl and call for the script the
> system command works. Any ideas!!! I am running Perl V.5.6.1
> For Win32
I've worked with cc:Mail before; I feel for you!
> system('sendmail.bat');
>
>
> print "Location: $path_to_response \n\n";
Have you tried the full path to sendmail.bat? Or, possibly,
explicitly setting $ENV{'PATH'} to contain the location of the
script?
system("c:\inetfoo\cgi-bin\sendmail.bat"); # or whatever
Although, I seem to remember that system calls on Win32 are
unpredictable, because of the lack of fork() (I may be very off
on this, though). Have you tried backticks? I think they work
better:
my $results = `c:\inetfoo\cgi-bin\sendmail.bat`;
Backticks have the advatange of returning whatever the command
returns, whereas system doesn't, so you can, e.g., log the
results.
Good luck.
(darren)
--
All truth passes through three stages: first, it is ridiculed; next it
is violently attacked; finally, it is held to be self-evident.
-- Schopenhauer