Hello,
Using PHP on Linux, I'd like to determine whether a shell command run using exec() was successfully executed. I'm using the return_var parameter to check for a successful return value of 0. This works fine until I need to do the same thing for a process that has to run in the background. For example, in the following command $...
Background: I've inherited an embedded linux-based system that contains an SMTP proxy and some wacky constraints that I just have to live with. It sits between an SMTP client and server. When an SMTP client connects, the proxy opens a connection to the server and passes the client's data to the server after some on-the-fly processing....
Excluding Cocoa (and its NSThread), what multithreading libraries would you recommend?
The application's engine must run on multiple platforms (Windows, Linux, MacOS, iPhone), and be multithreaded. Abstracting the library to compile against platform-specific MT libraries is possible, but incurs an extra layer of overhead and complexity...
I am writing code that runs in Windows and outputs a text file that later becomes the input to a program in Linux. This program behaves incorrectly when given files that have newlines that are CR+LF rather than just LF.
I know that I can use tools like dos2unix, but I'd like to skip the extra step. Is it possible to get a C++ program i...
I have projects in eclipse workspace. I can build the related projects. But when i invoke the project the libraries in the project can not be seen by the main process. I must copy the libraries to the /usr/lib or /usr/local/lib but i don't want my system know my libraries. How can i solve this problem. How can i say to eclipse "run my ma...
If I'm working in a terminal window in Linux, is there a keyboard shortcut I can use to select output displayed on previous lines? If I select something with the mouse I can copy using ctrl-shift-c, but is there a way to select without using the mouse at all. I'm using either gnome terminal or kde konsole in ubuntu desktop.
For examp...
I want a write a program that run an executable image without creating a new process... I want to do this because I want to use plink that send a password to a remote ssh server...
The plink program sends the password provided in command line .. If I use fork and exec functions someone can see the password provided in command line usin...
We use gettext for translations in our product, but have had a lot of problems with it:
Can't use a language unless the system supports it.
On Solaris 9 Sparc, if we reset the environment to various English locales, the message still won't be translated, if the machine doesn't have the corresponding locale. The translation file is pr...
I want to make (for fun, challenge) a videoconference application, I have some ideas about this:
1) taking the audio/video streams (I don't know what an audio/video stream is)
2) pass this to a server that lets communicate the clients. I can figure out how to write a server(there are a lot of books and documentation about this) but I r...
How do you replace the first letter of a word into Capital letter,
e.g.
Trouble me
Gold rush brides
into
Trouble Me
Gold Rush Brides
...
What is the name of the font used in the CentOS logo?
Link to CentOS Site
...
How can I find out what settings a certain NIC was loaded with in linux? I know there's modprobe.conf , but it doesn't give me the config if it was loaded using custom params with modprobe. Also, is it possible to figure out what the default setting for a driver is?
...
I've got a software running on Linux that is leaking memory. It's an embedded system so I don't have a lot of debugging tools so I'm using printf's.
Short of doing something like 'popen()'ing a call to 'cat /proc/meminfo' and scanning for the MemFree line, is there a way I can put this information in a printf?
At present I'm doing som...
I have a big troubles with display of UTF-8 data retrieved from the MySQL to the Linux-based C++ application. UTF text is shown as question marks.
The application uses the MySQL C API. So I passed the UTF-8 option after mysql_init() and before mysql_real_connect():
mysql_options(&mysql, MYSQL_SET_CHARSET_NAME, 'utf8');
and
mysql_op...
I would like to get the system uptime from within a C application running on a linux-based system. I don't want to call uptime(1) and parse the output, I'd like to call the underlying C API I suspect exists. Anyone know if there is such a call, or does uptime(1) simply process records obtained from wtmp?
...
I need to create and store thumbnails (of images from the web) and store them on the server. Can I use the awt libraries (as listed below) on a linux server running in a datacenter (without a monitor)? I do not know if the server has a graphics card or needs one for these libraries to work...
import java.awt.GraphicsConfiguration;
impo...
Hello guys,
I just upgrade to Ubuntu Karmic 9.10 and there is now emphaty.
The problem is that em-TAB- doesn't autocomplete to emacs anymore ...
I there a way to the my Bourne-Shell to complete em-TAB- always to emacs ?
Thank you
...
I'm new to Perl. How do you install the Net::SFTP module? I'm running Ubuntu Linux. I believe there's a simple way to do it from the command line, like by calling $ cpan install or something.
...
I have a data in that always comes in block of four
in the following format (called FASTQ):
@SRR018006.2016 GA2:6:1:20:650 length=36
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNGN
+SRR018006.2016 GA2:6:1:20:650 length=36
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!+!
@SRR018006.19405469 GA2:6:100:1793:611 length=36
ACCCGCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
+SRR...
I am currently in the process of investigating a very peculiar problem on our lab servers. Whenever we run a java program on a machine with a 64-bit SUSE SLES11 installation that has been accessed with Citrix, it just hangs. I have the latest updates on the machine but it doesn't help. If any of these circumstances change, it works: 32-b...