Right off the bat, does the calling user have 'x' and 'r' permission to the
script?

On Mon, 7 Oct 2002 10:38:32 -0500 "Krishna, Hari" <[EMAIL PROTECTED]> wrote:

> Hi friends,
> 
> I know this is off the list,  but I am pretty
> sure that some of you might
> figure it out and give me some clues as what am
> I doing wrong.
> I get the eror "ksh: send_email: cannot
> execute"
> sendmail is in /usr/sbin
> I changed the first line to reflect that, but
> still I get the error.
> 
> ----------------------------------------------------------------------------
> ---------
> 
> #!/usr/bin
> ID="1600TEST_SQL_as_an_attachment"
> ATTACH="Y"
> R1="[EMAIL PROTECTED]"
> FILEPATH="/home/mj80380/hari.txt"
> S="TEST SQL as an attachment"
> ALL="[EMAIL PROTECTED]"
> 
> NEWFILE='/home/mj80380/rik.txt'
> echo "From: HARI" >>$NEWFILE
> echo "To: $ALL" >>$NEWFILE
> echo "Subject: $S" >>$NEWFILE
> echo "MIME-Version: 1.0" >>$NEWFILE
> echo 'Content-Type: Multipart/Mixed;
> boundary="~-~-~-~-~"' >>$NEWFILE
> echo "" >>$NEWFILE
> echo "--~-~-~-~-~" >>$NEWFILE
> echo "Content-type: Application/text;
> name=$FILEPATH" >>$NEWFILE
> echo "Content-disposition: attachment;
> filename=`basename $FILEPATH`"
> >>$NEWFILE
> FILE
> echo "" >>$NEWFILE
> cat $FILEPATH >>$NEWFILE
> sendmail  -t 

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to