- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remsh - process wont finish
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
10-10-2006 01:32 AM
10-10-2006 01:32 AM
remsh - process wont finish
I'm having a bit of trouble using remsh.
I need this program to start under another user, so in the crontab I have :
remsh server -l user –n . .profile 2>&1 \; "/usr/epic/lbin/startRF.sh 2>&1"
When I run the above remsh command - it starts the program OK, but the remsh process doesnt end.
Any ideas what Ive done wrong?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2006 01:37 AM
10-10-2006 01:37 AM
Re: remsh - process wont finish
nohup /usr/epic/lbin/startRF.sh 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2006 01:45 AM
10-10-2006 01:45 AM
Re: remsh - process wont finish
You need to close stdout and stderr if not attached to a terminal like you do for stdin with -n parameter.
according to man remsh(1)
use 2>&- to close stderr and 1>&- to close stdout.
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2006 01:51 AM
10-10-2006 01:51 AM
Re: remsh - process wont finish
The script runs OK under its normal user, it's only when I try to run it in 'remsh' that doesnt finish.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2006 02:19 AM
10-10-2006 02:19 AM
Re: remsh - process wont finish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2006 02:31 AM
10-10-2006 02:31 AM
Re: remsh - process wont finish
- this part works OK on its own.
Why I try to join the 2 commands, it doesnt work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2006 03:33 AM
10-10-2006 03:33 AM
Re: remsh - process wont finish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2006 03:41 AM
10-10-2006 03:41 AM
Re: remsh - process wont finish
- this part works OK on its own.
Why I try to join the 2 commands, it doesnt work
==================
use this way:
remsh server -l user " sh -c \" . .profile 2>&1;/usr/epic/lbin/startRF.sh 2>&1""
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2006 03:42 AM
10-10-2006 03:42 AM
Re: remsh - process wont finish
correct one:
remsh server -l user -n " sh -c \" . .profile 2>&1;/usr/epic/lbin/startRF.sh 2>&1""
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2006 04:15 AM
10-10-2006 04:15 AM
Re: remsh - process wont finish
- this gives a syntax error.
I'm going to forget about it for today and head home
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2006 04:20 AM
10-10-2006 04:20 AM
Re: remsh - process wont finish
if tty -s
then
tabs
fi
Bill Hassell, sysadmin