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 > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-12-2009
chebarbudo's Avatar
chebarbudo chebarbudo is offline
Registered User
  
 

Join Date: Nov 2008
Location: various
Posts: 188
Question sleep 10 && command doesn't work

Hi there,
I found a trick to easily postpone a command by a few seconds:
Code:
supernova:~# sleep 10 && command &
If you logout, the command should still be executed... But not all the time.
Could anyone of you explain me why the following command is executed even after logging out:
Code:
supernova:~# sleep 10 && touch somefile &
and not that one:
Code:
supernova:~# sleep 10 && /etc/init.d/networking force-reload &
Thanks in advance
Santiago