I'm using Automake to maintain the package, there are some shell scripts which don't need to compile, so I install them using _SCRIPT primary:
Makefile.am:
bin_SCRIPTS = script1.sh
But the tarball generated with make dist doesn't contain this script1.sh file. Is there something I missed in the Makefile.am?
...
Mac just crashed, and I have a Windows box that's actually more beefed up but I'm not about to go that route, especially because I'm using git and rails. So Ubuntu is the next step I guess.
I was using Textmate which was exceptional. Looks like I have to move on for a while.
What editor do you use with Ubuntu? Please don't say vi or...
I want to empty 3 files or generate them if they do not exist. Is the following command correct?
> myone.txt > mytwo.txt > mythree.txt
or is there any better way?
...
Questions 1 and 2 are specific to INFORMIX-SQL 4.10.DD6 (DOS) Perform screens.
Question 3 applies to any version of INFORMIX-SQL in any environment.
I would like to be able to display more than 80 columns on my perform screens to fit more stuff in one page. I tried DOS 6.22 command ‘MODE CON: CO132’ and on my perform screen I specified...
How can we find specific type of files i.e. doc pdf files present in nested directories.
command I tried:
$ ls -R | grep .doc
but if there is a file name like alok.doc.txt the command will display that too which is obviously not what I want. What command should I use instead?
...
I am planning to make an application like cPanel/WHM in perl since i never worked out my own server in perl, and i was thinking of a few points that i wanted some advices/help:
cpanel and whm work on ports 2082/3 and 2086/7 to server their panel i was wondering in what language is their server done or if there is a nice module for perl...
RPM is the package format in LSB but does LSB force any naming standard for RPMs similarly to this:
http://www.rpm.org/max-rpm/ch-rpm-file-format.html
Thank you in advance
...
How can I encrypt & decrypt binary files in C using OpenSSL?
I have a test program that encrypts and then decrypts the input it's given.
I executed my test program for text files, and the output is the same as the input, but when I execute my test program on a binary file the output is not the same as the input.
...
I have to call one method in seperate thread (i am using posix thread)which updates some value after every 5 second for which have written below code.
void *threadEntry(void *)
{
while(1)
{
updateValue();//to update some values
usleep(5000000);//pause for 5 second
}
}
pthread_t thread1;
pthread_create(&thread1,NULL,thread...
Hi,
I need some advice on how to track down a weird occurence on one of my servers. I'm not a linux expert so please bear with me if I haven't explained properly. We have a test server that is running apache, php5, mysql, postgresql on linux OS. Recently the mysql database have had all tables removed apart from a few. I've investigat...
A tool that I am trying to install says:
MySQL server data directory needs to reside on an LVM volume
How do I check if my data directory is on LVM?
...
I am developing a background service which needs to run on Windows, Linux, Mac OS and Solaris. The service is very simple and is to be used to track students logging in and out of university computers. I have almost finished the Windows implementation of the service.
I have invested in a number of books around native application / serv...
So I just trying to build a library using the NDK. I believe that the Android.mk and Application.mk files are correct, but whether they are or not is irrelevant.
when executing make APP=hello within the NDK directory
Android NDK: Building for application 'hello'
make: ./build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-gcc: Co...
I'm playing with this code on Linux 2.6.16.46:
io.aio_fildes = open(name, O_CREAT | O_TRUNC | O_WRONLY | O_SYNC, 00300);
io.aio_buf = buffer;
io.aio_nbytes = size;
io.aio_sigevent = sigev;
io.aio_lio_opcode = LIO_WRITE;
aio_write( &io );
This should use the memory pointed by buffer for the IO operation. Still, I see the number of di...
We have a convention whereby developers get into a server with their own username, and then sudo su - django where django is the user our apps run under.
I need to find out which developer is running a script as django. With ps faux :
root 26438 0.0 0.0 90152 3320 ? Ss 10:38 0:00 \_ sshd: fred [priv]
fred 26444 ...
Hi need assistants with a make: * [libavcodec/h264.o] Error 1 err.
libavcodec/x86/h264_i386.h: In function 'decode_significance_x86':
libavcodec/x86/h264_i386.h:41: warning: cast from pointer to integer of different size
libavcodec/x86/h264_i386.h:42: warning: cast from pointer to integer of different size
libavcodec/x86/h264_i386.h: In...
Moved
Why does Exim puts emails on hold if there are frozen messages in the queue?
I've a CentOS with CPanel server working as a SMTP server, which currently uses 20 different hostnames and IP addresses to deliver email for an email newsletter service.
However, it's extremely slow in sending emails. It's sending like 10 emails pe...
I have been doing some searching around trying to find some software, preferably for ubuntu, that can provide a secure store for the various logins and passwords that our team has for our servers and services. I have found a lot of personal password managers, but I am looking more for something that members of our team can log into, usi...
Hello everyone!
So my question is how can I pass a file argument to my bash script using a Terminal command in Linux?
At the moment I'm trying to make a program in bash that can take a file argument from the Terminal and use it as a variable in my program. For example I run
myprogram --file=/path/to/file in Terminal.
My Program
#!/bin...
Sorry if this has been asked elsewhere. I am a C,Win32 developer and want to learn similar stuff in the linux world. What are the best and easy opensource projects for learning similar stuff on Linux.
Like in C,Win32 world i want to start off with User space and onto advance stuff like internals,device drivers etc. I am interested in N...