How can I schedule execution of a program?
Posted
by
Bakhtiyor
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Bakhtiyor
Published on 2011-01-29T13:08:59Z
Indexed on
2011/01/29
15:32 UTC
Read the original article
Hit count: 283
scheduled
|application
Let's say I have a small "Hello World" Java program compiled in my home directory. I can run it with java helloWorld
from my home directory and it executes without any problem.
Now I need to schedule to execute this program let's say after 10mins from now. So, I am executing following commands on console:
at now+10min
warning: commands will be executed using /bin/sh
at> java helloWorld
Press CTRL+D to finish
So it is scheduled properly as I can see it with at -l
command. But at this time nothing happens.
Why? What is wrong with it? Because, if instead of scheduling the execution my own program I schedule executing of gedit command it opens it at a specified time. But with my own program it doesn't perform anything. How can I change the situation?
© Ask Ubuntu or respective owner