LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-12-2006, 12:24 AM   #1
Chowroc
Member
 
Registered: Dec 2004
Posts: 145

Rep: Reputation: 15
Why does "crond" sleep and "ssh" hung up?


I write a script, which is run by cron hourly, and will execute ssh to find something on remote machine during its processing, but once a time, I found this script hung up at the point of ssh, and the crond sleep!. (This script will run from several minutes to 30-40 minutes depending on different situations.)
Code:
        |-crond(2950)-+-crond(10084)-+-_glog_obj.sh(10085)---ssh(13781)
        |             |              `-sendmail(10093)

root     13781  0.0  0.0 19844 2312 ?        S    Jan05   0:00 ssh -o BatchMode=yes shujufenxi@192.168.1.9 cd /raid5/ftpsite/log/objlog; ls -d QB03/
So when I "kill 10093/10085", they(10085 & 10093) became defunct, and init take over the ssh(13781), but ssh(13781) still there, why not it exit?

What wrong?

And how crond works, why does it sleep?

Thanks.

Last edited by Chowroc; 01-12-2006 at 12:26 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 6 03-21-2013 10:35 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM


All times are GMT -5. The time now is 01:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration