lpt bash command
Hello everyome!
I want to develop a littel program to control lpt port (project in electronic). Someone know command (or site with command) to do this? Sorry for very bad English.. Thanks, ell! |
Assuming you're programming in C/C++, the easiest approach is something like this:
Code:
#include <sys/types.h> For example, the O'Reilly "Linux Device Drivers" book has a whole chapter (Chap 9) on interfacing a custom kernel driver to your parallel port: http://lwn.net/Kernel/LDD3/ 'Hope that helps .. PSM |
bash=c?!
I'm new in linux.. Thanks, ell! |
Sorry - I didn't notice your title line, I just read your text:
Quote:
But, AFAIK, if you "want to control the LPT port" (separate and distinct from simply spooling stuff to the printer), you're probably going to have to use some programming language other than "bash". These links might be of some use: http://www.torque.net/linux-pp.html http://www.epanorama.net/circuits/parallel_output.html http://www.lvr.com/jansfaq.htm Sorry I can't be of more help .. PSM |
First, Thank you for the help!
If I understand you good, there is no option to control in circuits like this: www .epanorama.net/circuits/lptleds.gif in Bash? Thank you for your help! ell |
Hi -
There's ALWAYS a way - depending on how tricky and clever you want to get. But no, as far as I know, this is probably a job for 'C' (or a similar systems-level language). Sorry I can't be of more help ... and I'm 100% prepared to be wrong ;-) Your .. PSM |
O.K.
Thank you for the information! Have a nice day! ell |
All times are GMT -5. The time now is 03:14 AM. |