how to print an eventmail from a tcl to an lpr printer

Clovertech Forums Read Only Archives Cloverleaf Support Web how to print an eventmail from a tcl to an lpr printer

  • Creator
    Topic
  • #52065
    Mahmoud Ihaddadene
    Participant

      I’m using eventmail for A30 transaction and i need to print also this email to an lpr printer from my tcl, here’s a code i’m using on eventmail :

      if {[regexp “mail” $trackmode] } {

           exec echo “[subst $ebody]” | mail -s “[subst $esubject]” “$recipient”

                 }

      Regards,

      Mahmoud

    Viewing 0 reply threads
    • Author
      Replies
      • #72927

        Try something like this in tcl:

        Code:

        exec echo $var | lpr -d p00565; # where p00565 would be your printer name

        -- Max Drown (Infor)

    Viewing 0 reply threads
    • The forum ‘Support Web’ is closed to new topics and replies.