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
Forums
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
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
тАО04-05-2002 07:45 AM
тАО04-05-2002 07:45 AM
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 07:49 AM
тАО04-05-2002 07:49 AM
Re: rexec
You can use:
# remsh
# rexec
See man pages
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 07:49 AM
тАО04-05-2002 07:49 AM
Re: rexec
copy the script from server A to sever B then rexec the script on the server B as you would a command. make sure the permissions are set once you have copied the file.
Cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 07:51 AM
тАО04-05-2002 07:51 AM
SolutionON serverA
# cat uuu
#!/usr/bin/ksh
echo "this is cute"
hostname
# cat /tmp/uuu|remsh serverB /usr/bin/ksh
OUTPUT from serverB
this is cute
serverB
#
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 07:52 AM
тАО04-05-2002 07:52 AM
Re: rexec
another way would be to mount the directory in which the script resides from server B then execute the script.
serverB# mount serverA:/script_dir /serverA_dir
then
serverA# rexec serverB:/serverA_dir/script_name
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 07:52 AM
тАО04-05-2002 07:52 AM
Re: rexec
To make your question more clear you are essentially looking to run a script on box a which call for something parameters from Box b , remsh is a good command to be used for this
for eg
A# remsh B:bdf will display the bdf as if it is was run on box B.
The same can be done vice versa ie to execute script on BOX A from B
B# remsh A:
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2002 08:10 AM
тАО04-05-2002 08:10 AM
Re: rexec
# remsh jupiter -l skchan -n /opt/apps/myscript
==> remsh'ing to jupiter as user skchan and run the script in /opt/apps/myscript