Hi All -
I am having some troubles reading from a serial device in perl. I can send commands with the following code:
my $e1 = '\x'."$_[0]";
my $e2 = '\\'."$_[1]";
my $e3 = '\\'."$_[2]";
my $e4 = '\\'."$_[3]";
my $e5 = '\\'."$_[4]";
my $e6 = '\\'."$_[5]";
#### Send Command Bytes
system...
Hi All -
Have been trying to get this code running. It is the first example in on this page: http://www.easysw.com/~mike/serial/serial.html
#include <stdio.h> /* Standard input/output definitions */
#include <string.h> /* String function definitions */
#include <unistd.h> /* UNIX...
Hi all,
I am really new to c, and I am stepping through a C manual, the "Prentice Hall, C Programming Language" book and I am having frustrating problems with alot of the early examples.
Like this simple word count program will not compile:
#include <stdio.h>
#define IN 1
#define OUT 2...
Hi All,
I am relatively new to programming and am having some trouble with the following issue. Logically it seems all that would need to be done would make a variable variable and my problem would be solved. Here is the relevant part of my code;
@devices = ($device, @devices); }...
Hi All,
Having a bit of a problem with the login section of a site I am working on. As in the title I have the following two scripts.
(htdocs)/test/new/login_man.php
(htdocs)/test/new/myaccount.php
myaccount.php, uses a logincheck that basically says, if user logged in then continue... and...
Hello all,
I have been looking for the last hour or two on information on how to pass commands onto a normal program that would normally take input from a bash command line.
How can I run the program from perl and enter the predefined info into the input fields automatically.
I have tried...
Hello,
Have set up a few simple scripts lately on some new servers and PHP does not appear to be working the same way. I cannot seem to do this anymore:
IN a form
<td><a href=<?php echo $PHP_SELF ?>?id=<?php echo $myrow["id"] ?>&link=yes>Edit</a> </td>
I can no use this URL variable with a...
I am stuck trying to figure out how to exit a simple while loop with keyboard input.
For example If I have a few functions that are being looped through, ie:
while ($exit ne 1){
&function1;
&function2;
&function3;
}
The thing is I want the three functions to keep looping...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.