On Tue, Jun 10, 2003 at 01:42:50PM -0000, yuvaraj  k wrote:
> 
> I have one script file in /home/raja directory. This script for
> delete some  files in  another directoy.  so every  5 min  i am
> doing to execute that script for  manualy for delete the files.
> But my question is how to execute that script file thro crontab
> for every 5 min ?. 
---end quoted text---

Since this is more or less  a user requirement I'd advocate use
of the "watch" command to fire this  script as an user and turn
it off  when you don't need,  rather than using a  system level
cron mechanism.

The following will do it for you:
$ watch -n $DURATION $EXECPROG &> /dev/null &

[Note: DURATION is in seconds.  The redirection to /dev/null is
needed since watch by default places output of $EXECPROG on the
screen]

HTH

Bish


--
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : Examining keycodes of keyboard                 LOST #270

To know the exact scancode or ascii code generated by specific
keys on your keyboard, use showkey (from kbd package). See man
scancode for syntax and usage.

####[shridhar_daithankar (at) persistent.co.in]###############
:


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to