Computing.Net > Forums > Programming > 'Printing' to a port

'Printing' to a port

Reply to Message Icon

Original Message
Name: cjgaudon
Date: January 27, 2003 at 04:20:07 Pacific
Subject: 'Printing' to a port
OS: UNIX
CPU/Ram: P4 1.4G
Comment:

I'm new to Unix and I have a requirement to send a file from Unix to a port to be picked up by a J2EE app listening on that port. Before I spend weeks trying to figure out how to do this, does anyone know if Unix can even do this and what would be required?


Report Offensive Message For Removal


Response Number 1
Name: borelli34
Date: January 27, 2003 at 05:55:14 Pacific
Reply: (edit)

Yes, basically anything can be done in UNIX that can be done in any other OS but the questions is how you plan to go about it....Do you require a programatic approach or are you looking for a ready made driver. Will this be implemented from within another program or as a script? These are all questions that must be asked before they can be answered so I guess what I am saying is that some more information (specifics) would help us a great deal in helping you with your question. If you'ld like, feel free to email me at borelli34@cox.net.

John Borelli


Report Offensive Follow Up For Removal

Response Number 2
Name: cjgaudon
Date: January 27, 2003 at 06:26:59 Pacific
Reply: (edit)

I just found out that the requirements are not quite what I thought. We need to send a 'printfile' from mainframe to a Unix box on a certain port. That's it. I've written a Java class that sends text from my machine to that port on the unix box to test it and it works fine, but my co-worker seems to be having trouble sending any info to the same port from the mainframe box. He's trying to send what would normally be sent to a printer from mainframe to unix as a file.


Report Offensive Follow Up For Removal

Response Number 3
Name: borelli34
Date: January 30, 2003 at 00:11:31 Pacific
Reply: (edit)

Not knowing your complete setup, I have to ask. Is there any chance that the port is virtual under UNIX and may differ on a client?


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: 'Printing' to a port

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge