Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem with cron on Ubuntu 10.04 and 11.04.

crontab -e

I have typed:

49 22 * * *     /usr/bin/transmission-gtk

I have also tried:

sudo /etc/init.d/cron restart
pgrep cron
share|improve this question
What is the problem you are having? – Paul Dec 26 '11 at 22:17
I've downvoted your question because you never actually asked anything. Please correct that by editing it to tell us what the problem is. – Keith Thompson Dec 27 '11 at 21:11

The real problem, I think, is that transmission-gtk is an interactive X command. It doesn't make much sense to launch it from your crontab. In particular, commands invoked by cron don't have the $DISPLAY environment variable set. You can launch an X command from cron if you set $DISPLAY explicitly:

49 22 * * *     DISPLAY=:0.0 /usr/bin/transmission-gtk

but it's an odd thing to do; in your case, you'll probably just get a new instance of the command every time the job runs.

Your question doesn't indicate what the actual problem is. What happens, what did you expect to happen, and how do they differ?

I've cleaned up your question's tags and formatting.

Perhaps you should find a non-interactive BitTorrent client.

share|improve this answer
Please do not use the answers section to ask questions, use the commands section if clarification is needed – Paul Dec 26 '11 at 22:57
@Paul: I believe I did answer the question. The third paragraph explains why what the OP is trying to do won't work, and the fourth suggests a solution. Are you saying it's inappropriate to ask for clarification along with an answer? – Keith Thompson Dec 26 '11 at 23:04
@Paul: I've edited my answer, putting the actual answer part of it at the top. – Keith Thompson Dec 26 '11 at 23:38
The problem is that answering without knowing the actual issue results in the question getting less attention. The best approach is get the clarifications first, then provide an answer. – Paul Dec 27 '11 at 2:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .