Programming :: PHP To Direct LPT Port Print?

May 31, 2011

Any one using php program to direct lpt port print command, now i am creating one programe for mini shope that system having citizen CT-S4000 model.

View 2 Replies


ADVERTISEMENT

Debian :: Direct Port To HTML Page?

Oct 16, 2010

how exactly would you open a port and point it to an html page, like port 80 does by default?

Example: Port 2985 -> ./var/www/login/index.php

View 5 Replies View Related

General :: Direct Kernel Messages To COM Port?

Mar 31, 2010

I need to debug a kernel panic. It prints some long log to the console, but even if i set 1920x1440 VESA framebuffer mode, i can't see it whole.
So, i would like to direct all the kernel messages to a COM port and read them on another machine. Is there any way of doing so? What are the other (maybe better/easier/etc.) ways of catching whole kernel panic messages or scrolling the ones already displayed?

View 3 Replies View Related

Programming :: How To Re-direct Image

Feb 17, 2009

How to re-direct image

View 1 Replies View Related

Programming :: Re-direct The Output Within An Awk Script?

Feb 27, 2011

I need to re-direct the output within an awk script, but not to already known, fixed filenames. The output file names depend on values of the fields. For example (the actual problem is surely more complicated), if, on a given line, the second field is DATA, the third is 1984, I would like to print some information in a file called output_DATA_1984. This could/would change in the following line of the same input file. Such things are pretty easy in bash, put I cannot do it in awk, as I can only find manual references for redirecting output to fixed filenames between double quotes.

View 2 Replies View Related

Programming :: How To Do A Direct Memory Access

Jul 26, 2011

I have a single board computer previously running DOS. I recently made Linux running on it. Now that the system is running Linux, I have to translate the code that was supported by DOS. The code has segments that allow direct access of memory mapped registers through the macro _MK_FP and do read/write. I have read that where DOS allows this kind of direct memory access, Linux does not. Is there a way to do this in Linux?

View 6 Replies View Related

Programming :: Direct Standard Output From Find Command?

Mar 26, 2010

I'm trying to pull out sections from a bunch of files. For one file, I use:

Code:
sed '/string1/,/string2/ !d' <filename.ext >newfilename.ext
to pull out everything between two strings in the original file and put them in a new file.

[code]....

View 3 Replies View Related

SUSE :: Printer Does Not Print Using USB Port

Aug 11, 2009

my epson printer on my system consists of: ASUS A8N32-SLI DELUXE. THE printer CX8400 using usb port does not print it, only spools out paper with suse 11.1

View 4 Replies View Related

Slackware :: 13 - When Plugin Usb Device In The Usb Port It Print Error

Jan 21, 2010

After new installation of slackware 13 when I plugin usb device in the usb port it's print error:

And I have not premission on the device and I must mount the device handle. I

View 10 Replies View Related

Programming :: Create A Message Forwarder Program That Receive A Message On Port A And Pass It On T Port B?

Sep 6, 2010

We are trying to create a message forwarder program that receive a message on Port A and pass it on t Port B. Also receive a message from Port C and Pass it on to Port D as follows.

[Code]...

View 4 Replies View Related

Programming :: Write Shell Script That Adds An Extension ".new" To All The Files In A Direct?

May 28, 2010

How to Write a small shell script that adds an extension ".new" to all the files in a directory.

View 2 Replies View Related

OpenSUSE Hardware :: Parallel Port Printer Configuration On 11.2 64 - "There Is No Print Queue"

Dec 13, 2009

I installed SuSE 11.2 64-bit on a new computer without any printer attached. When I read the manual for the mainboard, I discovered to my delight that it actually has a parallel port, it's just not connected. I moved the cable from an old desktop and put it into my new desktop. After enabling the port in the BIOS setup, the Hardware Information dialog in yast correctly shows that I have a HP LaserJet 1100 (/dev/lp2).

How do I configure the printer? "Printer" in yast tells me "There is no print queue". When I click "Add" yast tries to detect a printer and gives up with the message "No connection selected". I can't add a selection, however. "More connections" gives me the exact same error message. The "Connection Wizard" allows me to select "Parallel Port", but then complains about missing connections again. The cups demon is running. I don't have /dev/lp2, is that the problem?

View 9 Replies View Related

Programming :: Paralel Port Kernel Module Programming

Jan 5, 2011

do you have any code to flash led lights with paralel port (device driver programming)or any lecture about this subject .if there is a working code this would be better ofcourse.

View 1 Replies View Related

Programming :: Socket Programming Using Php - Swap A Client Ip And Port?

Mar 28, 2011

Is it possible to swap a client ip and port ? This is what I am trying to do. Let say you have Comp1 and Comp2 And you have Server between them. My goal is to get Comp1 and Comp2 know each others IP So Comp1 connects to server And server stores comp1's IP In a text file or other place And Comp2 connect to server And server also stores his info And then both comp1 and comp2 dowload the tex file And use the info on it.

View 9 Replies View Related

Programming :: Print NaN Using The Awk?

Jun 24, 2010

I want to print NaN value in a file containing of 3600 rows and 7 columns.The illustration of output file which I want to is as follows :

NaN NaN NaN NaN NaN NaN NaN (the first row)
NaN .... NaN
.
.
.
NaN .... NaN (the 3600 rows)

I tried to use below command

awk 'BEGIN {for(i = 1; i <= 3600; i++); printf "%s", "NaN", $1" "$2" "$3" "$4" "$5" "$6" "$7}' > output

Unfortunately, I couldn't get what I want to.

View 6 Replies View Related

Programming :: Rs232 Serial Port Programming?

Jun 1, 2010

