Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 3rd, 2004, 05:42 AM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default execute external command in asp

i need to execute an external comman (and unix commancd) from the page and get the result. How to do?

i read somewhere some method like WScript.Shell.

anybody could please explain me how to use it??

i've the asp beg and pro book of wrox, is this argument discuss in these books???

thanks a ot stefano

 
Old August 3rd, 2004, 08:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi there,

I think this should help you. I haven't used this myself, but read it somewhere in the net.

WinRSH32 is an amazing little freeware tool that will allow you to remote shell into a Unix server and pass it parameters. It allows you to completely control username, password, server, and the UNIX command(s) to send, as well as control the way it appears.

Help file for this download

Download WinRSH32

Usage:
Code:
    Dim  RunRSH
    set RunRSH = CreateObject("Winrsh32Runner.execute")
    RunRSH.Go  s_UnixServer, s_command, s_UnixLoginUserName, s_UnixLoginUserPassword, false
    set RunRSH = nothing
    Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old August 3rd, 2004, 09:57 AM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it really seems interesting, but the links don't work.
please could u check it???


Anyway when anybody have some suggest about the WScript.Shell is appreciate


thanks bye stefano
 
Old August 3rd, 2004, 10:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes, WScript.Shell related suggestions are appreciated, but AFAIK, you cannot run Unix shell commands, using that.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old August 3rd, 2004, 01:55 PM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes but using WScript.Shell i can execute an external file that execute the unix command returning me the value i need, at least i hope to do this.
So when anybody knows something about it, please help me

Bye bye stefano






Similar Threads
Thread Thread Starter Forum Replies Last Post
executing external command from XSLT kapy_kal XSLT 4 June 9th, 2006 11:26 AM
connection.execute and command.execute difference vinod_yadav1919 Classic ASP Databases 0 September 28th, 2005 06:34 AM
conn.execute,command.execute or rs.open vinod_yadav1919 Crystal Reports 0 January 3rd, 2005 10:26 AM
Execute command lines from ASP???? MAtkins Classic ASP Basics 4 December 4th, 2003 11:53 AM
command object and objconn.execute... kyootepuffy Classic ASP Databases 1 October 3rd, 2003 02:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.