Zitat von
exponator
Hi
Hier mal verschiedene Möglichkeiten zum Testen.
a2ps -P druckername datei.java (Drucker angeben)
a2ps -d datei.java (-d = sende Datei über den default_drucker)
oder über den Umweg -o
Erst die Datei in eine PS-Datei umwandeln und dann mittels lp drucken.
a2ps datei.java -o datei.java.ps && lp datei.java.ps
Teste das mal und sag Bescheid.
Code:
user1@pc1:~$ a2ps -P iP4200 Raum.java cls
[Raum.java (Java): 1 page on 1 sheet]
a2ps: cannot open file `cls': No such file or directory
[cls (unprintable): ignored]
Status Information, attempt 1 of 3:
sending job 'user1@pc1+71' to iP4200@localhost
connecting to 'localhost', attempt 1
connected to 'localhost'
requesting printer iP4200@localhost
job 'user1@pc1+71' transfer to iP4200@localhost failed
error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
sending str '^BiP4200' to iP4200@localhost
error msg: 'spool queue for 'ip4200' does not exist on server pc1'
error msg: 'check for correct printer name or you may need to run'
error msg: ''checkpc -f' to create queue'
Waiting 10 seconds before retry
a2ps: received signal 2: Interrupt
user1@pc1:~$ cls
bash: cls: command not found
user1@pc1:~$ clear
user1@pc1:~$ a2ps -P iP4200 Raum.java
[Raum.java (Java): 1 page on 1 sheet]
Status Information, attempt 1 of 3:
sending job 'user1@pc1+82' to iP4200@localhost
connecting to 'localhost', attempt 1
connected to 'localhost'
requesting printer iP4200@localhost
job 'user1@pc1+82' transfer to iP4200@localhost failed
error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
sending str '^BiP4200' to iP4200@localhost
error msg: 'spool queue for 'ip4200' does not exist on server pc1'
error msg: 'check for correct printer name or you may need to run'
error msg: ''checkpc -f' to create queue'
Waiting 10 seconds before retry
a2ps: received signal 2: Interrupt
user1@pc1:~$ a2ps -d iP4200 Raum.java
a2ps: cannot open file `iP4200': No such file or directory
[iP4200 (unprintable): ignored]
[Raum.java (Java): 1 page on 1 sheet]
request id is user1@pc1+90
[Total: 1 page on 1 sheet] sent to the default printer
nachdem ich dann noch den
a2ps Raum.java -o Raum.ps && lp Raum.ps
probiert habe, hat sich die usb-Maus aufgehängt, und gedruckt hat er auch nicht.
Da steht was, daß für meinen Drucker keine spool existieren würde hier im Code oben.
Lesezeichen