HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: RSH scripting
Operating System - HP-UX
1830900
Members
3359
Online
110017
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-10-2003 05:06 PM
05-10-2003 05:06 PM
RSH scripting
Hi,
I want to execute script on remote system as a particular user
remsh system su - user -c script
Remote script is being executed without argument.
Any help is appreciated.
Thanks.
I want to execute script on remote system as a particular user
remsh system su - user -c script
Remote script is being executed without argument.
Any help is appreciated.
Thanks.
Never quit
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2003 06:19 PM
05-10-2003 06:19 PM
Re: RSH scripting
remesh system /usr/bin/su -c "scriptname "
The scriptname and argument in the su -c must be in double quotes.
You should also make sure the full path is in the scriptname, because you have no path in this setup.
SEP
The scriptname and argument in the su -c must be in double quotes.
You should also make sure the full path is in the scriptname, because you have no path in this setup.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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-10-2003 09:19 PM
05-10-2003 09:19 PM
Re: RSH scripting
How about...
remsh hostname -l username -n script args
If you don't have the .rhosts or host.equiv file setup then try rexec.
rexec hostname -l username -n script args
hop this helps,
-denver
remsh hostname -l username -n script args
If you don't have the .rhosts or host.equiv file setup then try rexec.
rexec hostname -l username -n script args
hop this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2003 06:50 AM
05-11-2003 06:50 AM
Re: RSH scripting
if the script requires root privileges, then you could use sudo.
remsh remote_host "/usr/local/bin/sudo scritp_to_exec"
of course you know you will have to add the script perms in /etc/sudoers file.
remsh remote_host "/usr/local/bin/sudo scritp_to_exec"
of course you know you will have to add the script perms in /etc/sudoers file.
"Vision, is the art of seeing the invisible"
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP