On Thursday 27 February 2003 6:12 pm, Graham Smith wrote:
Has anyone successfully setup YOU to be run from a cron job successfully? ... lin-2:~/bin # crontab -l MAILTO=graham ... I end up with the following error messages being emailed to myself
Error opening terminal: unknown. Error opening terminal: unknown.
Does anyone know what I'm doing wrong with the crontab to get these messages?
Yes. Yast(2) uses ncurses if it cannot use an X display; SuSE's support DB goes into detail as to why, but the short answer is they suggest setting MAILTO to null ("") to keep cron from trying to e-mail a result. [which really defeats the purpose of doing this automatically -- you WANT to know when it fails so you can correct it manually...] If you've got the space for it (about 6 gigs, I think) you should look into rsync'ing the update site [from a mirror] which CAN be done in a cron job -- then all you need to do is actually perform an "update" whenever you see rsync download files that you use [with the added bonus that since rsync already brought down the file, YOU can work against a local directory and the initialization time should be VERY quick...] -- Yet another Blog: http://osnut.homelinux.net