Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-04-2010, 07:12 PM   #16
LQ Newbie
Registered: Nov 2010
Posts: 8

Original Poster
Rep: Reputation: 0

Originally Posted by Samotnik View Post
No. This string * * * * * root echo `date` >> ~/out add to /etc/crontab file.
I probably have been doing this wrong the whole time...

I take the string and paste it in notepad then save it as testcron.txt. I upload that file to the /etc/ folder, then I run crontab testcron.txt ...

is that not the way to make a cron job?
Old 11-04-2010, 07:44 PM   #17
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
You have a text file /etc/crontab. This is a global crontab file.
You should open it with any text editor, and add a line at the end. This line
* * * * * root echo `date` >> ~/out
Then you should wait some minutes, then check cat ~/out.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Job in /etc/cron.d not working BrianK Linux - General 6 11-03-2011 09:03 AM
cron job not working bittus Linux - Software 7 04-27-2009 07:39 PM
cron job is not working moagalbm Linux - Newbie 7 02-29-2008 05:16 PM
Cron Job Not Working... ALInux Linux - Software 2 07-24-2007 04:15 AM
Cron job not quite working... simba_cubs Linux - General 10 11-08-2006 06:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:45 AM.

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