That does indeed seem to be part of the problem. I added an "or die"
statement to the open, and sure enough, it's dying with the error
"permission denied". However, nothing I do seems to fix that. It looks
like the user "mailnull" is opening the perl script, with the shell
/dev/null, which makes it difficult to work with. Thanks for the help
though.
Robert Aspinall
Support Engineer
V-ONE Corporation
[EMAIL PROTECTED]
----- Original Message -----
From: "Gary Stainburn" <[EMAIL PROTECTED]>
To: "Robert Aspinall" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 14, 2001 9:19 AM
Subject: Re: Sendmail w/perl
> I can't see anything wrong witth your code - as you say, there ain't that
> much of it.
>
> The one points I can mention (apart from the usual -w and use strict;) is
> that you don't chdir into anywhere so you may not be running where you
think
> you're running. Also, there's no error checking, so if you are running in
a
> directory where you don't have write access the open will fail without any
> warning.
>
> Hope these help.
>
> Gary
>
> On Tuesday 14 August 2001 2:04 pm, Robert Aspinall wrote:
> > The aliases entry is
> >
> > ca: "|caprocess.pl" (since smrsh calls it and ignores the path anyway)
> >
> > The script has nothing of any substance in it, just something like
> >
> > #!/usr/bin/perl
> > open (OUTPUT, ">output.txt");
> > print OUTPUT "testing!";
> > print "testing!";
> > print STDERR "testing!";
> >
> >
> > Any ideas?
> >
> >
> > Robert Aspinall
> > Support Engineer
> > V-ONE Corporation
> > [EMAIL PROTECTED]
> >
> > ----- Original Message -----
> > From: "Gary Stainburn" <[EMAIL PROTECTED]>
> > To: "Robert Aspinall" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Tuesday, August 14, 2001 8:54 AM
> > Subject: Re: Sendmail w/perl
> >
> > > Hows about giving us some code to look at?
> > > If it's a big un, just give us some snippets.
> > > Also, give us the aliases file entry that calls it.
> > >
> > > Gary
> > >
> > > On Tuesday 14 August 2001 1:51 pm, Robert Aspinall wrote:
> > > > I have an alias that runs a perl script whenever mail is recieved
for a
> > > > certain account, but as far as I can tell, the perl script runs
without
> > > > doing a single thing. Is there a way to see the output of the
script?
> >
> > I
> >
> > > > have it write "hello" to a text file (which never gets created),
print
> > > > hello to STDOUT, and even print hello to STDERR, and I don't see the
> > > > slightest peep from it.
> > > >
> > > > Any suggestions?
> > > >
> > > > Robert Aspinall
> > > > Support Engineer
> > > > V-ONE Corporation
> > > > [EMAIL PROTECTED]
> > >
> > > --
> > > Gary Stainburn
> > >
> > > This email does not contain private or confidential material as it
> > > may be snooped on by interested government parties for unknown
> > > and undisclosed purposes - Regulation of Investigatory Powers Act,
2000
> > >
> > > --
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
> Gary Stainburn
>
> This email does not contain private or confidential material as it
> may be snooped on by interested government parties for unknown
> and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]