Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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

1 Answer 1

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

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.