LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-31-2010, 03:21 PM   #1
Geert86
Member
 
Registered: Jul 2008
Posts: 46

Rep: Reputation: 15
Cron is not running


Hi all,

I want to make a cron job for my webserver, only it seems not to work...

I have now the followig to test (every 16th minute of the hour, write test to a file), but it doesn't show up. When I write out the cron, it is done to the file: /tmp/crontab.QXsBIO/crontab . How to make cron work? It must be very easy, but I have real troubles getting it fired up.



My Linux version is debian lenny and the cron file looks like (crontab -e):

# m h dom mon dow command
16 * * * * root echo "test" > /tmp/test.txt

(with trailing empty line at the end)

Best regards, Geert
 
Old 01-31-2010, 05:38 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You don't put the username in a user's crontab.
 
Old 02-01-2010, 02:09 AM   #3
Geert86
Member
 
Registered: Jul 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Is there also a non user cron?
 
Old 02-01-2010, 10:41 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Yep, just

crontab -e

as the relevant user.
http://adminschoice.com/crontab-quic...Crontab%20file
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cron jobs not running saldon Linux - Server 2 01-08-2010 10:01 AM
Need help running cron in Slackware 12.1 trillobyte Slackware 9 06-03-2008 04:00 PM
Cron not running sometimes yuiy88 Linux - Newbie 6 02-14-2008 02:37 AM
cron is running but jobs aren't kalahari875 Mandriva 4 03-15-2006 03:47 PM
Cron not running Half_Elf Linux - Software 4 01-10-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration