Hi everyone,
I want to run a code on linux server as a background script by fetching data from mysql. I am trying to access crontab for runing my java code. But i dont get any result. Can someone give me any ideas?? and Thanx alot in advance.
Archived Forum |
|
Crontab with emoncmsSubmitted by Priya on Tue, 24/11/2015 - 16:27Hi everyone, I want to run a code on linux server as a background script by fetching data from mysql. I am trying to access crontab for runing my java code. But i dont get any result. Can someone give me any ideas?? and Thanx alot in advance. » |
Re: Crontab with emoncms
How you call your script in console ?
Can you type an example ?
I use cron for many script in python and in php.
Below an example with a script in python witch are call with root permission.
sudo crontab -e
put this line..and save
* * * * * python /home/pi/script/1wiretempread.py
Re: Crontab with emoncms
I used the same way but with java. Actually I am using remote server. So I did this all through putty. But I dont get any results. As I tried to run it, it showing me nothing, Even no errors. Whenever I am trying to run the command : corntab -e
It shows me: 'no crontab for project - using an empty one'
I never did this before so all things are new for me.
If you have anyidea How to do this then plz share it. I will realy appreciate it.
Re: Crontab with emoncms
Hello Prial,
Since this is a "Linux in general" type question, you would probably be better served by searching the web for a crontab How-To article. There are many available. e.g. this. One aspect of cron that's often overlooked is the fact that cron does not inherit the search path your shell uses.