Sunday, June 08, 2008

zsh sleep and background




To sleep for 2 hours and then rsync a file to the server, so that it'll upload after I go to bed, in zsh:

(sleep 2h && rsync -avP file.avi n:./) &