473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to set Cron Job on Gentoo webmin panel?

I some script located in following file

http://myserver/imp/dothis.php

I want to set cron job so that this file will run daily.
At Webmin I have menu 'Scheduled Cron Jobs' and create new cron job option.
But I don't have idea how to set command for cron job and how to set time or day for it.
I am new this Cron set up.Please can you explain me with example.

Thank you very much.
Sep 23 '09 #1
4 4479
dlite922
1,584 Expert 1GB
are you familiar with the command line?

A cron job is just a command that you execute from the command line shell.

For example, to delete everything from the temp folder it could be something like

rm -rf /tmp/*

To make it run everyday

* 1 * * * rm -rvf /tmp/* >> /logs/tempDelete.log

It means for every minute of every 1 day of every month and year (any weekday) remove recursively by force every file in the /tmp folder then put the verbose output into a file called tempDelete.log in the logs folder.





Dan
Sep 23 '09 #2
Dormilich
8,658 Expert Mod 8TB
@dlite922
this line goes into /etc/crontab
Sep 23 '09 #3
Plater
7,872 Expert 4TB
And the ">>" is append and not overwrite like ">"
Sep 23 '09 #4
numberwhun
3,509 Expert Mod 2GB
And when you run the /etc/crontab command, you do it as such:

Expand|Select|Wrap|Line Numbers
  1. /etc/crontab -e
  2.  
I would also highly suggest that you read "man crontab" so that you are better informed about each field. Crontab is easy to use and you can do a lot with it, but you just need to read, learn and practice with it.

Regards,

Jeff
Sep 27 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: Eric | last post by:
I'm trying to have some scripts run periodically on Windows XP and found the "Task Scheduler" did not execute my scripts. My scripts are of the form scriptName.py, and will run just by invoking that...
5
by: jsmilan | last post by:
Hi, all; I'm strictly an amateur developer who has dabbled in a half dozen languages on eight or nine systems over 20 years or so. I have never devoted the time or energy to thoroughly learn...
1
by: sam | last post by:
Hi, Had anyone written any python module for webmin? Since webmin is written in perl, but I want to write a python app/module used by webmin. If you know the detail of writing a python module...
2
by: volantecho | last post by:
hi, i m using webmin to create a cron job of a php script. While i click on 'run it now', it works, generate the output. However, the php script doesnt execute for every minutes which i've set...
6
by: sherryonline | last post by:
i have a page and i need that page to be called every day at 12:00 that page is going to connect to the database fetch some emails and will start mailing them how i am goning to do this.
10
by: Christine Desmuke | last post by:
Hello: At the risk of starting a flame-war, I'd like some more details on the use of Gentoo Linux for a production PostgreSQL server. There have been a couple of comments lately that it is not...
3
by: the.natalie | last post by:
Hi. I am a newbie to mysql, cron, and shell scripting, so please bear with me. I have a script that is used for updating an image directory based on contents in a database. The script does the...
5
by: aalmakto | last post by:
Hi I am new here, I am having a hard time with this scenario. I am working on a PHP Website that needs to interact with a System Administration GUI called Webmin (http://www.webmin.com/) located...
5
by: DavidPr | last post by:
Does anyone here know anything about crons? My web hosting company (IX Webhosting) offers me no help. To enter a cron I have to open my Control Panel - open FTP manager and open Crontab. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.