cancel
Showing results for 
Search instead for 
Did you mean: 

how to send file to printer

Former Member
0 Kudos

Hi all

I am doing a file to file scenario. My requirment is that from xi i have to send the file directly to printer i have the ip address of the printer.

Plz guide me as its urgent

Regards

Saurabh

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

thanks prabhu, i am trying to explore it in google meanwhile if u get the proper syntax that has to be written in OS command tab then plz update

Regards,

Saurabh

prabhu_s2
Active Contributor
0 Kudos

check this:

% setenv PRINTER <printer>

% print testdoc.txt <printer>

if working fine have this in shell script and use it in cc

or type print in unix command prompt and press enter. this will give the usage format

Edited by: Prabhu S on Jan 4, 2008 11:28 AM

prabhu_s2
Active Contributor
0 Kudos

lpr testfile.txt is the command to print a file. but need to explore how to route the same to a printer by specifying the ip address. google search shud help here for some codes

Former Member
0 Kudos

hi prabhu

thanks for ur quick reply.would u please delve deep into the matter and tell me what os command i have to write if printer I.P address is known

Thanks in anticipation

Regards

Saurabh Sharma

prabhu_s2
Active Contributor
0 Kudos

Saurabh

i'm not an xpert in scripting but u can check with ur admin guys or even basis could help u having the scirpt that would print the file.

Prabhu

prabhu_s2
Active Contributor
0 Kudos

file-file with recv fiel dapter having OS command enabled where u can write a script to print the doc.