1

I want to stop dropbox from running as soon as I log into my account. Now I know I could do this simply by going to Startup Applications and disabling dropbox. But I was wondering if there is a cron-ish way of doing it or is cron not supposed to be used for stuff like these?

Currently I have this in my crontab

@reboot pkill dropbox

But this doesn't work, because I guess dropbox isn't running when this cron-job runs.

  • Sounds like you simply want to stop dropbox from running. Why not just change the permissions on the binary so that it is not executable? – mdpc Dec 8 '14 at 7:25
  • @mdpc . I could do that too, yes. Or as I said, going to Startup Applications and disabling dropbox would work too. But just out of curiosity, I was wondering if it could be done via cron. ;) – aandis Dec 8 '14 at 7:27
  • Or if you do not even want the application, simply uninstall it! – mdpc Dec 8 '14 at 7:28
  • @mdpc I guess 99 ways to do it but cron ain't one? :P – aandis Dec 8 '14 at 7:29
  • Seems very convoluted at best, why not use the easiest approach instead or a rube goldberg type of solution. – mdpc Dec 8 '14 at 7:30
1

The @reboot entry is there for doing things after each reboot. That is not what you want.

Cron is not the right tool for this, as it starts something at a specific time and it has no clue about you being logged in or being in the process of logged in. At most a cron job run every minute could look if you are logged in and then take action.

It is better to try and kill dropbox (using pkill e.g.) with a Startup application.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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