I’m using @reboot ~/www/example.com/bin/server in my user’s crontab…but when I reboot the server, the web server (this script) does not come up. (script works fine from command line). My guess is the /home/user directory has not been mounted yet…does anyone know if its possible to get …
Tag: cron
How to restart application in tomcat server
I have been looking for some solution to restart app inside tomcat server on remote linux machine but i haven’t found anything yet. Can anyone please tell me how can i restart the application in Tomcat Server after some time interval without restarting the tomcat server on remote machine? Can anyone hel…
Python cron job file access
I have a tiny Python script that needs to read/write to a file. It works when I run it from the command line (since I am root, it will) , but when the cron job runs it cannot access the file. The file is in the same folder as the script and is (should) be created from the script. I’m
@reboot cronjob not executing
I have a Python script which simply writes some text and saves it to a file I want to execute this script at startup via CRON. So I edit the crontab listing by using My entire crontab looks like : This is the location of the file, and the file has permissions to execute. I can run the file no
Run “screen -S name ./script” command on @reboot using crontab
I’ve tried adding this to my crontab: @reboot /root/startup The “startup” file: Now svnserve commands run fine. The problem is with the screen command. log1 and log2 files have the same content which is: Must be connected to a terminal. What I’m trying to do is start the 2 executables …
database and wordpress backup cron job
i want to run a cron job that back ups my mysql database and my wordpress files once a day from the hostgator cpanel. i found a sample script and edited the parameters with my information but it doesn’t seem to be working properly. I don’t have much experience with cron jobs so i’m not sure …
How to add a cron job in linux [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 10 years ago. Improve this question I am using sphinx for searching. I get new data everyday which is added in the database. I have to…
SVN Update Crontab Linux
I am trying to figure out how to run a SSH command via cron for linux. The command I want to run is: Something like: Anyone know what I would need to do with the cron line? EDIT: I don’t need it to be SSH, just need to run svn update on the same server as cron to the working
How to instruct cron to execute a job every second week?
I would like to run a job through cron that will be executed every second Tuesday at given time of day. For every Tuesday is easy: But how to make it on “every second Tuesday” (or if you prefer – every second week)? I would not like to implement any logic in the script it self, but keep the …