Memory leak?

view full story

http://www.unix.com – Hey everybody. There's a built in command in Max OSX Mountain Lion called caffeinate. (Man page here). It basically creates an assertion so the computer doesn't go to sleep. I leave my computer uploading and/or downloading small files from our work FTP server at night, problem is due to new behave rules of sleeping mode in Mountain Lion it goes to sleep 10 minutes after I turned the screen off. I don't wanna just disable "Sleep", because I want my computer to go to sleep as soon as it finished. So created this function that I run when downloading something: (Got another one for whe (HowTos)