Thursday, May 15, 2008

Linux Fedora Core: How to set the mailing service of YUM Package Manager

To set the mailing notification system of the YUM Packages Manager on Fedora Core Linux systems (as SLC4) edit the file
/etc/sysconfig/yum-autoupdate

and uncomment and edit this line:
#YUMMAILTO="root"

YUM will send a notification email to root every time it update something. Mail messages sent to "root" are stored in the file /var/mail/root. simply open this file with an editor or with more or cat commands.

If you want to receive a notification email on a real e-mail box, you can add more addresses separated by coma, as for example:
YUMMAILTO=user@domain.com,"root"

Wednesday, May 7, 2008

list of file with full path with 'ls' in a shell

if you want a list of file with the full path, ready to be pasted in a txt file to be processed by a script, for example, you have to add $PWD to the path in 'ls';
e.g.:

ls -1 $PWD/*.root

will show you the list of all the files ending with .root with their full path.