mohsen...@gmail.com
unread,Dec 6, 2012, 6:20:03 AM12/6/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I don't know if I am at the right place to ask my question.
But any way, I explain my problem.
I use on Win7 the cygwin to use linux in our company.
Here no one knows any thing about Unix or linux and even less about cygwin.
At the old company I could print from cygwin any text file on the common printer,
which was connected to the server.
I had in my .bash_profile the following alias:
alias lpc='lpr -d //forum/HP\ Color\ LaserJet\ 5550 '
The whole stauff after "-d" was the printer name on the server.
But now in the new company they have a printer on the server "//srv-com02",
which is called "PRI-AVOR".
I've tried to use the same alias as before like the following:
alias lpa='lpr -d //srv-com02/PRI-AVOR '
But it bring the error message:
$ lpa bla
lpr: printer error: can't open '\\srv-com02\PRI-AVOR.lnk' for writing: Der Druckername ist unzulässig.
It seems that it wants a link to this printer. But when I type in the string
"//srv-com02/PRI-AVOR" in the windows explorer I'll see the printer and if iI go one directory higher, I'll see all other printers.
What should I set in .bash_profile to get it working.
Best regards
Mohsen