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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute remote script via asp

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
We have two web servers, Serv1 and Serv2.
I have an asp (//Servx/asp/someasp.asp) page in both servers that execute a script (//Serv1/script/somescript.vbs) in Serv1 and create a logfile (//Serv1/log/logfile.txt)in Serv1.
I used to be able to run it in both servers, but now I can not run the script in Serv2.
No error message and wscript PID is in Serv2 task manager.

Set WshShell = Server.CreateObject("WScript.shell")
WshShell.Run "wscript.exe //Serv1/script/somescript.vbs"

I checked my mapping on Serv2 and any other security I can think of with no avail.
Any help will be greatly appreciated.
 
I am losing my hair fast.
I really would appreciate it if anybody can throw their two cents on this. Thanks.
 
What changed on Serv2? WshShell is normally marked "dangerous", so my guess is: firewall, security settings, ntfs rights, etc. If you did not change the ASP script, you better post the question in another forum.
 
Thanks foxbox.

After much testing, I figured out the problem but unfortunately not the solution.

When I launched the page in Serv2 web server, the page can not configure the computer names (Serv1 and Serv2).



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top