HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remsh hangs in shell script
Operating System - HP-UX
1825775
Members
2263
Online
109687
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-17-2004 02:46 PM
05-17-2004 02:46 PM
Remsh hangs in shell script
Hi folks,
I wrote a Perl script in HP UX server with 11.0. This script executes the command of userdel on other remote HP UX servers. They are all in 11.0.
The remsh command below hangs all the time till pressing Ctl-C to terminate it.
$chk_host=`remsh $host grep '^$unix_login:' /etc/passwd`;
The other remote host does not has this problem. I ran this command on the shell and it works just fine in a sec. Not sure why it takes so long in the Perl script in one particular remote.
Could anyone shed some light?
Thanks.
Yan
I wrote a Perl script in HP UX server with 11.0. This script executes the command of userdel on other remote HP UX servers. They are all in 11.0.
The remsh command below hangs all the time till pressing Ctl-C to terminate it.
$chk_host=`remsh $host grep '^$unix_login:' /etc/passwd`;
The other remote host does not has this problem. I ran this command on the shell and it works just fine in a sec. Not sure why it takes so long in the Perl script in one particular remote.
Could anyone shed some light?
Thanks.
Yan
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 11:53 PM
05-17-2004 11:53 PM
Re: Remsh hangs in shell script
Just a thought, but try redirecting stdin from null.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 11:57 PM
05-17-2004 11:57 PM
Re: Remsh hangs in shell script
try "remsh -n"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 12:08 AM
05-18-2004 12:08 AM
Re: Remsh hangs in shell script
remsh $host -n command
will make sure the remsh command will NOT wait for keyboard input.
Had the same problem once where on on server the remsh went fine and on another one it waited forever.
The -n option solved my problem.
I didn't investigate why it needed the -n on one server and not on the other....
regards,
Bart
will make sure the remsh command will NOT wait for keyboard input.
Had the same problem once where on on server the remsh went fine and on another one it waited forever.
The -n option solved my problem.
I didn't investigate why it needed the -n on one server and not on the other....
regards,
Bart
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP