Review your favorite Linux distribution.
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 03-23-2004, 04:05 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 21

Rep: Reputation: 15
Script Issues

Hi ,

I was just wondering how to write a script to run a program every 15 mins.

I put " */15 * * * * user /home/user/readvalue >>readvalue.txt" in my crontab file.

The file readvalue is a compiled file from a program readvalue.c
this appends the result everytime to readvalue.txt.

This is working fine but i dont want it to run via crontab......i want it to run via a script of some do i go about this...

any sort of help is greatly appreciated...

Thanks a lot ...
Old 03-23-2004, 04:40 AM   #2
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
I think you'll have to have a underlying program/script calling it every 15 minutes. Like

while [ 1 -eq 1 ] ; do
   /home/user/readvalue >>readvalue.txt
   sleep 15m
Save these lines into a file, and chmod u+x <file>. Then call it from your /etc/rc.d/rc.local and it will be started at every boot.

Ha! This was post no. 300 for me - cheers!

Last edited by Bebo; 03-23-2004 at 04:42 AM.


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
issues programming a script in BASH gravesb Linux - Software 1 07-07-2005 02:03 AM
issues with mirc script accessing our php script dtra Linux - Software 2 07-02-2005 05:30 PM
New to linux, so so lost, auto mounting issues, permissions issues slowhand22 Linux - Newbie 2 02-10-2005 10:41 AM
script issues rand0mh3ro Linux - Software 4 12-10-2004 06:33 AM
C shell script issues daveb93 Linux - Software 3 10-17-2003 09:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:41 PM.

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