<div dir="ltr"><div>Hello everyone, I'd changed the server and mutt started working, but I'll test your advices and wil let you lnow ass soon as I can.</div><div> </div><div>Thank you!</div><div> </div><div>Elder</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 24, 2013 at 7:38 AM, Larry Moore <span dir="ltr"><<a href="mailto:lmoore@omninet.net.au" target="_blank">lmoore@omninet.net.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 22/06/2013 2:17 PM, Steve Edwards wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
On Sat, 22 Jun 2013, Larry Moore wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
echo >> "$MSGFILE"<br>
printf "%18s" "Sender: " >> "$MSGFILE"; printf "%-20s\n"<br>
"${REMOTESTATIONID}" >> "$MSGFILE"<br>
printf "%18s" "Pages: " >> "$MSGFILE"; printf "%-20s\n" "${FAXPAGES}"<br>
>> "$MSGFILE"<br>
printf "%18s" "Signal Rate: " >> "$MSGFILE"; printf "%-20s\n"<br>
"${FAXBITRATE} bit/s" >> "$MSGFILE"<br>
printf "%18s" "CallerID Number: " >> "$MSGFILE"; printf "%-20s\n"<br>
"${CIDNUMBER}" >> "$MSGFILE"<br>
printf "%18s" "CallerID Name: " >> "$MSGFILE"; printf "%-20s\n"<br>
"${CIDNAME}" >> "$MSGFILE"<br>
printf "%18s" "Call Duration: " >> "$MSGFILE"; printf "%-20s\n"<br>
"${DURATION}" >> "$MSGFILE"<br>
printf "%18s" "Status: " >> "$MSGFILE"; printf "%-20s\n" "${FAXERROR}"<br>
>> "$MSGFILE"<br>
</blockquote>
<br>
How about:<br>
<br>
#!/bin/bash<br>
FORMAT='%18s %-20s\n'<br>
(<br>
printf "${FORMAT}" 'Sender:' "${REMOTESTATIONID}"<br>
printf "${FORMAT}" 'Pages:' "${FAXPAGES}"<br>
printf "${FORMAT}" 'Signal Rate:' "${FAXBITRATE} bits/s"<br>
printf "${FORMAT}" 'CallerID Number:' "${CIDNUMBER}"<br>
printf "${FORMAT}" 'CallerID Name:' "${CIDNAME}"<br>
printf "${FORMAT}" 'Call Duration:' "${DURATION}"<br>
printf "${FORMAT}" 'Status:' "${FAXERROR}"<br>
) >>${MSGFILE}<br>
<br>
</blockquote>
<br></div></div>
Thank Steve,<br>
<br>
That makes the section more readable and it works with /bin/ksh too.<br>
<br>
Cheers,<br>
<br>
Larry.<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</div></div></blockquote></div><br></div>