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
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
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
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
-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
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
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]
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:
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
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
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
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
12 matches
Mail list logo