General :: Running A Program In Multiple Subdirectories Simultaneously

Jul 8, 2011

Performing commands in multiple subdirectories simultaneously. I'd like to run a program I've copied into every subdirectory which takes *.in files in the current directory as input files. I can find the program, but how do I tell it to run when I've found it?

View 1 Replies


ADVERTISEMENT

General :: Executing A Script In Multiple Subdirectories Simultaneously?

Sep 14, 2010

i'd like to execute in several subdirectories that all have the same name, but I don't want to have to change into each subdirectory (there are hundreds) to execute the script. All the subdirectories have the same name ("final_alignments"), but are located in parent directories with different names. All these parent directories are in the same "super parent" directory. I've tried to do this using "for/do" and "find" but no luck so far.

View 8 Replies View Related

General :: Rename Multiple Files In Multiple Directories/subdirectories Recursively?

Aug 23, 2010

I am to rename all the files within a directory (which contains multiple subdirectories) recursively without invalid characters.

I tried the coding posted above.

find . -type f -printf '%p
' | while read file; do
oldfile=$(basename "$file")
newfile=$(echo "$oldfile" | sed 's/[^A-Za-z0-9_.]/_/g')
if [ ! "$newfile" == "$oldfile" ]; then
echo mv "$file" "${file%$oldfile}$newfile"
code....

but I get an error on both of them stating "find: bad option -printf find: [-H | -L] path-list predicate-list"

View 9 Replies View Related

General :: Multiple Nic Cards Rhel5 Cannot Be Access Simultaneously?

Dec 18, 2010

I installed 2 nic cards in my pentium 4 computer running rhel5 to be used as a proxy server and connect 2 computers in each network card for testing . The problem is I cannot ping or use the 2 cards simultaneously . One must be deactivated for the other to be ping . The Network configuration panel indicate both card status as active but i can only ping the first to be activated . I have already set onboot=yes to both cards but still the same result after restarting . The nic cards are onboard - Realtek RTL8139 and pci -3com 3c905b.

View 4 Replies View Related

General :: Windows - Resize An Image To Multiple Resolutions Simultaneously?

Aug 22, 2011

I am looking for software (Windows or Linux) that can do the following: Resize one image to several provided sizes. Detects the type of the pic­ture (wide, nor­mal) and does the resize based on that. What I mean by that is that it should not break the image by shrinking it more in one direction then in the other so it looks weird. The purpose of this is my Blog. If I want to give my readers a wallpaper, I want to give them several options for the sizes so they can have it in their own preferred screen resolution. The image must however keep its original aspect ratio.

View 2 Replies View Related

General :: Find Files In Subdirectories And Copy Them To Another Directory With The Same Subdirectories?

Nov 18, 2010

This question is very similar to this one except that I want to maintain the file's original subdirectories.

For example if I had

/temp/a/a.txt
/temp/a/a.jpg
/temp/a/b.txt
/temp/b/c.txt
/temp/d/d.txt
/temp/d/d.jpg
/temp/d/e.txt
/temp/f.txt

[Code]...

View 2 Replies View Related

General :: Simultaneously Execute 8 Instances Of A Program Until All Input Files Are Processed?

Sep 27, 2010

I have a machine with 8 cores. I have a directory of input files that I need to process using a non-parallelized program. I would like to write a script that works its way through a list of commands executing 8 commans (i.e., instances of this program; each with specific flags having to do with the current input file) until the list of commands has been exhausted. Is there an easy way to do this?

Code:

hamstrsearch_local-hmmer3.pl -protein -refspec=lotgi_2713 -hmmset=lophotrochozoa_hmmer3 -sequence_file=Aplysia_californica.fas -taxon=ACAL

View 3 Replies View Related

Ubuntu Servers :: Running Multiple Instances Of A Program?

Mar 11, 2010

how to run multiple instances of a command line app from the terminal?

View 2 Replies View Related

Ubuntu Multimedia :: Multiple USB Mics To Be Used Simultaneously?

