GreenLake Administration
Operating System - HP-UX
1850770
Members
3625
Online
104055
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
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
08-28-2005 11:05 PM
08-28-2005 11:05 PM
Rsh help
Hi all,
Has written a simple shell script to rsh to a machine and that cmd will expect a user input, however, no matter I tried "rsh -n" or simply "rsh" , somehow seems the script keep answer /dev/null to the input ( say it only accept Yes / No ), so the script continue to loop, requesting valid input and can't stop unless a kill. Any hints on this situation.
Don
Has written a simple shell script to rsh to a machine and that cmd will expect a user input, however, no matter I tried "rsh -n" or simply "rsh" , somehow seems the script keep answer /dev/null to the input ( say it only accept Yes / No ), so the script continue to loop, requesting valid input and can't stop unless a kill. Any hints on this situation.
Don
Gordon
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2005 11:10 PM
08-28-2005 11:10 PM
Re: Rsh help
Hi,
By defining trap in the script like
# trap "exit " 15. You can come out from the script using ctl+c, instead of killing explicitly.
Regards,
Rajesh
By defining trap in the script like
# trap "exit " 15. You can come out from the script using ctl+c, instead of killing explicitly.
Regards,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2005 11:18 PM
08-28-2005 11:18 PM
Re: Rsh help
I think the script on the target server needs an environment. Perhaps the TERM variable or some stty commands so the read command will work properly.
Perhaps you could upload your current script.
SEP
Perhaps you could upload your current script.
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
08-30-2005 06:30 AM
08-30-2005 06:30 AM
Re: Rsh help
What OS?
What version?
Show us your script.
Exactly the command that you are using to execute it.
'rsh' is restricted shell on HPUX.
This is an HPUX forum.
Are you doing 'rsh' on Linux?
Or are you really doing 'remsh' on HPUX.
A simple script reading input worked fine for me on HPUX 11.11 using 'remsh'.
bv
What version?
Show us your script.
Exactly the command that you are using to execute it.
'rsh' is restricted shell on HPUX.
This is an HPUX forum.
Are you doing 'rsh' on Linux?
Or are you really doing 'remsh' on HPUX.
A simple script reading input worked fine for me on HPUX 11.11 using 'remsh'.
bv
"The lyf so short, the craft so long to lerne." - Chaucer
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 2026 Hewlett Packard Enterprise Development LP