Mutt - filepro report processing - Unix
Richard D. Williams
richard at appgrp.net
Mon Sep 22 12:25:16 PDT 2014
On 9/22/2014 1:58 PM, Henry Arredondo wrote:
> -----Original Message-----
> From: Filepro-list [mailto:filepro-list-bounces+hxarredondo=lkqcorp.com at lists.celestial.com] On Behalf Of Kenneth Brody
> Sent: Monday, September 22, 2014 12:57 PM
> To: Fairlight; filepro-list at lists.celestial.com
> Subject: Re: Mutt - filepro report processing - Unix
>
> On 9/22/2014 1:16 PM, Fairlight wrote:
>> The user you are logged in as before you go into filePro is the one to
>> which the bash shell drops privileges between the SYSTEM() call and
>> the actual execution of mutt.
>>
>> If that user did not have permissions for /usr2/henry/, this could
>> result in an inability to see anything being redirected in, and might
>> result in that message.
>>
>> Are your permissions set appropriately?
> If the user didn't have access to that directory, then the shell would give an error on the redirect, and mutt would never even run.
>
> [...]
>>> Example :
>>>
>>> /usr2/henry> umask 0
>>> /usr2/henry> cal 2014 > 2014 # generates a file called 2014 with the 2014 calendar
>>>
>>> Then a run the command and it works perfectly:
>>>
>>> /usr2/henry> mutt -s subject henry at email.com<mailto:henry at email.com>
>>> < 2014
>>>
>>> But this below will throw a "Could not send the message." Right after running the report.
>>>
>>> 63 ------- - - - - - - - - - - - - - - - -
>>> . If: .
>>> Then: system "cd /usr2/henry ; mutt -s Subject henry at vegena.net < 2014"
> [...]
>
> Are there any flags to mutt to have it give you more info beyond "I'm sorry, Dave, I can't do that"? Perhaps an error log file with details?
>
> --
> Kenneth Brody
>
>
> Ken,
>
> I made the command even simpler and still no good.
>
> 63 ------- - - - - - - - - - - - - - - - -
> . If:
> Then: system "mutt -s Test henry at vegena.net < /dev/null"
>
> I get a blank email when ran on the command line with subject test, but run from filepro all I get is:
>
> ┌─────────────────────────┐
> │ Email Shipment Packslip │
> └─────────────────────────┘
>
>
>
>
>
>
>
> Records Selected: 1
>
> Generating Output: 1
>
>
>
>
>
>
>
> ────────────────────────────────────────────────────────────────────────────────
>
> H
> Could not send the message.
>
>
>
>
> I checked Mutt's Man page but I don't see any logs at all. I even checked the system's mail log file but it's not showing any entry at the time of running the process.
>
> Please consider the environment before printing
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
Henry,
Mark is right. Try this ....
system "cd /usr2/henry ; mutt -s*\"*Subject*\"* henry at vegena.net < 2014"
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20140922/fa1d908a/attachment.html>
More information about the Filepro-list
mailing list