View Single Post
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

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...


run every minute
* * * * * /usr/local/ispconfig/server/
run every 5 minutes:
*/5 * * * * /usr/local/ispconfig/server/
run at 5 minutes past the hour every hour:
5 * * * * /usr/local/ispconfig/server/
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:

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