Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 3rd, 2004, 05:42 AM
Registered User
 
Join Date: Aug 2004
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old August 3rd, 2004, 08:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
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
Reply With Quote
  #3 (permalink)  
Old August 3rd, 2004, 09:57 AM
Registered User
 
Join Date: Aug 2004
Location: , , .
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
Reply With Quote
  #4 (permalink)  
Old August 3rd, 2004, 10:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
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
Reply With Quote
  #5 (permalink)  
Old August 3rd, 2004, 01:55 PM
Registered User
 
Join Date: Aug 2004
Location: , , .
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:31 PM.


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