We've got an "appliance", based on ubuntu that has some of our own apps running on it (which are distributed as .deb).
Logging is sent through syslog. Syslog.conf is customized so that our apps' messages get sent to a dedicated file.
Are there any gotchas/best practices I should know about in terms of programmatically modifying syslog....
Hi
I want to know if SO_REUSEPORT option is enabled in LINUX 2.6 or not ??
If I try to use it and compile my code I get following error
01.c:72: error: `SO_REUSEPORT' undeclared (first use in this function)
01.c:72: error: (Each undeclared identifier is reported only once
01.c:72: error: for each function it appears in.)
Using the a...
I'm using a makefile intending to generate dependencies automatically. But with my file, I find that although changes to the header files cause the code to be recompiled, they don't cause the dependencies to be regenerated, as I think they ought. Can anyone see what I have missed out?
.SUFFIXES : .hpp .cpp .d .o
SOURCES=main.cpp sub1.cp...
I have two machines I work on:
Windows Client (Development Machine)
Linux Web Server (Ubuntu)
On the Linux server I have installed Apache, Samba and SVN.
I've created a samba share that maps to the htdocs/ directory so that I can access the web files from Windows.
The following illustrates my workflow:
From command line on Linux ...
how can i write a string (eg. "Hello") to stdout from the stack? without, data-segments, that is.
void main() {
__asm__(
"movl $0x4, %eax \n\t"
"movl $0x1, %ebx \n\t"
// put "Hello" on the stack and load its address into %ecx
"movl $0x5, %edx \n\t"
...
Hello, this is my main question:
How do you create, compile and use static and dynamic libraries in linux-like systems? What is the difference between them?
Are there any good free tutorials explaining this stuff for a total idiota like me. I've only done c# programming before. I know a little C, C++ and Objective-C. I'm developing fo...
How can I start serval applications in one script and pipe the output to current terminal?
For development I need a script which starts three webservers (on three ports, of course) and pipe the output of these to current terminal.
The difficult is to stop these webservers at the end of shell. I have to send a signal or better send [Ctr...
Hi!
I'm having problems with the hosts file and PHP. When running the PHP code as root, the entries from /etc/hosts are read. But not when running the code as my user, or from apache.
root@server:/# cat /etc/hosts
127.0.0.1 mydomain.com
root@server:/# php -r "echo gethostbyname('mydomain.com');"
127.0.0.1
markus@server:/$ php -...
I think many developers like to investigate sources with help of "git gui blame". As explained in 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 it needs to have special historical Linux repository for this purpose.
I have looked a lot of the prepared historical repositories but I didn't found one containing changes from zero version so I giv...
system("ssh test.host.com");
its asking for permentaly add key or not ?
I want automatically it should say yes !
...
Where I can find the source code for du and other Linux utilities?
...
This question is asked because the author is building a compiler (src -> asm) and is in the process of writing code for generating assembly code.
One of the first things that happens when a program executes on a Linux (any OS really) based operating system is that the stack gets set up and the SP register is assigned with the memory add...
I'm running Fedora 13 if that matters.
I looked up man pages on unix(7), setsockopt, and send/recv.
Reading the man pages seems to more or less tell me that not all options are guaranteed to do ANYTHING... and apparently only a few that do/don't work are actually documented.
In particular... I wanted to see if timeouts were possible. ...
I'm having trouble including standard header files like iostream.h and fstream.h. On my system, under usr/include/c++/4.3, none of the files have the ".h" extension (for example, it's just "iostream" not "iostream.h"). That would be fine and dandy, but I'm trying to use another library, DCMTK, which does things like #include<iostream.h>....
We're using vlad the deployer for deploying rails apps to production and test servers. All our servers are Ubuntu servers.
We have a problem related with linux permissions.
Vlad uses ssh to put files on any server, be it production or test. My company has several people, and each one has a different account on each server.
On the othe...
When I follow the steps installing FMS 3.0.5 on linux, get this error:
[root@server FMS_3_0_5_r601]# ./installFMS
ERROR: Your architecture, \'x86_64\', is not supported by the
Adobe Flash Media Server installer.
[root@server FMS_3_0_5_r601]#
Anyone managed to install it on x86_64 linux so far?
...
What exactly is shell scripting?
And what is Bash, Korn, and Expect? I use a few commands in a Linux terminal, is that shell scripting too? Again I am confused what exactly is shell scripting?
...
I'm looking for a simple way to reorder the ELF file sections. I've got a sequence of custom sections that I would like all to be aligned in a certain order.
The only way I've found how to do it is to use a Linker script. However the documentation indicates that specifying a custom linker script overrides the default. The default l...
I'm looking for a pattern to organize header files for multiple platforms in C++.
I have a wrapper .h file that should compile under both Linux and Win32.
Is this the best I can do?
// defs.h
#if defined(WIN32)
#include <win32/defs.h>
#elif defined(LINUX)
#include <linux/defs.h>
#else
#error "Unable to determine OS or current OS is n...
Hi Everyone,
really new to linux scripting so i figured i would ask rather than waste time pulling my hair out.
i have a simple script that backs up the contents of a folder on my linux box and moves it to S3 storage, i would like this script to create a zip file and password protect it without any intervention from me.
i got it down t...