- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how do I run a shell script from another server us...
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
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
тАО01-11-2002 12:15 PM
тАО01-11-2002 12:15 PM
how do I run a shell script from another server using a shell script
How do I run a script that's there in one unix server from another unix server using a shell script
thanks..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2002 12:18 PM
тАО01-11-2002 12:18 PM
Re: how do I run a shell script from another server using a shell script
run "man rksh" and "man rlogin" for more information.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2002 12:19 PM
тАО01-11-2002 12:19 PM
Re: how do I run a shell script from another server using a shell script
server a script
remsh server_b script2
You need .rhosts file in the home directory of the user that will be running this on BOTH machines
/home/user/.rhosts
the file will look like this
servera userid
serverb userid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2002 12:21 PM
тАО01-11-2002 12:21 PM
Re: how do I run a shell script from another server using a shell script
ssh hostname "shellscript.sh"
This ofcourse would be where hostname is trusted to your localhost by a .shosts or key encryption trust.
I would recommend ssh over the r commands for security reasons.
Happy scripting,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2002 12:21 PM
тАО01-11-2002 12:21 PM
Re: how do I run a shell script from another server using a shell script
You can use the 'remsh' command. See man remsh for more information. You need to have the /etc/hosts.equiv and .rhosts files setup for doing this.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2002 12:22 PM
тАО01-11-2002 12:22 PM
Re: how do I run a shell script from another server using a shell script
Have a look at the man pages for 'remsh' (man remsh) and for 'remshd' (man 1M remshd). Pay particular attention to the '/etc/hosts.equiv' and '$HOME/.rhost' file discussion.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2002 12:32 PM
тАО01-11-2002 12:32 PM
Re: how do I run a shell script from another server using a shell script
Remsh and Rexec commands will help you run command on remote machines as long as .rhosts file allows you to run it.
#remsh
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2002 05:22 PM
тАО01-11-2002 05:22 PM
Re: how do I run a shell script from another server using a shell script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2002 02:07 AM
тАО01-12-2002 02:07 AM
Re: how do I run a shell script from another server using a shell script
i've used remsh and it works fine.
I would like to try ssh. Where do i get this?
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2002 08:10 AM
тАО01-12-2002 08:10 AM
Re: how do I run a shell script from another server using a shell script
You can get OpenSSH from one of the HPUX software porting centers. I use: http://hpux.cs.utah.edu
Darrell