If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > executing a shell script using telnet from windows

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-24-07, 08:47
saccskiz saccskiz is offline
Registered User
 
Join Date: Feb 2004
Posts: 143
executing a shell script using telnet from windows

I am running a windows desktop(XP Professional) and connect to a unix solaris machine.
I have a unix shell script that I execute via telnet - like :

telnet server_name
Will enter userid
Will enter password
cd $CARHOME
del_car_reports.ksh
exit

Is there a way to automate this to run on windows. I mean, an icon on the windows desktop which on a double-click
can do the above and exit ? Any ideas or other tricks are appreciated
Reply With Quote
  #2 (permalink)  
Old 09-24-07, 11:44
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,454
You can't do it using telnet. However, you can do it using an ssh client (e.g. plink http://www.chiark.greenend.org.uk/~s...download.html). Alternatively, there are built-in Windows tools rsh and rexec but their corresponding daemons are probably disabled on your unix server as they are insecure.
Reply With Quote
  #3 (permalink)  
Old 09-24-07, 12:24
brdholman brdholman is offline
Registered User
 
Join Date: Nov 2006
Posts: 19
I couldn't get that link to work. How do you get to it from the main page?
Reply With Quote
  #4 (permalink)  
Old 09-24-07, 12:42
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,454
google for "putty ssh client"
Reply With Quote
  #5 (permalink)  
Old 09-24-07, 13:34
saccskiz saccskiz is offline
Registered User
 
Join Date: Feb 2004
Posts: 143
thank you. i will sure get one
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 On
Pingbacks are On
Refbacks are On