Results 1 to 3 of 3
Threaded View
-
16th Sep 2010, 03:12 PM #1OPMember
[linux] Cronjobs ?
I made a cron job to execute a script every minute.
Code:* * * * * "/home/user/crontest.sh"
Code:date >> "/home/user/test.txt" sleep 10m
Here is the output:
Code:Thu Sep 16 19:06:01 2010 Thu Sep 16 19:07:01 2010 Thu Sep 16 19:08:01 2010 Thu Sep 16 19:09:01 2010
that's is the output should be like this:
Code:Thu Sep 16 19:06:01 2010 Thu Sep 16 19:00:01 2010 Thu Sep 16 19:10:01 2010 Thu Sep 16 19:20:01 2010
(I've made this just as example but I'll use the script for some other purposes)Snell Reviewed by Snell on . [linux] Cronjobs ? I made a cron job to execute a script every minute. * * * * * "/home/user/crontest.sh" The script: date >> "/home/user/test.txt" sleep 10m As you can see, the script output the date and time to the text file "test.txt" and wait for 10 Minutes. Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Linux Foundation: Linux professionals have better paychecks
By ShareShiz in forum News & Current EventsReplies: 0Last Post: 18th Feb 2012, 12:10 AM -
Need a Linux VPS ( USA )
By viruz99 in forum Hosting DiscussionReplies: 1Last Post: 7th Mar 2011, 02:15 AM -
[VPS] $5 Linux VPS | Get two Months FREE | $5 Linux VPS
By JMimic in forum ArchiveReplies: 9Last Post: 25th Dec 2010, 10:40 AM -
RDP on linux
By cyberz in forum Technical Help Desk SupportReplies: 12Last Post: 29th Jul 2010, 01:58 PM -
Hai im LiNUX
By LiNUX#1 in forum IntroductionsReplies: 8Last Post: 17th Jan 2010, 07:57 AM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...