Nov 11, 2010

I recently purchased a set of three professional mics and converters for them (they are XLR mics, so i bought three icicles to convert into the USB port)The computer sees all three microphones, but I can figure out how to be able to record on all three at the same time.Is this at all possible, or did I just waste a ton of money on converters?EDIT: I would like to add that these mics are identical, and I'm wondering if nothing else if it's possible to merge the two mount points so that it appears as one micEDIT AGAIN: I have also just installed Pulse Audio Volume Control, and it picks up both mics. How can i tell audacity to use this?

View 1 Replies View Related

Programming :: Make A C App Do Multiple Tasks Simultaneously?

Oct 22, 2010

I have been working on a project for a while now that involves a rather complex daemon that has to be simultaneously running different tasks. For example one of these tasks is to receive IP packets from the Netfilter queue and place those packets into one of several internal queues. While other tasks involve taking IP packets from those internal queues and processing/manipulating them and finally returning them back to the Linux network stack.

As I as I have no previous C experience before starting this project I just spawned a new thread each time I needed the daemon to be doing something else while those other tasks continued to run. Is there any other way of doing this or is this pretty much the only way of doing this? Because C is procedural I could not figure out any other way of doing accomplishing what I wanted. Should I have done it some other way or is this the correct and only way I could have gotten my C app to be running multiple tasks at the same time?

View 6 Replies View Related

General :: Why Does Running A Program In Bash Work, When Running It In The Menu Doesn't?

Jul 26, 2010

I presume there is something in the JWM window manager - or Puppy Linux Lupu 5.01 itself that is conflicting with the normal loading of GMPLAYER....

I would like to know how to troubleshoot, and fix this problem if possible (even a workaround would be great).

View 1 Replies View Related

Ubuntu :: Simultaneously Run Multiple Commands From Bash Script?

Sep 21, 2010

I'm trying to write a bash script that will simultaneously ping a host and execute a traceroute at the same time. I would like the results to output to a text file.

View 6 Replies View Related

Ubuntu :: Having OpenOffice Replace Multiple Words Simultaneously

Apr 27, 2011

I have a list of approximately 50 words that I'd like to search documents for and delete those words. I was wondering if there is some type of automated process for removing multiple words rather than me manually putting each word into 'find and replace'

On that note I guess I could write the Macro in python if there isn't anything out there that does this. However I read that open office only works with python 2.3.5 or something of that nature, and I have already installed 3.1. Is that still going to be an issue?

View 2 Replies View Related

Server :: Automating Multiple Minicom Sessions Simultaneously

Oct 5, 2010

Here's the setup: One x86 server (Red Hat 4) with two serial connections to an embedded linux device. One serial connection is to a power control so the device can the restarted, and the other is used for a console to this device. Both serial connections use minicom. People on my team VNC to the x86 server, where they find the two minicom sessions waiting for them as they are left open. I would like to automate connecting to the server and communicating over the serial lines.

Supposing I use ssh to the x86 server, could minicom be used over the serial lines without terminating the minicom processes seen through VNC? If not, is there a way to re-open those windows from within the ssh session, so a user who VNCs to the server won't have to reopen them? Could a single ssh connection control two minicom terminals simultaneously, or would there need to be two ssh connections? It is assumed a user and the automated process will *not* try to access the device at the same time; the automation would trigger during off hours.

View 2 Replies View Related

Software :: Copy Files From One Source To Multiple Destination Simultaneously?

Aug 5, 2010

i want to copy one or more files or directory from one drive to multiple drive simultaneously. It like a cloning a disk. But i dont like clone entire disk. i want to copy/clone only certine files or folder. if any one can know how to copy one source to multiple destination simultaneously.

View 3 Replies View Related

Ubuntu :: Running 2 Browsers Simultaneously?

Apr 20, 2011

I heard that I should never run 2 web browsers at the same time.Is it true?Or does it apply to Ubuntu?

