UNIX/Linux Programming - May 2008

writing to stdin
 
hi... got a problem how can i write something to stdin... well about pipes... I really cant get the idea cause... pipe(), fd , read(), select(), unistd.h... ...
[2 replies] Last: Yes, you can't write to stdin. It is input only. However, the pur... (by Duthomhas)
recomendations
 
Hi to all, I used to be a programmer in visual basic in WINDOWS, INFORMIX and some C with SCO unix. I was looking to start c++ in LINUX but am at a bit of a...
[8 replies] Last: Ahhhh nice, DB Support. I don't really have any interest in trying QT ... (by Zaita)
How to give connectivity with the Database
 
Hello sir/madam With due to most respectifully that i am doing small project.But i don't know how go give connectivity with the Database.I am very i...
[1 reply] : You will want to use an ODBC connection. You can use a multi-platform ... (by Zaita)
Rice Decoding running time problem
 
Hi all, currently, I write a little program with Rice coding. When I Encode, it runs quickly, but when Decode, it runs very-very slow. Can some one help m...
[2 replies] Last: Thanks for your advice Duoas, surely i don't wanna spam forums. i w... (by crayon66)
strange behavior of pthread_cond_wait
 
Hi everyone! This is my first post here so I hope I am at the good place... For my internship I have to develop an application to analyse experimental data....
[2 replies] Last: hi Zaita I recoded everything and it works now... thank you :) (by axiagame)
hi im c++ beginner, can u give me some advice to improve this code.
 
#include <iostream> #include <mysql.h> using namespace std; struct MySQLRS{ public: MySQLRS(MYSQL *pMySQL); ~MySQLRS(); MYSQL_RES *ptrResult; ...
[2 replies] Last: sir can u rewrite this program and make it simple. thanks (by detorresrc)
by sjang
Exec format error. Wrong Architecture.
 
Hi I used gcc -c -o test.exe test.cpp, there was no compilation error, but when i ran test.exe on the command line, it gave me: Exec format error. Wrong ...
[4 replies] Last: Hi getting rid of that -c fixed it. Thanks for helps! sjang (by sjang)
by scone
Cmd line trouble
 
I want to write a program that has several input areas at once. Ideally be able to tab through them. All in a terminal. Thanks in advance.
[1 reply] : You need to use the curses library. There should be a man page on you... (by bnbertha)
by Cedsan
PB de librairie mysql sous linux
 
Bonjour à tous Je travaille sur un gros projet en C++ qui marche sous linux et windows. Suite à un crash de notre serveur ovh, nous avons du réinstaller ...
[1 reply] : You might want to put that in English so that people who actually know... (by Duthomhas)
is child blocked on read?
 
I have forked a child process that redirects stdin to one pipe and stdout to another. The child then calls execv. The parent reads from the pipe the child...
[3 replies] Last: figured it out: execl("/usr/bin/strace", "strace", "-p", <pid conv... (by idontknow)
How to set/change the title bar of a Terminal console in Linux?
 
Hi, How Can I change the title bar of the Terminal console in Linux? In windows this can be done by the help of title command. Is there anything equivalent...
[7 replies] Last: http://www.faqs.org/docs/Linux-mini/Xterm-Title.html (by Duthomhas)
by sabya
Implementing shared/exclusive locking (readers/writer) lock
 
Question Implementing shared/exclusive locking (readers/writer) lock Hi, I am using semaphore to implement Single Writer Multiple Readers (Reader / write...
[3 replies] Last: The following threads are about preventing multiple instances of an ap... (by Duthomhas)
strrev in unix
 
#include <string.h> int main(){ char mystring ; strcpy(mystring, "Rommel"); strrev(mystring); } #ERROR `strrev' undeclared (first use th...
[1 reply] : I assume strrev() reverses the string? There is no such equivalent to... (by jsmith)
Change the thread priority
 
Hello everybody, does anybody knows how I could change the thread priority? Thanks...
[1 reply] : If you are using Linuxthreads (pthreads, ie, not NPTL) then you could ... (by jsmith)
Why delete doesnot delete all my memory location?
 
Hi, Hope U must B doing well. I have a problem please help me in sorting out the same. I have created a dynamic integer Array and initialized its values. ...
[4 replies] Last: Thnx Smith :-) Nice interact with U. Hope to interact with U soon... (by DiptenduDas)
by markw
Core dump problem
 
This isn't the standard ulimit problem - I've triple checked all the configuration for that. The core file produced by my app seems to get truncated to about...
[no replies]
  Archived months: [apr2008] [jun2008]

This is an archived page. To post a new message, go to the current page.