Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is it possible, or rather is there a way to automatically shutdown Ubuntu (I'm running 12.04) when Dropbox stops synching? That would really suit my needs and cut power consumption.

Thanks beforehand.

share|improve this question
add comment

1 Answer

I would create a script that runs every 30 seconds (after being manually invoked by the user), and checks the output of the command dropbox status. If the status is found to be Idle for 3-4 consecutive runs, I would then issue the command for shutdown.

share|improve this answer
    
Thanks Marios Zindillis, but I don't know how to do that. Any instructions? Please. –  Ederico Jul 30 '12 at 19:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.