- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Question on how to telnet and execute shell sc...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2003 10:39 AM
тАО05-16-2003 10:39 AM
Question on how to telnet and execute shell script using batch file
There is a HP-UX computer that has a shell script in its' /home/prgmr folder.
I have a Windows 2000 pc. What I want to do is have a batch file
that would telnet to the HP-UX computer, and execute the shell script.
Is this possible? Thank you for your feedback!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2003 10:51 AM
тАО05-16-2003 10:51 AM
Re: Question on how to telnet and execute shell script using batch file
.rhosts and remsh
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90743/B2355-90743_top.html&con=/hpux/onlinedocs/B2355-90743/00/00/20-con.html&toc=/hpux/onlinedocs/B2355-90743/00/00/20-toc.html&searchterms=rhosts&queryid=20030516-125103
remsh
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90128/B2355-90128_top.html&con=/hpux/onlinedocs/B2355-90128/00/02/283-con.html&toc=/hpux/onlinedocs/B2355-90128/00/02/283-toc.html&searchterms=remsh&queryid=20030516-124855
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2003 11:05 AM
тАО05-16-2003 11:05 AM
Re: Question on how to telnet and execute shell script using batch file
Therefore, I use Secure shell.
Secure Shell: a replacement for rcp ftp and telnet that encrypts passwords
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA
The ssh command can be used to pass script arguments to the HP-UX server
example ssh tzfat "cat /etc/issue"
There are a number of free clients for your W2K environment that can be found at tucows.com or download.com
I am attaching Chris Vail's doc on public key exchange. It works for Linux, it works for HP-UX. It would probably work for W2K if you find the right W2K secure shell client software.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2003 11:24 AM
тАО05-16-2003 11:24 AM
Re: Question on how to telnet and execute shell script using batch file
The HP is more than capable of running a command issued externally/remotely. Can the OS your working on utilize this?
Since the Windblows box can not rexec or remsh, you need to look at the capabilities of batch.
Unless you install 3rd party software, you can not run a batch script that will type your username and password for you (expect in Unix world does this).
(just dawned on me)Another possible answer is to install Cygwin, which is a UNIX toolkit addition for Windblows. It does have rexec and remsh capabilities and may do what you need. It also supports perl and basic POSIX scripting techniques.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2003 04:41 PM
тАО05-17-2003 04:41 PM
Re: Question on how to telnet and execute shell script using batch file
Install ssh on the HP-UX server - then install a ssh client (putty.exe) on the Windows machine.
Then run it like:
putty.exe -ssh prgmr@hpuxhost -pw password -m /home/prgmr/script
Rgds...Geoff
BTW: putty is here:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html