View Single Post
  #5  
Old 29th May 2013, 11:17
Frankly3D Frankly3D is offline
Junior Member
 
Join Date: Dec 2006
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by monkfish View Post
Put this in a script file, eg checkrepo.sh

Code:
#!/bin/sh
repoquery --queryformat %{name} --installed -a > /lists/64/"$(hostname -s).list"
Don't forget to chmod +x after you save it.

Run it, does it produce the results? Seems to on mine. HTH.
Just tested it, as a cron hourly:
# > /var/log/cron
# run-parts /etc/cron.hourly
# cat /var/log/cron
May 29 10:11:33 frank01 run-parts(/etc/cron.hourly)[21072]: starting 0anacron
May 29 10:11:33 frank01 run-parts(/etc/cron.hourly)[21081]: finished 0anacron
May 29 10:11:33 frank01 run-parts(/etc/cron.hourly)[21072]: starting checkrepo.sh
May 29 10:11:35 frank01 run-parts(/etc/cron.hourly)[21089]: finished checkrepo.sh
May 29 10:11:35 frank01 run-parts(/etc/cron.hourly)[21072]: starting mcelog.cron
May 29 10:11:35 frank01 run-parts(/etc/cron.hourly)[21095]: finished mcelog.cron

It seems to run without hitch, thank you.
__________________
frankly3d.com
"Still Learning"
Reply With Quote