We do not thinks there is a simple way. Could you tell us for what device is your question for? Why you want <CR><LF>? If the file is destined for Windows, a ftp ascii transfer to windows would do the correct translation. Or you can do your own translation.
Regards.
Layek
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Layek,
thanks for your answer.
I have several programs running under DSM in a VMS enivronment. They are printing via (reverse)-LAT on Line-Printers.
In LINUX i use the latd -Daemon (other sourceforge project) and try to print in that way :
S DEV="/dev/lat/printer" O DEV U DEV
W "abcdef",!,"ghijkl"
C DEV
The output is then :
--------------------------
abcdef
ghjkl
--------------------------
An option like U DEV:CRLF=ON would be very helpful even for file-transfer to other systems.
Greets
Jens
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Would you please do a "stat /dev/lat/printer" and
send us the output? This will help us determine
what type of device GT.M will think it is. GT.M
on UNIX does not have the concept of a printer so
it will likely be considered either a terminal or
a disk file.
One solution might be to set up a fifo process
which changes the LF to CRLF in its input before
sending it on to the printer.
Our general recommendation is to write to
a file and send the completed file to the
printer via the UNIX lpr command, typically
using ZSYSTEM to issue the lpr.
Sam
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your help - all
I prefer to use the lpr-variant with a lpf-filter.
This works good in combination with reverse telnet.
i found that this works fine with my Decserver 700's
Greetings Jens
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
is it possible to make GT.M output a
"abcdef<CR><LF>"
instead of "abcdef<LF>"
when executing a WRITE "abcdef",!
Greetings
Jens
Hi Jens
We do not thinks there is a simple way. Could you tell us for what device is your question for? Why you want <CR><LF>? If the file is destined for Windows, a ftp ascii transfer to windows would do the correct translation. Or you can do your own translation.
Regards.
Layek
Hi Layek,
thanks for your answer.
I have several programs running under DSM in a VMS enivronment. They are printing via (reverse)-LAT on Line-Printers.
In LINUX i use the latd -Daemon (other sourceforge project) and try to print in that way :
S DEV="/dev/lat/printer" O DEV U DEV
W "abcdef",!,"ghijkl"
C DEV
The output is then :
--------------------------
abcdef
ghjkl
--------------------------
An option like U DEV:CRLF=ON would be very helpful even for file-transfer to other systems.
Greets
Jens
Jens,
Would you please do a "stat /dev/lat/printer" and
send us the output? This will help us determine
what type of device GT.M will think it is. GT.M
on UNIX does not have the concept of a printer so
it will likely be considered either a terminal or
a disk file.
One solution might be to set up a fifo process
which changes the LF to CRLF in its input before
sending it on to the printer.
Our general recommendation is to write to
a file and send the completed file to the
printer via the UNIX lpr command, typically
using ZSYSTEM to issue the lpr.
Sam
Thanks for your help - all
I prefer to use the lpr-variant with a lpf-filter.
This works good in combination with reverse telnet.
i found that this works fine with my Decserver 700's
Greetings Jens