View 5 Replies View Related

Software :: Running Two Commands Simultaneously From CLI?

Feb 10, 2009

what i want to do is run two commands (nautilus and gedit) from the command line/shell script at the same time. i can obviously do && between them, but this requires the first app to close before moving on to the second one. i want to run both apps at the same time so i can run gedit with some project files open on it, and nautilus to browse those files/other files.

View 10 Replies View Related

Software :: Running Xvidcap - For Screen Capture - Audacity - For Audio - Simultaneously

Jan 23, 2011

Im trying to create some screencast videos on Ubuntu. As its a well known fact we dont have a very good screencasting too like Camtasia(only windows) on linux.

After googling extensively I zeroed on Xvidcap for screen capturing and Audacity for audio capture.

According to tutorial [url] first we need to run Xvidcap (do the screen capturing recording first) and then again use Audacity for audio recording .. then mix both video and audio.

I guess this is a pain staking process (running video and audio recording seperately), I thought of running Xvidcap and Audacity simultaneously, if i do this xvicap works perfectly (video capturing happens) but audio capture through audacity does not work.

Note: I even try to run the above tools from seperate terminals/consoles (assuming they are seperate processes)

I even disabled 'audio' in xvidcap and tried to run both at the same time but audacity refuses to work.

I think both the tools are trying to use the same system resources ... and audacity is unable to get hold of the required resources.

Can we run both independently at the same time ?

View 2 Replies View Related

OpenSUSE Multimedia :: Output One Playback Stream To Multiple Devices Simultaneously With The Current PulseAudio / Phonon Setup?

Jun 9, 2011

Is it possible to output one playback stream to multiple devices simultaneously with the current PulseAudio / Phonon setup? The PulseAudio mixer only has radio buttons to choose one device per playback stream. I believe the hardware is capable of this, since I remember doing that before we had PulseAudio. How can I duplicate an audio stream?

Here's one application scenario: I am travelling with my family, all crammed in small hotel room. My wife and me want to watch a movie on my laptop without waking up our kids. I just happen to have one analogue headphone available and one wireless USB headset with me. (Of course, the low tech solution is to bring an 3,5mm Y-cable to attach two analogue headsets, but I would really love to use the USB headset together with the analogue one.)

Another similar thing that bugs me is that my laptop's built-in speakers now always seem dead when an analogue headphone is plugged in. This is mostly what one wants, and before PulseAudio, one had to manually switch them off which was generally annoying. However, the downside is for example with notifications.

For example, before PulseAudio, I could configure Skype to always ring over the laptop's built-in speakers, regardless of whether the analogue headphones were plugged in. This is no longer possible, since PulseAudio does not distinguish between built-in speakers and built-in analogue port any more, while old Alsa did. So in my office, where some analogue headphones are plugged into the docking station, I never hear Skype ringing if I don't wear the headphones.

View 9 Replies View Related

General :: Run Multiple Instances Of Same Program?

Feb 23, 2011

In windows xp, i created another user account. Now i can run a second instance of any program by right clicking on it and selecting Run as. Is such a thing possible in linux (centos or ubuntu) in graphical environment ?

View 4 Replies View Related

Ubuntu Security :: Make Ubuntu Simultaneously Unlock Multiple Encrypted Partitions At Boot

Jul 15, 2010

I installed 4 encrypted partitions (/, /var, /tmp, and swap) that are mounted at boot using the Alternate Installation Disc, and they all have the same password, but I have to type that password in 4 times when booting up. How do I make it so I only need to type in my password once?

View 1 Replies View Related

General :: Way To Have Multiple X Severs Running In Different Shells?

May 24, 2010

Is there any way to have x server on multiple shells at a time?(eg. Sally is logged in on shell 6 with her own desktop cube while Rob is logged in on shell 7 with his own desktop cube, etc)

View 2 Replies View Related

General :: Running GUI Program On Machine Using Ssh?

May 2, 2011

