The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-27-2009
egiz81 egiz81 is offline
Registered User
  
 

Join Date: May 2009
Posts: 2
Unhappy

Hi pludi,
do you mean that if I use sleep I block my ftp command? According to avoid to wait forever if the remote host doesn’t work, I want to implement a sort of timeout, after this, if the ftp is blocked, I’ll kill it. If I use sleep, is ftp command in background stopped??? If it’s true, I’m a quite worried… I try to ping first the host (in the real case this code is in a loop for a list of hosts) but so many firewall bock ping and if ping has a positive result, this doesn’t unsure that ftp runs.


... I'm spending a lot of time about this problem.. and I'm getting crazier than I'm just!