Hello
I am running perl and making telnet calls using the Net::Telnet module, overall Net::Telnet works great! One issue I am having is capturing what is coming back from some sites, when I do not know what to expect.
Here is my telnet session set up:
sub Telnet
{ #This function will...
Thank you for your assistance. I am running the 2.6 kernel which by default only loaded 4 serial ports. I modified the kernel ".config" file that recompiled the kernel. Now I have all the serial ports I require working. Thank you again
Looking at my system under /dev I have ttyS0 ==> ttyS3. These are symbolic link to /dev/tts/0 ==> 3. They are created by the system on boot up I guess from information in the /sys folder. I found references to them in /sys/class/tty/ttyS* which points to /sys/devices/pci0000:00/. I don't know...
The /etc/inittab has serial devices commented out, the devices are ttyS0 and ttyS1. Once I have the ports available they are used by terminal server program. The serial ports need to activated on bootup and stay available.
Good Afternoon
I have found that PERL with CGI will probably do what you want. You will have to load modules. In my experience this would be just text base but perl works well and fast.
Good Day
I had a PC (server) running Redhat 7.3 with two 8 port serial cards installed. This PC ran for 7 years without a problem but finally failed. I am now trying to get an IBM NetVista PC to take it's place running Slackware12 but I can't figure out how to configure the serial port. Here's...
Good morning
I am working on a perl telnet script using module "net::telnet" and have multiple and different matches e.g:
sub Telnet_Wait
{
my $timeout = shift;
my ($before,$match) = ();
($before,$match) = $telnet->waitfor( timeout =>...
Good Day
I have a server with 3 ethernet ports on it. ETH0 and ETH1 on the same subnet, eth2 is on a different subnet. When I have them all connected everything seems to work file. If I do ifconfig eth2 down I loose contact with the ip on eth2, when I do ifconfig eth2 up it's back on line. If...
Good Day!!
I am creating a program to send and receive input from a telnet session in C/C++.
I create the pipes, can send and receive and look for an "ack" string and "nak" string ok.
Now I want to look for multiple naks strings coming in from the input pipe. Any suggestions ??
Here is my...
I am trying to look at the registry on a WINNT machine. I have
the microsoft SDK loaded and am using it's lib and header files but can't seem to get the information I am expecting.
Here's my simple code that I expect should provide the same response as from a dos prompt "reg query...
I am working on a small program C++. I have information obtained in one function that will be used by many other functions. I am considering using a structure to store the information but I don't know how to share it between functions.
here is an example: first the header file
//...
Good day
I would like to write a C/C++ program to query and edit the registry on a windows NT and 2000 PC. There are functions to do this in windows platform SDK such as:
LONG RegOpenCurrentUser(
REGSAM samDesired, // access rights
PHKEY phkResult // handle to open key
);
The problem...
Hi I am in the process of porting an 8 yr old program from a a Linux PC kernal 1.3.45 to a newer PC with RH 7.1. When I recompile the program I get the error
"ISO C++ forbids declaration of `CommandSetup' with no type."
I am not sure how to clear this problem, on the old compiler...
Hi
The above code doesn't work on a Win NT machine I tried using the
EnumProcesses() function but I run into a road block with __leave and I don't
understand the information I found on
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndeepc/html/deep060399.asp.
any ideas...
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.