I am trying to run open a GUI program on a remote Ubuntu machine using ssh.

I want to open, lets say firefox or skype, on a machine I have connected to via ssh.
But when writing logging in with user2 and writing sudo -u user1 firefox I get an error message saying no display specified.

The machine is turned on and logged in with user1, it just appears that i cant get ubuntu to recognize that there is a GUI available.

View 1 Replies View Related

General :: Tell If A C Program Is Running Without A Terminal?

May 9, 2010

I have a C program that can run disconnected ( like most ), is there a programmatical way to tel if the program is running without a terminal? Example:nohup my-program &What I want is to modify the program so it can be used as a HUB interface. It does Peer to Peer communication and I want to make it a server function with a command line option.Currently if I disconnect the program, it will loop on the read for stdin, I need to be able to detect that and go into 'HUB' mode.

View 4 Replies View Related

General :: How To Tell Which Version Of A Program Is Running

Jan 25, 2011

For example, if different versions exist in /usr/bin/ and /usr/local/bin, how can I tell which one is actually being executed?'which xxxxx' simply lists the first instance found in $PATH, which is usually /usr/local/bin/, but this may not necessarily be the actual instance that is running.

View 3 Replies View Related

General :: Running A Program On Startup?

Aug 9, 2011

I have a program I have made, and I would like it to run as soon as the system is finished booting. I am using Ubuntu Mini Remix to recreate a LiveCD/USB stick. After booting, it drops me to a command line where I can enter "sudo qct" and it will run my program (which is called qct, and it has to be run as root).I want this to be automated.Instead of going to a command line, I want it to run the program itself at that point. How would I go about doing this? I have read many tutorials about scripting but I cannot seem to get it to work.

View 11 Replies View Related

General :: Running Multiple Commands Remotely Via SSH In A Script?

Dec 18, 2009

In a script I am writing I am trying to add logic so that the script can figure out if a remote server uses rpm or dpkg and then run the appropriate command to print a list of installed packages. This works locally, but I need to get it to work through SSH and I have no idea how to do that. The relevant portion of the script is below. It would also be nice to find a way to not need the full path to the executables but I'm not real concerned about that.So anyone know how to make this code work via SSH?

Code:
if [ -x /usr/bin/dpkg ]; then
dpkg --get-selections

[code]...

View 4 Replies View Related

General :: Command Running Multiple Jobs On Servers

Jul 26, 2010

How to submit multiple jobs onto a Linux server. The only way I know to submit and run a job on a server is using qsub, and verifying the status of the job using qstat. I usually run my scripts using qsub -cwd so that I can run it on my own directory (instead of having the results sent to a scratch folder).

1. However, assuming qsub/msub are not available, is there another way to do it? What commands can I use instead?
2. I know that some jobs can run in the background, is that an alternative? How do I do it? And would I still be able to check the status of the job or delete it?

View 2 Replies View Related

General :: How To Program The Command Line To Run A Piece Of Code Multiple Time

Dec 4, 2010

So, I usually write/find a test case generator for any code that I write. This type of code generally leads to some file output. To be thorough, I try and generate many different files to test my code on.

Say the command is like this:

Is there a way to automate this for many different values of the parameters and generate many different files?

I tried:

I wasn't able to use the $i in the filename, and without it the command gave me no errors, but did nothing else either. I know the Unix command line is very powerful, and I have a feeling that this should be possible, but I just don't know how to do it.

View 3 Replies View Related

Debian :: Running Same Process Multiple Times(from Another Account) / An Instance Of Newsbeuter Is Already Running Error?

Aug 6, 2010

Sometimes I connect to my Debian box from another computer (using SSH on Cygwin or Linux), and once ina while I want to run some console apps. And sometimes some of these apps might complain about "another intance, Error: an instance of newsbeuter is already running (PID: 2496)". Is there a work around for this issue at all(without killing the original instance") ? The reason I do not want to kill the app because there might be 2 users connected to the same machine that might be using the same app.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved