Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing an external program . . .

Status
Not open for further replies.

Oadae

MIS
Nov 9, 2000
3
US
Hello, all. I am running IIS 4 on WinNT 4 Server w/SP6. I am attempting to get a PERL script to execute an external program (SendMail) on a different drive on the same computer. If I execute the script at a command prompt, all works correctly. When I run it from a Web site, the script runs correctly, but the external program does not get executed. I have tried creating virtual directories to the main directory (with both script and execute premissions) to no avail. Can someone tell me if this is even possible, and if so, how?

TIA
 
Have you tryed calling SENDMAIL using the full path?
(ex. D:/somedir/sendmail.exe) or (D:\somedir\sendmail.exe)
Whatever works for you.

NightWatcher
 
Yes, I did. The default path is D:\Program Files\SendMail\sendmail.exe. I also tried it without the space: D:\Progra~1\SendMail\sendmail.exe. It works either way executing the script from the command line, but not from a Web form.
 
Humm... I'm thinking 3 things.

1> You are using a web account that does not even have read rights, try reading something else to see what happens.

2> Move SENDMAIL to C:\Program Files\SendMail\ and try to run it from there, just to see if it runs with that path.

3> Which method are you using to submit your form? POST or GET? I presume you are trying to send an e-mail, and the GET method only carries 2048 charateres, no more than that, if this is the case, use POST instead.


NightWatcher
 
1> The site has been running just fine for a couple of years with other scripts. There is one other PERL script and several ASP and Java Script files.

2> I will think about that. It would require uninstalling and reinstalling and possibly some reconfiguration.

3> POST
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top