Menu

print problem...

Help
2003-10-24
2003-10-25
  • Luciano Bernabé

    Hi all,

          When i try to print, i get the error:
    %GTM-E-UNIMPLOP, Unimplemented construct encountered
                    At M source location teste+2^teste

    teste ; testes
    s dev="/dev/lp0"
    o dev u dev
    w !,"teste....."
    c dev
    q
    ;
          Why this ocurr?

    Luciano.

     
    • Dr. Martin Lehr

      Dr. Martin Lehr - 2003-10-25

      Hi Luciano,

      it is not possible to open parallel devices.
      You can open serial devices:
      S DEV="/dev/ttyS0" O DEV U DEV

      If you want to use parallel devices, you have to
      send your data to a file, for example /tmp/print.dat
      and after that you can say
      ZSY "cp /tmp/print.dat /dev/lp0"
      but you must have write access to /dev/lp0
      (normally only root)
      Perhaps it is better to use the printer daemon:
      ZSY "lpr -l -Plp /tmp/print.dat"
      (assuming that lp is the name of the printer)

      Martin

       
    • Luciano Bernabé

      Martin,

         thank you!!!, I go to use your last suggestion.

      Regards,
      Luciano.

       

Log in to post a comment.