linux

Command line video editing tools

I'm looking for (linux) command line tools that can help with video editing. I am mostly interested in: Cutting Transitions Effects Any pointers would be appreciated (I know ffmpeg can do basic cutting, but not much beyond that afaik). ...

How do I get the path of a process in Unix / Linux

In Windows environment there is an API to obtain the path which is running a process. Is there something similar in Unix / Linux? Or is there some other way to do that in these environments? ...

How do I configure my sys.path variable in linux?

I want to automatically add entries to python's sys.path variable when run by my user in linux. Is there something I can tweak in my home directory to get it done? ...

Dumb Linux SNMP question

I'm running Ubuntu and have snmpd running. I can do an snmpwalk: snmpwalk -c public -v 1 localhost .1 and I get back about 20 values (SNMPv2-MIB -- mostly system description/name/uptime stuff). Where are the memory, disk and network values? I've tried querying specific OIDs that I found Googling and they're not found. I assume I ...

Will I be able to successfully run this Ubuntu (linux) setup in Virtualbox?

Have 4 DVI output. Seems I hopefully will have driver support on this. Details are sketchy online about supporting 4 outputs, but seems possible. My question is from the Linux group and Virtualbox pros.... Will the seamless method of VirtualBox allow me to use all 3 of my monitors for multiscreen. I'd like to stick with Ubuntu and run ...

Possible to trap write to address (x86 - linux)

I want to be able to detect when a write to memory address occurs -- for example by setting a callback attached to an interrupt. Does anyone know how? I'd like to be able to do this at runtime (possibly gdb has this feature, but my particular application causes gdb to crash). ...

Java voice recognition

Is there Anyone that has experience with any open source, or relatively cheap voice recognition API for java? I'm pretty much looking for something that will turn spoken words into text. From the java speech recognition page on sun, it seems that it is something that is rather dead. My requirements is something that at the least runs on...

Definitive website or pdf that explains about linux?

like what is X windows,Cygwin,file system ...

problem while running shell script using java

Hi, I have a shell script named test.sh in /tmp/padm folder. In that shell script I have a single statement echo "good" I am trying to run the shell script using Java code. String cmd=("/tmp/padm/.test.sh"); Runtime rt = Runtime.getRuntime(); Process pr=rt.exec(cmd); But my problem is that I am not able to see "good" w...

flush output in Bourne Shell

I use echo in Upstart scripts to log things: script echo "main: some data" >> log end script post-start script echo "post-start: another data" >> log end script Now these two run in parallel, so in the logs I often see: main: post-start: some data another data This is not critical, so I won't employ proper synching, but th...

How can I programmatically create a new cron job?

I want to be able to programatically add a new cron job, what is the best way to do this? From my research, it seems I could dump the current crontab and then append a new one, piping that back into crontab: (crontab -l ; echo "0 * * * * wget -O - -q http://www.example.com/cron.php") | crontab - Is there a better way? ...

Directory structure for a file host

I've got a simple file host going that gives files a unique id and just stores them in a directory. I've been told that this will cause problems in the future, and I'm wondering what things I should look out for to make sure it works smoothly into the future and beyond. Also, is there a performance issue with forcing downloads by sendin...

enumerated datatypes and gcc

I have a function in which one of the function arguments is an integer. During function invocation I am passing an enumerated datatype to this function. After building using gcc, any access to the INTEGER variable inside the function causes a segmentation fault. Sample code: void somefun (unsigned int nState) { switch (nState) // <...

_splitpath in linux

Is there a linux equivalent of the win32 API _splitpath in linux? Details added: void _splitpath ( const char *path, // Path Input char *drive, // Drive : Output char *dir, // Directory : Output char *fname, // Filename : Output char *ext // Extension : Output ); It takes full path as...

Splitting long input into multiple text files

I have some code which will generate an infinite number of lines in output. So, I can't store those values in a single output file. Instead, I split the output file into more files. I am splitting the file according to the index numbers. Now my doubt is I don't know how many numbers my file will be having. So is it possible to split th...

Trouble running eclipse on Fedora 9, KDE 4.2 (Runs fine in Gnome)

I recently installed KDE4.2 on my Fedora 9 machine, which already had Gnome, and have been trying to run Eclipse 3.3 (Europa, which ships with a Fedora Distro), but without luck. Eclipse runs fine when I use gnome session, however I need to use it in KDE. I am attaching the screen-shot taken after the crash and some information about my...

Linux: Removing files that don't contain all the words specified

Inside a directory, how can I delete files that lack any of the words specified, so that only files that contain ALL the words are left? I tried to write a simple bash shell script using grep and rm commands, but I got lost. I am totally new to Linux, any help would be appreciated ...

Simulate delayed and dropped packets on Linux

I would like to simulate packet delay and loss for UDP and TCP on Linux to measure the performance of an application. Is there a simple way to do this? ...

Automated Script for testing Network Connectivity in Linux

I have got a requirement to test network connectivity to around 30 servers with different ports as part of some new firewall rules implementation. After the rules are in place i need to check whether the connectivity is succesfull or not, and i need to test the same rules from 3 servers. SO i am looking at some way i can automate this. C...

What is the meaning of man pages contaning e.g. git-branch(1)

Duplicate: http://stackoverflow.com/questions/587676/why-do-programs-in-unix-like-environments-have-numbers-after-their-name/ For instance, if I type: man ps ...and then scroll to the very end I see something like this: SEE ALSO kill(1), w(1), kvm(3), strftime(3), sysctl(8) How am I supposed to interpret this? I know that kil...