Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. labnotes

    Net::Telnet output_log

    Thank you .. I have not used tcpdump before, it looks like it will give me what I am after. Again thank you
  2. labnotes

    Net::Telnet output_log

    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...
  3. labnotes

    Adding multi-port serial cards on a slackware 12 server

    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
  4. labnotes

    Adding multi-port serial cards on a slackware 12 server

    ...==> 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 how to get ttyS4 and above to start the same...
  5. labnotes

    Adding multi-port serial cards on a slackware 12 server

    Thank you mrregan .. Looking at my system I need to create ttyS4, ttyS5 etc. I'll see if the inittab will do the trick
  6. labnotes

    Adding multi-port serial cards on a slackware 12 server

    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.
  7. labnotes

    Is there a Linux app something like Visual Basic?

    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.
  8. labnotes

    Adding multi-port serial cards on a slackware 12 server

    ...to take it's place running Slackware12 but I can't figure out how to configure the serial port. Here's what I have so far: setserial -g /dev/ttyS* /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4 /dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3 /dev/tts/2, UART: 16950/954, Port: 0x2060, IRQ: 16...
  9. labnotes

    net::telnet match statement

    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 =>...
  10. labnotes

    Multiple ethernet connections on Slackware 10.0

    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...
  11. labnotes

    multiple nak strings

    ...is my function to send and receive one ack and one nak string. I want to expand the nak to more that one nak string. int SendReceive(const char *cmd, const char *ack, const char *nak, int timeout, int printonly) { int ai, ni, r; char c; char cmd1[MAXINPUT]...
  12. labnotes

    Using C++ to work with Windows reg

    ...<stdlib.h> #include <WINReg.H> #include <Windows.h> #include "main.h" using namespace std; HKEY usersKey; char zsBuffer[1048]; signed long int *i; DWORD j; int len; int main(int argc, char *argv[]) { LONG cb = len; j = RegQueryValue(HKEY_LOCAL_MACHINE, ("SOFTWARE\\Microsoft")...
  13. labnotes

    using structires

    I corrected the problem I had an error in the header file.
  14. labnotes

    using structires

    ...// public_dial.h #define MAXINPUT 128 // Maximum string length everywhere #define RESPLEN 2000 // Maximum response length int start(char *host_name, char *user_name, char *password, char *db_name, unsigned int port_num, char *socket_name, unsigned int flags); typedef struct...
  15. labnotes

    Using dev-C++ to query windows registry

    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...
  16. labnotes

    ISO C++ forbids declaration of `CommandSetup' with no type

    ...__SESSION_H__ #define __SESSION_H__ class CSession { public: virtual int ReserveChannels() = 0; virtual int CommandSetup(char *pszResponse = NULL, int nRespLen = 0) = 0; protected: char m_szGateway[MAXINPUT]; // Gateway address }; #endif // __SESSION_H__...
  17. labnotes

    crt0.o

    On a LINIX PC how do I create crt0.o? Thanks
  18. labnotes

    How to get the PID on WINNT &amp; WIN2000

    You are correct sorry windows NT 4 Sp6. The &quot;__leave&quot; is part of the code on the MSDN web site.
  19. labnotes

    How to get the PID on WINNT &amp; WIN2000

    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...
  20. labnotes

    Network or local drive

    When I access a drive using C or C++ on a windows machine can I determine if it is a local or network drive? If so how. Thanks and have a great day

Part and Inventory Search

Back
Top