linux

Server that records live streams?

Does anybody know of a server that can record live streams published by a FMS? ...

Flash videos play too quickly

I'm having trouble with Flash-based videos (FLVs, but not SWFs) playing between 5 and 6 times too quickly. My question is, then, some sort of amalgamation of the following (in descending order of importance to me): 1) Is there something I can do to fix (permanently or otherwise) this problem? 2) Does anyone have any idea why this is ha...

Shell script to backup databases of users

I have the shell script which first goes in home directory and backups all folders like OCT-13-2010/username/homebck.tar.gz and i also backups the database ,ef if i am in user1 folder then all my databases are like username_web and i use the following to backup mysqldump --skip-lock-tables -u sqluser -ppassword --skip-extended-inse...

How to update the man in bash

I have been trying Linux recently so my questions must be too much easy for you .Anyway I try to look the man of lseek but there is no man for this function . I'd like to know how to update the man of linux on bash. thank in advance ...

How to read a value in UNIX

Hi, I am new to UNIX and can’t figure out how to access a certain number from a file. Following is the result I get when I type in quota -v. I need to write a script to check and make sure if I am under quota, if not display a warning message. So, I am wanting to access “usage” number and “limit” number from that file and use a 'if' s...

Has anyone gotten MASM Assembly Language working in Wine for Linux?

Apparently WIne doesn't support 16bit DOS apps. Anyone know how to Get MASM intel-style assembly working in wine? ...

how to embed a linux bash terminal inside ruby on rails web page?

how to embed a bash prompt/terminal inside ruby on rails web page? how to execute a linux command from the web page, and get the output of the ommand? ...

NSTextView compatibilty class in Linux

Hi All, Is there any class in Linux system which is compatible to NSTextView in cocoa framework. ...

How to break the string in shell script

I have the databases name in following format username_databasename Now I want to put separate database backups in username directory like /backups/username/backup How can I get the usernamae from that string I also want that if string does not contain underscore (_) then the backup should go to /backups/others/backup ...

SVN hosted on windows to access from linux

Hi all, SVN is hosted on a windows machine & i need to access it from a linux shell script. Please can anyone help me on this. any help would be appreciable. Thanx ...

Still reports "undefined symbol: new_add" after use "objcopy --redefine-sym add=new_ad"

Hi, I need to load two dynamic libraries and there is one function name confliction. So I use the the command "objcopy --redefine-sym add=new_add libmy_test.so libmy_test_new.so" to modify the symbol name. But it still reports "Error: ./libmy_test_new.so: undefined symbol: new_add" The following are my test codes. void *lib_handle2 = ...

How to remove words from a file in UNIX?

first file of information page name/joe/salary1 50 10 2 name/don/miles2 20 4 3 name/sam/lb3 0 200 50 can some one please tell me how can I remove all the words in the above file, so my output will looks as follows 50 10 2 20 4 3 0 200 50 ...

xinetd udp server - need access to message sent in PHP

I am invoking a script via xinetd with the following service definition: service gpsservice { socket_type = dgram protocol = udp wait = yes user = root server = path/to/my_php_script.php log_on_sucess = HOST PID USERID disable = no } which successfully lau...

linux-shell scripting

how to login to root in linux through sh file with example? ...

Transpose a File in unix

I have file something like this 1111,K1 2222,L2 3333,LT50 4444,K2 1111,LT50 5555,IA 6666,NA 1111,NA 2222,LT10 Output that is need 1111,K1,LT50,NA 2222,L2,LT10 3333,LT50 4444,K2 5555,IA 6666,NA 1 st Column number may repeat anytime but output that i need is sort and uniq ...

Visualising C structs?

Hi all, I am using Ubuntu 10.04, and studying programming of kernel objects. I have come across some rather complicated structs which I have difficulties reading, so I thought I'd try to find some tool that can help me visualise them. Only thing I could find so far is VCG, which has a C Struct Visualization Example, which looks like...

Linux shell passing variable values to main programme

I have a programme, ./a that I run in a loop in shell. for((i=1 ; i<=30; i++)); do ./a arg1 5+i &//arg2 that I need to pass in which is the addition with the loop variables done How could I passed in the arg2 which is the addition with loop variables? Also, I has another programme which is ./b which I need to run once and takes in a...

ssl over pop and imap in dovecot in rhel 5.3

hello, i had configures senmail and dovecote in rhel 5.3, as it was working fine with pop3 and imap, but it will not work for pop3s and imaps .the cerificate is chkd with mutt it is fine , on client side i use outlook express/Thunderbird . the ports status shown as listening . moreover the certificate was not trusted by the clients. is t...

Is reading/writing to a pipe an expensive operation?

As part of my Uni course we've been shown and asked to use pipes to communicate between processes (using pipe() and fork()) for a few small exercises. No problems getting it to work or with the concept, but outside of these requirements I'm wondering how efficient it is to write and read with a pipe of this type? If I've some value that...

Localisation of application in Linux

Hi All, I have an application where UI language is in English, how can i make its UI set to other languages such as Italy. ...