473,503 Members | 4,461 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to set Cron Job on Gentoo webmin panel?

13 New Member
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 4483
dlite922
1,584 Recognized Expert Top Contributor
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 Recognized Expert Moderator Expert
@dlite922
this line goes into /etc/crontab
Sep 23 '09 #3
Plater
7,872 Recognized Expert Expert
And the ">>" is append and not overwrite like ">"
Sep 23 '09 #4
numberwhun
3,509 Recognized Expert Moderator Specialist
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
5795
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
2257
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
5439
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
13327
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
2658
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
1893
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
10287
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
2375
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
3976
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
7063
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...
1
6970
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7441
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5558
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4987
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4663
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3156
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3146
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
366
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.