| > | > How can I make a text files ? and I found the user is in /var/mail | > How can I copy, paste to that users tell me the command please ???
You can generate the users list automatically with the help of cron job and an amazing utility called awk. Here is an example that you can put in your corntab. #-- Generate a file with all users from /etc/passwd 0 6 * * * /bin/awk -F: '$3 > 100 { print $1"@yourdomain.com" }' /etc/passwd > /path-to-dir/allusers #-- To put the above entry in the crontab of root, type: > crontab -e and then press "i" (without the inverted commas), then copy and paste the above line. This will generate a file at "/path-todir/allusers" everyday at 6 am. You can also manually generate the list by invoking: > /bin/awk -F: '$3 > 100 { print $1"@yourdomain.com" }' /etc/passwd > /path-to-dir/allusers Be sure to replace yourdomain.com with your domain and path-to-dir with the path where you want the allusers file to be saved. BTW, this will skip the systems users whose uid is less than 100. If you are not using /etc/passwd then you are on your own. Regards, +---------------------------------------------------+ | Ziaur Rahman | PGP Key: 0x8B686E8E| | http://zia.info | http://pgp.mit.edu| | | | +---------------------------------------------------+ .-.-.-.-.-.-.-.-.- Quote-o-moment .-.-.-.-.-.-.-.-.-. Quantum dynamics are affecting the transistors .-.-.-.-.-.-.-.-.- Quote-o-moment .-.-.-.-.-.-.-.-.-. Composing started at: Mon Jun 9 15:17:03 SGT 2003 _) _) _| _ / | _` | | __ \ | _ \ / | ( | | | | __| ( | ___|_|\__,_|_)_|_| _|_| \___/ --.. .. .- .-.-.- .. -. ..-. --- ( morse code ) -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list