RE: Win32::OLE and PerlScript

2002-05-10 Thread Flowers, Jay
It had nothing to do with Win32::OLE. <%my $returncode2 = $hlk->lGetReturnCode;%> #see the name has a 2 in it $returncode2 <%$Response->write("Return Code $returncode");%> #notice that $returncode has not 2 on the end That was the problem, sorry all I should have caught that one. Jay Flowe

system comand from using cgi varriables.

2002-05-10 Thread Jas Grewal
Hello all,   I am having major problems running a system command from within a script initiated by a users response on a web form. I am able to run the script fine from the command line and am getting the desired results. I have searched the archives for solutions to similar problems but have

RE: system comand from using cgi varriables.

2002-05-10 Thread Flowers, Jay
The cgi script would need rights to execute exes.   Jay Flowers Integic Health Care   -Original Message- From: Jas Grewal [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 9:32 AM To: [EMAIL PROTECTED] Subject: system comand from using cgi varriables.   Hello all

Re: system comand from using cgi varriables.

2002-05-10 Thread Simon Oliver
> Jas Grewal wrote: > > Hello all, > > I am having major problems running a system command from within a script > initiated by a users response on a web form. > I am able to run the script fine from the command line and am getting > the desired results. I have searched the archives for solutions

Re: system comand from using cgi varriables.

2002-05-10 Thread Jas Grewal
Thanks for the response. I thought this was the problem at first, but the web server is running under the system account. Error logs on the web server seem to point to a different problem. failure ( 770): cgi_send:cgi_start_exec M:/Netscape/Server4/docs/MSADC/root.exe failed warning ( 770): f

Re: system comand from using cgi varriables.

2002-05-10 Thread Simon Oliver
Those errors look like failed code-red attacks to me - nothing to do with your failing script. Try: use CGI::Carp qw(fatalsToBrowser); to see what the error is in your script. -- Simon Oliver Jas Grewal wrote: > > Thanks for the response. > > I thought this was the problem at first, but t

Re: system comand from using cgi varriables.

2002-05-10 Thread Jas Grewal
Thanks for the advice Simon, I have striped down my code to the bare minimum and I am getting the following message output to the browser. 'internal or external command, operable program or batch file.' - Original Message - From: "Simon Oliver" <[EMAIL PROTECTED]> To: "Jas Grewal" <[EM