Re: Perl Script from CronJob Rights Problem
From: /dev/null (bit_char_g_at_gmx.net)
Date: 10/19/03
- Previous message: Grant Edwards: "Re: dd and mac floppies"
- In reply to: Paul Lutus: "Re: Perl Script from CronJob Rights Problem"
- Next in thread: Paul Lutus: "Re: Perl Script from CronJob Rights Problem"
- Reply: Paul Lutus: "Re: Perl Script from CronJob Rights Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Oct 2003 22:47:08 -0700
Paul Lutus <nospam@nosite.zzz> wrote in message news:<vp39ca78guard2@corp.supernews.com>...
> /dev/null wrote:
>
> > Hi,
> >
> > i wrote this little perl script that checks the mail queue of postfix,
> > determines which mails are older than two days and deletes them from
> > the queue using 'postsuper -d'.
> > When i execute that script being logged in as root it works perfectly,
> > but when it gets executed by Cron there seem to be some rights
> > problems.
> > Since i added it to the root Cron, i assume it is executed with root
> > rights, so i do not understand the problem.
>
> No script. No cron entry. No nothing. No help.
Sorry for that lack of information.
cron entry:
03 03 1-31 * * /usr/bin/perl /root/del_2_days_old_mail.pl >
/root/mail_deleting.log
It get`s executed, as i can tell from looking at the log file
script deleting part:
my $delete = system("postsuper -d $mail_id 1>&2>
/root/postsuper.error.log");
I thought this would pipe the output of postsuper to the error log
file, but unfortunately it doesnt work.
Thanks again and sorry, for the missing necessary information before.
Greets
- Previous message: Grant Edwards: "Re: dd and mac floppies"
- In reply to: Paul Lutus: "Re: Perl Script from CronJob Rights Problem"
- Next in thread: Paul Lutus: "Re: Perl Script from CronJob Rights Problem"
- Reply: Paul Lutus: "Re: Perl Script from CronJob Rights Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|