I have been working on writing a small rs232 driver like minicom for months. I am almost there, I have the interrupt service routine running, I can read() ok. However when I write(), it returns the number of characters written, 1, but nothing is actually written out the port. I researched termios, and they say that serial port programming is really messy in linux/unix.

I am probably not setting up the port parameters correctly, or my write() function is not doing what it is supposed to. As I said, write() is returning successful. Other comm programs run ok (picocom & gtkterm) on my hardware. I am running knoppix/debian on an ancient computer. I saw other guys using slackware.

View 14 Replies View Related

Programming :: Serial Port Programming String?

Nov 24, 2010

I have a serial port program which is reading a string .if(read(readfd,sResult,1)>0)where sResult is unsigned char sResult[10];if sResult is array of 10 then iam getting string perfectly but if iam making sResult only as unsigned char I am getting NULL value CODE BELOW

Code:
unsigned char sResult;
main()
{
readfd = open("/dev/ttyUSB0", O_RDONLY);
if (readfd == -1)
{
perror("READ: open_port: Unable to open /dev/ttyUSB0-

[Code]...

View 2 Replies View Related

Programming :: Print A Value To A File ?

Apr 12, 2010

I have this code:

How can I print &FARAchieved to a file? Or, printing the whole bioReturn would be fine too.

View 8 Replies View Related

Programming :: Print Everything After $date?

Feb 21, 2010

Say I have a line like such:

Code:
today 2010 Feb 21 test10, 12AM

How would I print everything AFTER "2010 Feb 21 "?

What I thought to do so far is to set a variable to the format used in the string like so:

Code:
date="$(date +%Y %b %e)"

So I know I have to use either awk, sed, or perhaps bash substrings to work with the variable $date, but as to how, I'm drawing a blank.

View 5 Replies View Related

Programming :: Print Variable Value In Awk?

May 16, 2011

problem statement:

pattern_search="Exam Name"
sed -n "/$pattern_search/,/hello/"p tmp5 | awk '{if ( $4 != 0 && $4 ~ /[0-9]+.*[0-9]*/ ) print "$pattern_search" " " $0 }'

"tmp5" is a file. this is printing output as

$pattern_search value1

i.e value of $pattern_search is not getting substituted. i am expecting output as

Exam Name value1

View 3 Replies View Related

Programming :: Edit Sshd_conf Files To Change The "#Port 22" To "Port 22" From A Script?

Feb 4, 2011

i am trying to edit sshd_conf files to change the "#Port 22" to "Port 22" from a script.

I have tried this many different ways.

sshs1='s/#Port 22/Port 22/g'
sed $sshs1 /home/l/Desktop/test

the reason i have it as a string in this instance is because $sshs1 gets a variable, but im not working on that right yet. I've tried changing the ' to ` and ". this is what i get:

sed: -e expression #1, char 7: unterminated `s' command
sed: -e expression #1, char 8: extra characters after command
sed: -e expression #1, char 8: extra characters after command
"
sed: -e expression #1, char 7: unterminated `s' command

i know it may have to do with my regex, but i cant seem to find a decent tut.

View 2 Replies View Related

Programming :: Put All The HTML In A Print Statement?

Sep 14, 2010

I have a site which will have, for example, a login system where people have to enter their usernames and passwords, depending on which they'll be let in to the site. So, in code, I've got a line like:

if ($_POST['password'] == $password) {
then do whatever
}
else { print "Wrong password" ; )

My problem is, this "Wrong password" printing is just a solitary line, not keeping with the colours and style of the site, and it looks very bad. I want to ideally, output some HTML, which will have a picture, and print the "Wrong password" in the font and colours I desire. Do I have to put all the HTML in a print statement, and then deal with the nightmare of escaping all the quote marks in it with a ""? Or is there a cleaner method to the whole thing? Maybe something like this -

if ($_POST['password'] == $password) {
then do whatever
}

[code]....

View 4 Replies View Related

Programming :: How To Tell Java To Print 20 When Value Is In That Range

Jul 28, 2011

I've just started programming at my university and I'm finding it a bit hard to get started. I've been given this for homework.Given 2 integers, a and b, print their sum. However, sums in the range 10..19 inclusive, are forbidden, so in that case just print 20The problem I'm having is that i don't know how to tell java to print 20 when the value is in that range.

View 14 Replies View Related

Programming :: Print All ASCII Characters In C#?

Mar 9, 2011

i want to print all ASCII characters kind of like a table, but i really don't have an idea of how to do it, i don't know if there is a built-in method or something to accomplish this, if not

View 2 Replies View Related

Programming :: Print Command Monitoring ?

Aug 17, 2010

I am trying to write a program that monitors when an lp or basically any sort of print command is issued. If a print command is detected I want to pause that job and ask the user if he / she wants to continue.

This program would run in the background all the time so it can't sit and eat up a lot of cpu. I tried a simple while loop that continuously monitored "ps" and that obviously boosted my cpu to 100%.

View 1 Replies View Related

Programming :: Print File Name In BASH

Feb 26, 2009

I want to write a script that returns me name of the files that begin with the specified characters. like

Script out should be

View 3 Replies View Related

Programming :: Print Out Network Interfaces

Feb 3, 2010

how do i combine these two lines to output all network interfaces on my machine?

View 1 Replies View Related

Programming :: Doesn't Print Anything Trying To Run Awk Code

May 22, 2011

I am just trying to run the following piece of awk code. But it doesn't print anything. where I am doing wrong?

[code]...

View 5 Replies View Related

Programming :: Supposed To Print Shapes

Oct 10, 2010

I've been working on it for over 20 hours and I'm stuck. It asks the user for input and then prints a shape of a certain length.

View 4 Replies View Related

Programming :: Difference Between PHP Echo() And Print()?

Dec 1, 2010

What's the difference between PHP echo() and PHP print(), especially in the execution time?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved