- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rsh time_out
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
04-18-2003 01:22 AM
04-18-2003 01:22 AM
I use a crontab command with rsh and sometimes it failes for time out reason.
I noticed that sometimes ping responces are slow (200 ms) but i don't know if ping replying time is related to rsh timeout.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2003 03:03 AM
04-18-2003 03:03 AM
Re: rsh time_out
If you mean rsh as in 'restricted shell' and timeout as in 'timeout' ;-)), then here's a link which gives some details.
http://www.geocities.com/~gregl/htm/bourne_shell_tutorial.htm
Let me know if i am way off the mark.
The page says that TIMEOUT is an environment variable.
FWIW.
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2003 03:17 AM
04-18-2003 03:17 AM
Re: rsh time_out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2003 03:30 AM
04-18-2003 03:30 AM
Re: rsh time_out
You should probably be looking at /etc/inetd.conf file for this value - this may be the default value which exists for any other shell sessions too - see the 'shell' entry for any -t specification. I don't have rsh installed on my hp-ux machine - so i am merely guessing...
see man inetd.conf on how to set timeouts for shells.
Let me also search a while, and get back to you if i find anything that you'd find useful.
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2003 04:14 AM
04-18-2003 04:14 AM
Re: rsh time_out
Sorry!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2003 04:18 AM
04-18-2003 04:18 AM
Re: rsh time_out
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2003 04:58 AM
04-18-2003 04:58 AM
Re: rsh time_out
remsh some_cpu sleep 20
will have the following hierarchy:
inetd -> remshd -> sh -c sleep 20 -> sleep 20
So, when sleep 20 finishes, the sh -c program resumes, but there is nothing to do so it exits. Since you are running a cron job, you must examine exactly what the commands are doing and repair any commands that can hang. This is especially true if your cron job performs an su - some-login. The reason is that login profiles are often incorrectly written for batch jobs and need to protect any interactive terminal commands.
When the cron job hangs, you need to investigate what portion is causing the hang. If it is the command itself, fix the command (often networking commands including NFS-related tasks will hang), or rewrite the cron job to monitor the command in the background and kill the job when it fails to return in a certain length of time.
If it is the shell itself, then remsh is not being utilized correctly (ie, the shell is waiting for some keyboard input). You'll need to setup logging to determine the reason for the pause.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2003 05:49 AM
04-18-2003 05:49 AM
Re: rsh time_out
The standard output return "Connection timed out".
Does mean that the remote host is not available or wich?
In my inetd.conf there is next string:
"shell stream tcp nowait root /usr/lbin/remshd remshd".
there isn't any value related to remshd timeout.
thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2003 06:34 AM
04-18-2003 06:34 AM
SolutionAs far as ps -ef, this is likely a remote host problem. If you are looking for a specific process, using ps|grep is a bad way to do things. Let ps do the looking for you:
Look for a specific user ID:
ps -f -u some-user
Look for a specific process:
UNIX95= ps -f -C process-name
Doing a global ps can sometimes hang even for a local conection and ps may have problems getting sane information over the network because the network is slow and processes can change rapidly every second.
Post your script and perhaps we can find a more reliable way to accomplish your tasks.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2003 03:18 AM
04-19-2003 03:18 AM
Re: rsh time_out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2003 03:56 AM
04-19-2003 03:56 AM
Re: rsh time_out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2003 04:15 AM
04-19-2003 04:15 AM
Re: rsh time_out
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2003 10:31 AM
04-22-2003 10:31 AM