10 More Discussions You Might Find Interesting
1. Programming
I have started reading the book Unix Network Programming, Volume 1: The Sockets Networking API. I downloaded all the source code and performed all the steps present in README file.Now when i compile my first program it give the following error.
sainandan@nandan:~/unpv13e/intro$ ./daytimetcpcli... (1 Reply)
Discussion started by: bsainandan
1 Replies
2. Programming
Dear Linux users,
I'm a noob at openmp, gcc and c programming. I can run my own openmp code in terminal with no problem, eg. gcc -fopenmp program.c -o program.
But now I'm trying to compile and run another person's code, it contains a makefile and multiple .c and .h files. I don't know how to... (2 Replies)
Discussion started by: pigeon151
2 Replies
3. Shell Programming and Scripting
Hi
Here is the problem ( Exercise 3-3, Using The Shell of The Unix Programming Environment, Kerninghan, Pike, 3rd edition ):
Predict what each of the following grep commands will do, and then verify your understanding.
grep \$
grep \\$
grep \\\$
grep '\$'
grep '\'$'
grep \\
grep \\\\... (3 Replies)
Discussion started by: dum_dum20
3 Replies
4. Programming
Dear all,
I am making a multithreaded server using socket programming in c .. i'd discovered that when the client closes the connection and the server is still sending him a stream of bytes the server crashed with a BROKEN PIPE problem.
I can easily make the client notify the server before... (2 Replies)
Discussion started by: Omar_Mokhtar
2 Replies
5. Programming
I need development help with a AWK Program.
1
2
3 THIS IS THE INPUT FILE – EACH EMPLOYEE MAY HAVE FROM 1 TO 30 RECORDS
4 INPUT
5 1-4 Project
6 5-12 Employee
7 13-14 Sequence (MAYBE FROM 1 TO 30)
8 15-21 Work Code
9 22-22 Pri Code
10
11 9991|80100001|1|0389999|1|
12... (21 Replies)
Discussion started by: gator5242
21 Replies
6. Shell Programming and Scripting
I am going through the examples in the book "Pro Bash Programing" which is quite a good book on bash programing. Just a word of warning about the example script called sa that simply shows command line arguments. In CentOS 5.5 there is a program called sa already on the system. Boy did that throw... (0 Replies)
Discussion started by: simusphere
0 Replies
7. Homework & Coursework Questions
Hello everybody,
I decided to take a Unix Introduction class and have never had experience with programming. Everything was fine until recently when the Prof. started shell scripting and he wants us to make a small script to add unlimited numbers from arguments and from standard input.
I... (8 Replies)
Discussion started by: Florinel76
8 Replies
8. Shell Programming and Scripting
i want to calculate power of 10 as follows:
coef=2.0588
ra1=$(awk 'BEGIN{print 10^$coef}')
it gives a result 1
when,
if i calculate
ra1=$(awk 'BEGIN{print 10^2.0588}')
it gives a result 114.499
what should i do? (2 Replies)
Discussion started by: SANGUINE
2 Replies
9. UNIX for Advanced & Expert Users
Hi all
I encountered a strange phenomenon when reading / writing to RS232 serial device (on my machine /dev/ttyS0)
I have simple 2 processes:
1) process which WRITE characters from /dev/ttyS0
For example write the characters... (2 Replies)
Discussion started by: dudi.forum
2 Replies
10. Programming
Im trying to write some code atm which gets the complete pathname of a folder and strips off references to the parent folders. The end result should be just the name of the folder.
Currently Im able to extract the folder name, however Im getting junk added onto the name as well which is making... (7 Replies)
Discussion started by: JamesGoh
7 Replies