09-23-2002
Let me make sure I have this straight...
You have a printer attached to your PC. You connect to the Unix server via telnet/SSH or some other emulation. You want it to print to your printer?
If the above is correct, you cannot just makedev on the Unix server. You'd need to set your workstation up as a print server, then configure the Unix box to forward print requests...
9 More Discussions You Might Find Interesting
1. Programming
Hi,
I've tried to compile a program I wrote with a Makefile, yet it returns an error:
<<<test_log>>>
itest_log.o /sr/local/bin/gcc -o test_log.o -I ../../../include -L ../../../lib -llog_mgr
sh: itest_log.o: execute permission denied
Error code 1
make: Fatal error: Command failed for... (3 Replies)
Discussion started by: Stevhp
3 Replies
2. Linux
Dear All,
Need your help to rectify this error.
Recently I have upgraded my Linux server from 32 bit to 64 bit server.
OS details are
Red Hat Enterprise Linux Server release 5.3
Kernel 2.6.18-120.el5 on an x86_64
After upgradation, when i try to compile or catalog any program, it is... (2 Replies)
Discussion started by: mysmileforu
2 Replies
3. Shell Programming and Scripting
Can someone please shed light on why this may not be working, file does exist, but I get an error
if ]
then
echo "No ${source_path}/${file_mask} found - ">> ${logfile}
result=1
check_result ${result} "Failed to find file... (4 Replies)
Discussion started by: Pokermad
4 Replies
4. UNIX for Dummies Questions & Answers
I am new to PHP and UNIX. I am using Apache to do my testing on a Windows Vista machine.
I am getting this error when I am trying to connect to a web service. I did a search and did not see any posts that pertain to this.
Here is my function:
<?php
function TRECSend($a, $b, $c, $d,... (0 Replies)
Discussion started by: EddiRae
0 Replies
5. Virtualization and Cloud Computing
After some initial confusing results measuring "before-and-after CloudFront/S3" performance, Dennis Opacki, Systems Operations Manager for Amazon Cloudfront offered to help. Working with the test results from a number of members of The UNIX and Linux Forums pulling a small 1623 byte gif object... (3 Replies)
Discussion started by: Neo
3 Replies
6. Programming
Hey,
I'm currently getting into some kernel module progamming. As a little exercise I want to read the headers out of an ELF file. My code is very simple, here is the important part:
struct file *fp;
/* ... */
fp = filp_open("some/file/on/my/pc", O_RDONLY, 0);
if(fp == NULL) {
... (15 Replies)
Discussion started by: disaster
15 Replies
7. Shell Programming and Scripting
I am setting a number of variables in my script and I would like to test they exist by using a for loop.
e.g.
VAR1=abc
VAR2=xyz
for i in VAR1 VAR2; do
if ; then
echo Alert
fi
done
But of course the $i doesn't refer to the variable itself, rather to the strings VAR1 & VAR2.
Does... (2 Replies)
Discussion started by: Catullus
2 Replies
8. Programming
How to initialize an object of class say "A", with an object of type say "B".
The following code give the error message "error: conversion from âAâ to non-scalar type âBâ requested"
#include <iostream>
using namespace std;
class B;
class A{
public:
A() { cout <<"\nA()" << endl; }
... (1 Reply)
Discussion started by: techmonk
1 Replies
9. UNIX for Beginners Questions & Answers
Hello, :)
I'm trying to test if a remote directory exist per ssh, I have already made a ssh key and it works :
#!/bin/bash
HOST="10.10.1.22"
FILE_PATH="/var/wwww/html"
ssh -q $HOST ] && echo "Directory exists" || echo "Directory does not exist";
Output :
... (4 Replies)
Discussion started by: Arnaudh78
4 Replies
LPT(4) BSD Kernel Interfaces Manual LPT(4)
NAME
lpt -- generic printer device driver
SYNOPSIS
device ppc
device ppbus
device lpt
DESCRIPTION
The current lpt driver is the port of the original lpt driver to the ppbus(4) system.
One purpose of this port was to allow parallel port sharing with other parallel devices. Secondly, inb()/outb() calls have been replaced by
ppbus function calls. lpt is now arch-independent thanks to the ppbus interface. See ppbus(4) for more info about the ppbus system.
The parallel port bus is allocated by lpt when the printer device is opened and released only when the transfer is completed: either when the
device is closed or when the entire buffer is sent in interrupt driven mode.
The driver can be configured to be either interrupt-driven, or to poll the printer. Ports that are configured to be interrupt-driven can be
switched to polled mode by using the lptcontrol(8) command.
Depending on your hardware, extended capabilities may be configured with the lptcontrol(8) command. With an ECP/ISA port, you can take
advantage of FIFO and DMA.
In order to retrieve printer info from /dev/lpt0, just apply the cat command to the device. If the printer supports IEEE1284 nibble mode and
has data to send to the host, you will get it.
FILES
/dev/lpt0 first parallel port driver
SEE ALSO
ppbus(4), ppc(4), lptcontrol(8)
HISTORY
This driver replaces the functionality of the lpa driver, which is now defunct.
BUGS
There are lots of them, especially in cheap parallel port implementations.
It is only possible to open a lpt port when a printer is connected and on-line, making it impossible to run lptcontrol(8) when there is no
printer connected.
This driver could still stand a rewrite.
BSD
February 14, 1999 BSD