--- Thomas Wegner <[EMAIL PROTECTED]> wrote: > Hi Christopher! > > On 30-Jan-2001 Christopher R. Barry wrote: > > > > --- David Wright <[EMAIL PROTECTED]> wrote: > >> Quoting Christopher R. Barry ([EMAIL PROTECTED]): > >> > >> > > Are you sure your usb-printer > >> > > ist recognized by your system? > >> > > Try "cat <textfile> >/dev/lp0. Does it work? > >> > > >> > No, the command just hangs. > >> > >> What did you actually type? > >> I assume you *didn't* try /dev/lp0. > > > > I created a file "hello.text" containing just "hello" and I typed: > > > ># cat hello.text >/dev/usb/lp0 > > > > and also > > > ># cat hello.text >/dev/lp0 > > > > it just hangs. > Try: "strace cat hello.text >/dev/usb/lp0" > Perhaps you will get more infos about your problem.
It seems as if _nothing_ printer-related happens. Here is the output: bash-2.04# strace cat hello.text >/dev/usb/lp0 execve("/bin/cat", ["cat", "hello.text"], [/* 29 vars */]) = 0 uname({sys="Linux", node="HAL", ...}) = 0 brk(0) = 0x804b2e4 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(0x3, 0xbfffed0c) = 0 old_mmap(NULL, 23736, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\224\316"..., 1024) = 1024 fstat64(0x3, 0xbfffed54) = 0 old_mmap(NULL, 1093700, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001e000 mprotect(0x4011f000, 41028, PROT_NONE) = 0 old_mmap(0x4011f000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x100000) = 0x4011f000 old_mmap(0x40126000, 12356, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40126000 close(3) = 0 munmap(0x40018000, 23736) = 0 getpid() = 19030 brk(0) = 0x804b2e4 brk(0x804b30c) = 0x804b30c brk(0x804c000) = 0x804c000 fstat64(0x1, 0xbffff984) = 0 open("hello.text", O_RDONLY|0x8000) = 3 fstat64(0x3, 0xbffff984) = 0 brk(0x804e000) = 0x804e000 read(3, "hello\n", 4096) = 6 write(1, "hello\n", 6) = 6 read(3, "", 4096) = 0 close(3) = 0 close(1) = 0 _exit(0) = ? bash-2.04# __________________________________________________ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/