- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remsh command as root does not work.
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
01-09-2001 08:56 AM
01-09-2001 08:56 AM
remsh box1 -l root "cd to/the/dir;./this.scr"
to work. It will not execute the command ./this.scr right. I get an error.
saying ./start.nrcmd: nrcmd: not found.
Does anyone have any ideas? on what the problem might me?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2001 09:04 AM
01-09-2001 09:04 AM
Re: remsh command as root does not work.
Now when I want to run a job remotely I set my remsh up like this:
remsh
Just one thought,
rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2001 09:04 AM
01-09-2001 09:04 AM
Re: remsh command as root does not work.
You could use the full pathname for your command, like in:
remsh box1 -l root -n "/the/dir/this.scr"
or
remsh box1 -l root -n "sh -c \"cd /the/dir; ./this.scr\" "
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2001 09:25 AM
01-09-2001 09:25 AM
Re: remsh command as root does not work.
The .scr is acully a menu script. But the thing is that some of the commands on the menu do not work when I remsh the .scr.
But when I exe the .scr from the box everything in the menu works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2001 09:31 AM
01-09-2001 09:31 AM
Re: remsh command as root does not work.
As Dan mentioned, you should use the full pathname.
A script doesn't have the PATH's defined as in /etc/PATH.
Good Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2001 09:34 AM
01-09-2001 09:34 AM
SolutionWhen using remsh command on scripts, give full paths for all commands.
eg.
/usr/bin/echo "Sample comments"
Normally in my scripts I define commonly required paths as ENV variables at begining and then use it before each commands. This is required because when doing remsh it would not execute the .profile to set your env.
Thanks.
Prashant