Link to home
Start Free TrialLog in
Avatar of lvnv
lvnv

asked on

Linux Cron Job

I need to issue this command every minute from within /etc/crontab:
echo 3 > /proc/sys/vm/drop_caches

What is the line I need to add to /etc/crontab to make it work?

 * * * * root echo 3 > /proc/sys/vm/drop_caches DOES NOT WORK

and a number of other variants...

true expert needed on this one...
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tintin
Tintin

ValleyENT

* * * *

is the correct/valid format for all Linux/Unix systems.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I tried to copy / create files under that dir on fedora 8 and it says that I can not create regular file
Avatar of lvnv

ASKER

umm...I'm giving you all 125 points to keep quiet...
it was my own fault...Late night dumb error...
crond was stopped...
turned it on and all is good...
thanks for your replies