- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- executing a function by remsh
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
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
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
07-16-2003 11:27 PM
07-16-2003 11:27 PM
executing a function by remsh
i have the following question: there is a script i wrote and within it there's a function defined. i'd like this function to be executed on remote host using 'remsh' command. is this possible? do i need to apply a special -option while doing 'remsh'? (the function mentioned is supposed to read folder names within a certain directory, then 'read' output is stored as variable).
thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 01:58 AM
07-17-2003 01:58 AM
Re: executing a function by remsh
Alternatively (but I'm not so sure here), you can use remsh to run the shell interpreter (/bin/sh or whatever it is) and send the function/script code to interpreter's stdin. I think that remsh could pass its own stdin to the stdin of the command executed on the remote machine; but exactly I don't know how.
hth
Claudio
P.S.: aren't you speaking about HPUX? I haven't found remsh in my linux box...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 03:38 AM
07-17-2003 03:38 AM
Re: executing a function by remsh
script1:
...
STATUS=`remsh REMOTE_HOST "script2"`
if [ $STATUS -eq 0 ]
then
echo "Success"
else
echo "Fail"
fi
...
script2:
...
if [ $? -eq 0 ] # or something else to give back the exit-status of script2
then
echo 0
else
echo 1
fi
exit
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 03:59 AM
07-17-2003 03:59 AM
Re: executing a function by remsh
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 01:02 PM
07-17-2003 01:02 PM
Re: executing a function by remsh
You need that this script will be on the other
machine so you can before rsh made the rcp
for the script and then made rsh
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 07:19 AM
07-18-2003 07:19 AM
Re: executing a function by remsh
openssh - the scp
srs - the srsclient
http://www-it.desy.de/support/help/uco_documentation/sshhowto.html