Gnome Schedule task not running & disappearing!

Asked by Smileyguy

I am trying to run this command in Gnome-Schedule 2.02

cd /home/myusername/torrents;btdownloadgui.bittornado movie.torrent

It runs fine from the command prompt & does what I want it to do.

When it runs as a "once only" task in Gnome Schedule, the task just disappears (at the prescheduled time) from the list of scheduled tasks and doesn't appear to run.

When I add it as a recurrent task, nothing happens at all.

Can anyone help?

I'm using Ubunto 9.04 - and do nearly everything from GUI - don't know many commands.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Solved by:
Smileyguy
Solved:
Last query:
Last reply:
Revision history for this message
Smileyguy (timothygrech) said :
#1

I should add that I have "completely removed" and "reinstalled" the program.

What SHOULD happen is that Bot Tornado opens and starts to automatically download (since I have already begun the download).

Revision history for this message
Thomas Krüger (thkrueger) said :
#2

You task may run in a different environment where no PATH is set.
Try to run your tool with full path name.

Revision history for this message
Smileyguy (timothygrech) said :
#3

Not sure what that means Thomas . . .

Are you able to expand on that?

How do I run my tool "with full path name"?

Revision history for this message
Thomas Krüger (thkrueger) said :
#4

The PATH variable tells the shell where to find an executable. It contains a list of directory. The interpreter then tries to find a command in this directories.
If it is not set you will have to use the full path of the executable.
For example the command "top" resists in /usr/bin so the full path is "/usr/bin/top".
If you don't know where your command executable is you can query it's location with the "whereis" command.
e.g. "whereis btdownloadgui.bittornado"

Revision history for this message
Smileyguy (timothygrech) said :
#5

Thanks Thomas.

I ran that query and it came up with "/usr/bin/btdownloadgui"

Does that mean my command should look like this? cd /home/myusername/torrents;/usr/bin/btdownloadgui.bittornado movie.torrent

Is it normal then, that this scheduled task works when I run it manually from Gnome-Schedule?

Revision history for this message
Smileyguy (timothygrech) said :
#6

I ran this task in Gnome Schedule:

cd /home/username/torrents
/usr/bin/btdownloadgui.bittornado movie.torrent

Again - it did exactly same thing (nothing happened but task disappeared from Scheduler at right time)

It worked fine when I ran it manually or from the Terminal

:(

Revision history for this message
Smileyguy (timothygrech) said :
#7

Been reading around and found out I just left a little bit off the front of the code which makes the GUI operate on my desktop

My code now looks like this and works when set via the GUI or crontab in Terminal
env DISPLAY=:0 /usr/bin/btdownloadgui.bittornado /home/user/torrents/filename.torrent

It's "env DISPLAY=:0" (minus the quotes) which makes it run on the desktop.

Not sure if it runs in the background without me knowing, if I don't add that bit. I did check for it in services but couldn't find it.

Hope this helps someone!