>People,
>
>I am trying to execute a PERL program based on email.
>I changed /etc/aliases, to add an alias:
>emailupdate: "|/home/bsparks/emaildb/emaildb.pl"
>I tried it both with, & w/out a space after the pipe |.
>After trying: echo "try this" | mail emailupdate
>I get a mail message saying:
>sh: emaildb.pl not available for sendmail programs
>
>The script exists in the right place, has execute set for others,
>the directories all have access set for others, runs when I 
>just run it as a program, etc. I've been rtfm'ing, & can't find
>any further requirements.
>
>What's happening?
>Bob Sparks
>Linux guru wannabe

What you need to do is make a link to your script in the /etc/smrsh/
directory.

It should work if you remove the full path and as root make this link:

ln -s /home/bsparks/emaildb/emaildb.pl /etc/smrsh/

----------------------------------------------------------------------
Here's what I have in mine:

ls -l /etc/smrsh/
total 0
lrwxrwxrwx    1 root     root           25 Apr 18 14:32 parselbs.sh -> 
/home/rea/bin/parselbs.sh

----------------------------------------------------------------------

Here is the reference to it from the aliase file:

lbsparse: "|parselbs.sh"


--------------------------------------------------------------
 Robert E. Anderson                     email: [EMAIL PROTECTED]
 Systems Programmer                     phone: (603) 862-3489
 UNH Research Computing Center            fax: (603) 862-1761
--------------------------------------------------------------

**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to