Re: Expire undeleted mail older than specified age
Hi Marcelo, Well, i have copied the perl script of expire_mail.pl in /usr/local/sbin/expire_mail.pl. And put the following into my cron job: 0 23 * * 3 /usr/local/sbin/expire_mail -l -M -a 60 /var/mail/* Seems not work. So i run the command manually and found that /usr/local/sbin/expire_mail: Command not found. Do i missed out any steps? Cheers, Ann On 7/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I use a perl script called expire_mail.pl. Search google for it´s name, it´s simple and can be used from cron. - Marcelo Souza On Mon, 11 Jul 2005, Ann Lee wrote: |Hi , | |Does anyone know how could I make expire_age - Expire undeleted mail |older than specified age in freebsd v4.8..Any quick command that I can |run to delete off for unread messages for /var/mail/root. Coz I would |like to do a rotation job to auto-housekeeping my mail folder. | |Thanks in advance. | |Cheers, |Ann |___ |freebsd-questions@freebsd.org mailing list |http://lists.freebsd.org/mailman/listinfo/freebsd-questions |To unsubscribe, send any mail to [EMAIL PROTECTED] | - Marcelo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expire undeleted mail older than specified age
Seems not work. So i run the command manually and found that /usr/local/sbin/expire_mail: Command not found. Look at the 1st line of the script and check whether it is /usr/bin/perl or /usr/local/bin/perl and if second that you have a /usr/local/bin/perl. Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expire undeleted mail older than specified age
The 1st line is /usr/local/bin/perl . Trying to put in usr/local/bin/perl same problem. Command not found. Ann On 7/12/05, Olivier Nicole [EMAIL PROTECTED] wrote: Seems not work. So i run the command manually and found that /usr/local/sbin/expire_mail: Command not found. Look at the 1st line of the script and check whether it is /usr/bin/perl or /usr/local/bin/perl and if second that you have a /usr/local/bin/perl. Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expire undeleted mail older than specified age
The 1st line is /usr/local/bin/perl . Trying to put in usr/local/bin/perl same problem. Command not found. Where is your perl interpreter? $ which perl and use the reult in the first line. i expect the result to be /usr/bin/perl so the 1st line should be #!/usr/bin/perl Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expire undeleted mail older than specified age
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ann Lee [EMAIL PROTECTED] writes: Hi Marcelo, Well, i have copied the perl script of expire_mail.pl in /usr/local/sbin/expire_mail.pl. And put the following into my cron Here you use expire_mail.pl job: 0 23 * * 3 /usr/local/sbin/expire_mail -l -M -a 60 /var/mail/* Here you use expire_mail (no .pl) Is this the problem? - -- Ben -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC03Hwpt3yYclAKVsRAnmPAJ0Sy0bKLgazEQSwPgA6J9Q23ClNhQCghuZn 9Cfxlz9jHx59JK2VL4h+qTY= =GMwB -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expire undeleted mail older than specified age
my perl interpreter is /usr/bin/perl. Try to replace the 1st line to #!/usr/bin/perl. No luck.. command not found... Ann On 7/12/05, Olivier Nicole [EMAIL PROTECTED] wrote: The 1st line is /usr/local/bin/perl . Trying to put in usr/local/bin/perl same problem. Command not found. Where is your perl interpreter? $ which perl and use the reult in the first line. i expect the result to be /usr/bin/perl so the 1st line should be #!/usr/bin/perl Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expire undeleted mail older than specified age
Hummm, Are you sure you have execute rights to expire_mail.pl? ls -l expire_mail.pl Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expire undeleted mail older than specified age
Hi Ben, Thank you so much. It works finally and it was perfect. I shd use expire_mail (no .pl), not expire_mail.pl. Special thanks to Marcelo and Olivier :) Ann On 7/12/05, Ben Jencks [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ann Lee [EMAIL PROTECTED] writes: Hi Marcelo, Well, i have copied the perl script of expire_mail.pl in /usr/local/sbin/expire_mail.pl. And put the following into my cron Here you use expire_mail.pl job: 0 23 * * 3 /usr/local/sbin/expire_mail -l -M -a 60 /var/mail/* Here you use expire_mail (no .pl) Is this the problem? - -- Ben -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC03Hwpt3yYclAKVsRAnmPAJ0Sy0bKLgazEQSwPgA6J9Q23ClNhQCghuZn 9Cfxlz9jHx59JK2VL4h+qTY= =GMwB -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expire undeleted mail older than specified age
I have full access right to expire_mail.pl, coz i've changed to chmod 777 expire_mail.pl. Also, I have read some article on expire_mail and they all mentioned to use expire_mail.pl. But it's weird, I can use expire_mail, but not expire_mail.pl. Anyway, the case has been solved. 10q Ann On 7/12/05, Olivier Nicole [EMAIL PROTECTED] wrote: Hummm, Are you sure you have execute rights to expire_mail.pl? ls -l expire_mail.pl Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expire undeleted mail older than specified age
On Tue, 12 Jul 2005, Ann Lee wrote: Well, i have copied the perl script of expire_mail.pl in /usr/local/sbin/expire_mail.pl. And put the following into my cron job: 0 23 * * 3 /usr/local/sbin/expire_mail -l -M -a 60 /var/mail/* Seems not work. So i run the command manually and found that /usr/local/sbin/expire_mail: Command not found. Do i missed out any steps? From above, the file is called expire_mail.pl, but you don't have the .pl extension in the cron command line, or in the command you typed. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Expire undeleted mail older than specified age
Hi , Does anyone know how could I make expire_age - Expire undeleted mail older than specified age in freebsd v4.8..Any quick command that I can run to delete off for unread messages for /var/mail/root. Coz I would like to do a rotation job to auto-housekeeping my mail folder. Thanks in advance. Cheers, Ann ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Expire undeleted mail older than specified age
Hi, I use a perl script called expire_mail.pl. Search google for it´s name, it´s simple and can be used from cron. - Marcelo Souza On Mon, 11 Jul 2005, Ann Lee wrote: |Hi , | |Does anyone know how could I make expire_age - Expire undeleted mail |older than specified age in freebsd v4.8..Any quick command that I can |run to delete off for unread messages for /var/mail/root. Coz I would |like to do a rotation job to auto-housekeeping my mail folder. | |Thanks in advance. | |Cheers, |Ann |___ |freebsd-questions@freebsd.org mailing list |http://lists.freebsd.org/mailman/listinfo/freebsd-questions |To unsubscribe, send any mail to [EMAIL PROTECTED] | - Marcelo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]