View Single Post
  #2  
Old 29th May 2013, 01:32
monkfish monkfish is offline
HowtoForge Supporter
 
Join Date: Mar 2013
Posts: 106
Thanks: 9
Thanked 15 Times in 14 Posts
Default

Think you might have to specify timings... there are 5 fields that go before the command set you want to run in cron, defined as minute,hour,day,month,day of week...

eg

run every minute
Code:
* * * * * /usr/local/ispconfig/server/server.sh
run every 5 minutes:
Code:
*/5 * * * * /usr/local/ispconfig/server/server.sh
run at 5 minutes past the hour every hour:
Code:
5 * * * * /usr/local/ispconfig/server/server.sh
Also is your script supposed to be piping output to file in /lists/64 - what shows up on my screen in your original post doesn't look quite right?

This works:

Code:
repoquery --queryformat %{name} --installed -a > /lists/64/"$(hostname -s).list"
How often you want to run this? You could of course put your script into /etc/cron.daily and be done with it!
Reply With Quote