Hello, I'm trying to convert an integer array into an unsigned char array, but my experience with this is limited. I don't want to lose any information during the conversion. Can anyone provide some tips?
The idea is to have a singly link list of nodes and each node has a local table of data represented by another link list. I know where the seg fault is coming from, but I don't know why. Rather than paste my whole program, I typed up this stub that shows what Im trying to do. If there are...
I'm using the indent utility to reformat c source files and I notice that the options you provide to the utility affects the whole file. I'm wondering if its possible to only format certain sections of code instead of formatting all the code in the input file.
For example I have a source file...
Hello All,
I'm doing some socket programming and I need to pass data structures in a tcp/ip stream. I understand how to send character arrays in the buffer and parse it on the other end because I can pick apart the data one byte at a time. However I'm having some difficulty grasping the...
Hello All,
I apologize in advance if this is the wrong forum for my question. I have many computers running under redhat 9.0 and I want them on a private lan. Everything is setup and I'm using the class A (10.0.0.0) addresses for them. All of the computers are connected to a 16 port linksys...
Hello All,
I'm trying to create a distributed system using a tcp server/client model and I'm having trouble getting the clients and server to talk. The main communication protocol is to pass message structures over a connected socket but it appears the data is getting garbled after a...
Hello All,
I'm experiencing some odd runtime behavior when using the fgets() function as an alternative to scanf(). I'm simply trying to read in some user input such as a string of text. I notice that if I use the fgets() call inside the main() routine, I get a user prompt. But if I call...
Hello All,
I'm getting some gcc compile errors and the compiler is complaining with this message;
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(text+0x18): In function `_start`:
../sysdeps/i386/elf/start.S:77: undefined reference to `main'
I'm running redhat 9.0 and after some...
Hi All, maybe you can help with this compile error.
While compiling with gcc, I get an error that states
callbacks.o: In function 'create_window1':
/usr2/accounts/joeschmoe/project/interface.c:27: multiple definition of 'create_window1'...
Hello All,
In writing a simple server application using C, I encountered a weird bind() error. After creating a socket, my bind will fail and I receive a return error of Error 88 Socket Operation on Nonsocket. Has anyone seen this problem before or know what may be causing it? I'll paste...
Hello All,
In writing a simple server application using C, I encountered a weird bind() error. After creating a socket, my bind will fail and I receive a return error of Error 88 Socket Operation on Nonsocket. Has anyone seen this problem before or know what may be causing it? I'll paste...
I have a handful of source files written in C code and I would like to change the header information in all of them. So basically I want to either add or remove the text in the file and replace it with something I want. What is the best approach to accomplish this? Here's an example...
Hi all, hopefully you can help me with this problem.
There is a linux workstation that is assigned an ip via dhcp on the corporate network and there are a couple of users who cannot telnet to the box directly. They are able to access the workstation if they telnet from another machine on the...
Hi All,
I'm new to linux and I would like to run some programs globally from any user account. I thought this can be done if we add the directory path to the PATH and this does seem to work. However, each time I log off, the PATH seems to return to it's default value.
Does anyone know how I...
Hi All, I wrote a simple script that telnets into a list hosts and issues a command. Everything works fine, but the script fails whenever there is a failed login attempt. I'd like to create a if condition inside my subroutine and when there is a failed authentication, the program simply skips...
I'm trying to write a simple telnet script to log into a router and the problem I'm encountering is that the script times out at "$telnet->login($username, $password);". Is it because I am expecting the wrong prompt?
#!/usr/bin/perl -w
#program to telnet to remote host
use...
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.