Michael A Chase wrote: >> >> lpr -P //host/name gmeta1.ps- what to put in //host etc. ? >> > >Check your Window's printer definitions. 'host' is the name of the server >hosting the printer. 'name' is the shared name of the printer in that >host. >If its a local printer, use your computer's name and the printer's name.
Doesn't work for me on XP. Mine is a local printer, my computer's name is -- according to the value of the COMPUTERNAME envvar -- 'JASON', and my printer name is -- according to the Printers and Faxes control panel -- 'HP LaserJet 1200 Series PCL'. This information is also given thus on the Windows XP Printer Test Page. However: $ lpr -P "//JASON/HP LaserJet 1200 Series PCL" eight.c lpr: can't open '//JASON/HP LaserJet 1200 Series PCL' for writing lpr: The printer name is invalid. (Yes, I know I shouldn't be sending it a textfile but rather PCL, but I don't think that's the issue here.) Just for laughs I tried substituting the 'Port name", whatever that is, for the 'Printer name', with equally dismal results: $ lpr -P "//JASON/DOT4_001" eight.c lpr: can't open '//JASON/DOT4_001' for writing lpr: The printer name is invalid. I have read all the postings in this on-again, off-again thread, but although they raise, they do not appear to solve, the issue which is that some of us cannot connect to our printer *at all* under Cygwin, and it always comes down to the fact the we do not know how to refer to it *symbolically* (an ability which all the various fixes assume). It may be relevant that my printer is connected via USB, but then again, private correspondence with someone else having these problems, and who is connected via the parallel port I gather, suggests that it may not be. Cygcheck output attached as file cygout.txt. _____________________________________________ Jason C. Johnston mailto:[EMAIL PROTECTED] http://www.astadhyayi.net
Cygwin Win95/NT Configuration Diagnostics Current System Time: Tue Apr 02 19:05:59 2002 Windows XP Professional Ver 5.1 Build 2600 Path: C:\Documents and Settings\Jason C. Johnston\My Documents\cygwin-home\jcj\dev\bin C:\Documents and Settings\Jason C. Johnston\My Documents\cygwin-home\jcj\bin C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin c:\bin c:\Tcl\bin c:\texmf\miktex\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\emacs\emacs-21.1\bin SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS HOME = `C:\Documents and Settings\Jason C. Johnston\My Documents\cygwin-home\jcj' MAKE_MODE = `unix' PWD = `/home/jcj/dev/src' USER = `Jason C. Johnston' !:: = `::\' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\Jason C. Johnston\Application Data' CLIENTNAME = `Console' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `JASON' COMSPEC = `C:\WINDOWS\system32\cmd.exe' CVSEDITOR = `/usr/bin/vim' CVSROOT = `/usr/local/cvsroot' FIGNORE = `.o:~' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\Jason C. Johnston' LOGONSERVER = `\\JASON' MANPATH = `:/usr/ssl/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/home/jcj' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 15 Model 1 Stepping 2, GenuineIntel' PROCESSOR_LEVEL = `15' PROCESSOR_REVISION = `0102' PROGRAMFILES = `C:\Program Files' PROMPT = `@ ' PS1 = `\[\033]0;\w\007\033[32m\]$\[\033[33m\033[0m\] ' SESSIONNAME = `Console' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINDOWS' TEMP = `c:\DOCUME~1\JASONC~1.JOH\LOCALS~1\Temp' TERM = `cygwin' TMP = `c:\DOCUME~1\JASONC~1.JOH\LOCALS~1\Temp' USERDOMAIN = `JASON' USERNAME = `Jason C. Johnston' USERPROFILE = `C:\Documents and Settings\Jason C. Johnston' WINDIR = `C:\WINDOWS' _ = `/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x00000022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/home (default) = `C:\Documents and Settings\Jason C. Johnston\My Documents\cygwin-home' flags = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:/cygwin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:/cygwin/bin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:/cygwin/lib' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/A N/A c: hd NTFS 19037Mb 29% CP CS UN PA FC d: fd N/A N/A e: cd CDFS 587Mb 100% CS UN B2002SE C:\Documents and Settings\Jason C. Johnston\My Documents\cygwin-home /home user textmode . /cygdrive user binmode,noumount C:/cygwin / system binmode C:/cygwin/bin /usr/bin system binmode C:/cygwin/lib /usr/lib system binmode Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\find.exe Found: C:\cygwin\bin\gcc.exe Found: C:\cygwin\bin\gdb.exe Found: C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\sh.exe 56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0 "cygbz21.0.dll" v0.0 ts=2000/11/21 10:53 621k 2002/01/16 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto.dll" v0.0 ts=2002/1/16 20:54 107k 2002/01/23 C:\cygwin\bin\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0 "cygcurl-2.dll" v0.0 ts=2002/1/24 5:25 45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 "cygform5.dll" v0.0 ts=2001/4/25 15:28 35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0 "cygform6.dll" v0.0 ts=2002/1/9 17:03 19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm.dll" v0.0 ts=2002/2/20 14:05 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 "cyghistory4.dll" v0.0 ts=2001/1/7 15:34 20k 2002/01/13 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0 "cyghistory5.dll" v0.0 ts=2002/1/13 12:27 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0 "cygintl-1.dll" v0.0 ts=2001/12/13 20:28 21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0 "cygintl.dll" v0.0 ts=2001/6/21 3:09 81k 2001/10/20 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0 "cygitcl30.dll" v0.0 ts=2001/10/20 10:25 35k 2001/10/20 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0 "cygitk30.dll" v0.0 ts=2001/10/20 10:25 119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0 "cygjpeg6b.dll" v0.0 ts=2002/2/9 16:19 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 "cygmenu5.dll" v0.0 ts=2001/4/25 15:27 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0 "cygmenu6.dll" v0.0 ts=2002/1/9 17:03 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++5.dll" v0.0 ts=2001/4/25 15:29 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++6.dll" v0.0 ts=2002/1/9 17:03 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses5.dll" v0.0 ts=2001/4/25 15:17 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses6.dll" v0.0 ts=2002/1/9 17:03 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 "cygpanel5.dll" v0.0 ts=2001/4/25 15:27 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0 "cygpanel6.dll" v0.0 ts=2002/1/9 17:03 40k 2001/11/21 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0 "cygpcre.dll" v0.0 ts=2001/11/22 9:15 39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix.dll" v0.0 ts=2001/11/22 9:15 170k 2002/01/21 C:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0 "cygpng2.dll" v0.0 ts=2002/1/21 12:05 108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 "cygreadline4.dll" v0.0 ts=2001/1/7 15:34 121k 2002/01/13 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0 "cygreadline5.dll" v0.0 ts=2002/1/13 12:27 156k 2002/01/16 C:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0 "cygssl.dll" v0.0 ts=2002/1/16 20:54 390k 2001/10/20 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 "cygtcl80.dll" v0.0 ts=2001/10/20 10:24 5k 2001/10/20 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 10k 2001/10/20 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 "cygtclreg80.dll" v0.0 ts=2001/10/20 10:24 253k 2002/02/10 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0 "cygtiff3.dll" v0.0 ts=2002/2/10 19:34 623k 2001/10/20 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 "cygtk80.dll" v0.0 ts=2001/10/20 10:25 50k 2002/01/20 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2002/1/21 6:41 751k 2002/02/25 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2002/2/26 3:14 Cygwin DLL version info: DLL version: 1.3.10 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 51 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Mon Feb 25 11:14:34 EST 2002 Shared id: cygwin1S3 Cygwin Package Information Last downloaded files to: C:\Downloads Last downloaded files from: ftp://mirror.aarnet.edu.au/pub/cygwin Package Version ash 20020131-1 autoconf 2.52a-1 autoconf-devel 2.52-4 autoconf-stable 2.13-4 automake 1.5b-1 automake-devel 1.5-5 automake-stable 1.4p5-5 bash 2.05a-3 bc 1.06-1 binutils 20011002-1 bison 1.33-1 byacc 1.9-1 bzip2 1.0.1-6 clear 1.0 cpio 2.4.2 cpio-src 2.4.2 crypt 1.0-1 crypt-src 1.0-1 ctags 5.2-1 curl 7.9.3-1 cvs 1.11.0-1 cygutils 0.9.9-1 cygwin 1.3.10-1 dejagnu 20010117-1 diff 0.0 expect 20010117-1 file 3.37-1 fileutils 4.1-1 findutils 4.1 flex 2.5.4-1 gawk 3.0.4-1 gcc 2.95.3-5 gdb 20010428-3 gdbm 1.8.0-4 gettext 0.10.40-1 ghostscript 6.51-4 gperf 0.0 grep 2.5g groff 1.17.2-1 gzip 1.3.2-1 indent 2.2.7-2 jpeg 6b-7 less 358-3 libintl 0.10.38-3 libintl1 0.10.40-1 libncurses5 5.2-1 libncurses6 5.2-8 libpng 1.0.12-1 libpng2 1.0.12-1 libreadline4 4.1-2 libreadline5 4.2a-1 login 1.4-3 lynx 2.8.4-1 m4 0.0 make 3.79.1-5 man 1.5g-2 mingw 20010917-1 mingw-runtime 1.2-1 mktemp 1.4-1 nano 1.0.7-1 ncurses 5.2-8 newlib-man 20001118-1 openssl 0.9.6c-3 patch 2.5-3 pcre 3.7-1 perl 5.6.1-2 popt 1.6.2-1 python 2.2-1 readline 4.2a-1 sed 3.02-1 sh-utils 2.0-2 sharutils 4.2.1-2 tar 1.13.19-1 tcltk 20001125-1 tcsh 6.11.00-4 termcap 20010825-1 terminfo 5.2-1 texinfo 4.0-5 textutils 2.0.21-1 tiff 3.5.7-1 time 1.7-1 units 1.77-1 unzip 5.41-1 vim 6.0.93-1 w32api 1.2-1 wget 1.8.1-1 which 1.5-1 zip 2.3-1 zlib 1.1.3-7 Use -h to see help about each section
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/