Programming :: Managing Instances Of A Program?

Mar 23, 2011

I finished a program that connects to a remote server and does some stuff there for a while. What I want to do is to run several instances of the program to have different connections at the same time, and to be able to manage those processes automatically (for example, if the connection stops, detect it and reconect).

I guess I will have to use the pid of the processes and handle them somehow but I dont really know what to do because I haven't used c++ in a while and I never went that deep. All this will be running in suse, debian and/or yellowdog distros Maybe there's a tutorial or you guys know some tool that i can use,

View 3 Replies


Ubuntu :: What Program To Use For Managing Music

Jan 6, 2010

I'm looking for a program to manage my music, and if I keep using Banshee, I'm likely to break something in my house. All I want to do is edit file tags (like genre, artist, and album title) - but it won't let me do that. I can't edit the files directly - first I have to get them into the "library", and in order to do that, I can't drag and drop them - it forces me to actually open up the files (which plays them, and sticks them smack into the middle of the "library", and I then have to go searching/scrolling through the whole thing in order to locate them and then finally edit them). And after all this, spending like 4 hours doing all this, I find out that IT DIDN'T ACTUALLY EDIT THE FILES. It edited them in its own mind - for the duration that they were in the "library" - but it didn't make a change to the actual files.

View 7 Replies View Related

Ubuntu :: Cannot Run Multiple Instances Of A Program

Jun 29, 2011

If I have a program running in one workspace and then switch to another workspace and open the same program it switches back to the first workspace.

View 5 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 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 :: Program / Operating System To Serves Purpose Of Managing OSs In Nature Of Simplicity?

Aug 19, 2010

Does anybody know of a program and/or an Operating System in which serves the purpose of managing OSs in a nature of simplicity? Sure would save so much time i spend reinstalling linux every time its brakes.

View 3 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: -protein -refspec=lotgi_2713 -hmmset=lophotrochozoa_hmmer3 -sequence_file=Aplysia_californica.fas -taxon=ACAL

View 3 Replies View Related

Programming :: PHP/MySQL FOSS For Managing User Sessions On The Web?

Apr 24, 2009

My co-worker and I are working on this robotics project where robots are controlled over the web. I don't want to go into all the details, but basically the users visit a page where they have access to a PHP-based interface that allows them to send commands to robots in our tech lab (via an intermediate server). Our web server is running Apache.

Anyway, now we need to implement session control, with user-names and passwords so that only certain people can have access to the interface at a certain time, with access to only certain robots, et cetera. We were hoping there was some kind of pre-fab FOSS solution for handling both the session control and maintaining the MySQL user/password database.

My co-worker knows a little PHP, and I know a little MySQL, but we are both noobs enough that we would prefer to do as little of this from scratch as is possible. We don't have a lot of time, and I know it is easy for inexperienced MySQL programmers to introduce security vulnerabilities.

View 1 Replies View Related

Programming :: Run Multiple Instances Of A Jar Executable?

May 5, 2009

It is possible to run multiple instances of a jar executable. Is it possible that only a single instance of the jar runs? Wrappers like JSmooth or Launch4J can be made to run as a single instance. But since there are no such wrappers for linux, I need a way to restrict the jar to a single instance. How to embed the jar file into an executable such it runs a single instance?

View 14 Replies View Related

Programming :: $1 Variable In Multiple Instances Of Same Script?

May 27, 2010

I am running a script that can run as many as 10 simultaneous times. During my testing, i noticed that if the script starts while another is in process, it inherits the $1 variable, which is always different.For example, the script starts with " entry1", anther one starts almsot at the same time " entry2". As the script is running, the second instance inherits $1 from the first script. So instead of $1 entry2, it shows up as entry1. how I can store $1 so that its unique to that instance of the script only?

View 2 Replies View Related

Programming :: Find And Replace Multiple Instances?

Aug 13, 2010

I have a file with the following in it:

:0 local /usr/X11R6/bin/X -nobanner
:1 local /usr/X11R6/bin/X

I need to add "-nolisten tcp" to both of these lines and cannot figure out how to do it. I can get it to do the first one, but not the 2nd and so on. How do I search the file and loop though it to change them all?

View 14 Replies View Related

Programming :: Can Probe Monitor Multiple Instances Of Tomcat

Jan 31, 2011

I'm using Probe to monitor Tomcat5. The problem is that I've multiple instances of Tomcat.Can be used Probe to monitor multiples instances of Tomcat without having to deploy it to each instance?

View 2 Replies View Related

General :: Sendmail-2 - Wrong Number Of Instances Of Process Sendmail - Expected Instances Equal

Jun 15, 2011

I have bees assigned a problem which states that :

sendmail-2: Wrong number of instances of process sendmail:, expected instances equal 1 but found 0

THats it...what exactly this means and how should i proceed for solving this problem...

View 1 Replies View Related

Programming :: Script To Remove Lines In A File With More Than "x" Instances Of Any Character ?

Oct 4, 2010

I'm looking for a script (bash, python, perl etc) or even a one liner (sed, awk etc) that can take a set of files and remove any line that has more than "x" instances of any character (case sensitive). I have been doing a lot of searching and can only come up with examples of how to remove blank lines, lines that start with a certain character or lines that contain a certain string. This will be used on a system running a Kubuntu derivative.

As a very poor and basic example, I would like to take files that contain lines like:


And end up with the files only containing the lines:


If I tell the script that 2 is the maximun number of times any character can appear in any line.

I know this must be possible, but for the life of me I cannot find even an example that will lead me in the right direction or better yet a piece of code I can use.

View 15 Replies View Related

Programming :: Program A SH - Bash Program With Zenity To Play Radio Based On A Site?

Feb 15, 2011

I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play.

My code to get url's radio country.htm is:


View 2 Replies View Related

Programming :: Open Or Run A File/program Through A C++ Program

Jan 15, 2010

Ok so Basically i have 2 questions

1. i know how to create a file with c++ using but is there a way to save it to a specific location on your computer with windows and linux


2. i need to know how to run/execute/open a file in a c++ program im using and its not working


View 4 Replies View Related

Programming :: Build A Simple Program For C Programming Class?

Feb 12, 2011

im trying to build a simple program for my C programming class, this is the source code

#include <stdio.h>
int main()
int length, width, length, height, area, perimeter;
perimeter = width + length + height;
area = width * length + heigth;


i dont see any error (you might)but every time i run it it runs but after it asks me to input for the width i do it but it doesn't take me to the length, it just stays blank until i input another value in the same place for the width, it asks me for 4 inputs in total i don;t know why, and after i run it different times it gives me different values for the perimeter and are. how can I fix this?

View 5 Replies View Related

Fedora :: Managing Display Driver In 12?

Apr 14, 2010

How do I determine what graphics card I am using in Linux? In windows it's no problem, but I don't know how to determine such things as a) what hardware am I using? and b) what driver am I using? After determining which hardware my display is using, what is the best way to manage the drivers to ensure i'm using the most up to date version?

View 7 Replies View Related

Ubuntu :: Way To Have Grub2 Managing Two Installations On Same PC?

Jan 27, 2010

Is there a way to have grub2 managing two installations from ubuntu on the same pc ?I have two partitions, one with karmic, another with lucid. Grub is detecting automatically the two or more kernels, but assigning them to the same root partition.Is there a way to make update-grub, detecting lucid kernel, and assigning it automatically to lucid partition, and the same for karmic ?It seems, that os-prober, detects the lucid installation from karmic, and print the correct corresponding partition on the screen, but in the config file, the root partition is the wrong one, and os-prober doesn't detect karmic...

View 8 Replies View Related

Ubuntu :: Managing Files Like PS3 With Tag Folders?

Apr 12, 2011

What I've noticed recently in file managing is that sometimes one file might fit multiple categories yet you must fit it into just one (without linking the file). It is most essential when managing an ebook library or a project library (for example have I placed a particular script under PHP_Scripts folder or CMS folder... I tend to forget).

What I'm looking for is a Tag categorization type of management for files. The PS3 file manager is a good example for this since I could make it generate folders by the artist's name, the year etc. for music files, then I would just navigate to the particular folder to find what I was looking for. Now my question is if such thing already exists as a nautilus extension or as a stand alone application... If not would you guys think it would be worth creating? If you do should it be approached as:

* A Nautilus extension? * or as a python script? For example one that creates a folder with folders in it, made up from the [nautilus] tags of the files you want to browse, then creates links of all the files [you wanted to browse] automatically to the appropriate tag folder[s] generated.

View 3 Replies View Related

General :: Managing Iphone On Archlinux + Kde

Jul 19, 2011

I'm having a little issue managing my iphone on archlinux+kde. This is the only way I got it to sync.

sudo killall usbmuxd
sudo usbmuxd -f -v

And then the only program that recognices the device is Clementine and it works quite fine. What I'd like to do is to make that automaticaly, so I wouldn't have to do it everytime i turn on my computer.

View 1 Replies View Related

Server :: Best Script For Managing Bind?

Feb 22, 2011

Currently i using webmin,but it missing some important things like $variable -where $variable would be automatically replaced with added domain,and it's kind a strange since plugin for managing other dns server on webmin does that. Also i was not able to generate 100% correct all records,only partial,which make it useless since i was need to fully replace it anyway.So can someone recommend any script/tools for it?I would be even happy with combination of batch tools(which might be even best solution since then i would not need to bother with installing script). How my dns records look:

PHP Code:
$ttl 38400
@    IN    SOA root.localhost. (


View 1 Replies View Related

Software :: Managing Duplicated Files

Sep 11, 2010

I reckon I waste several tens of gigabytes of storage by holding unwanted copies of personal data and media files over very many partitions. Sometimes they will have identical names, dates and sizes. Other times they may be slightly different in terms of metadata but nonetheless essentially identical in respect of content. It is becoming a nightmare. Any suggestions for how best to get rid of these unwanted files?

View 13 Replies View Related

CentOS 5 :: GUI For Managing Users And Groups?

Mar 31, 2010

I have centos 5.4 installed (2.6.18-128.2.1.el5 #1 SMP Tue Jul 14 06:36:37 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux), and I am using WHM/Cpanel to manage my server. I am looking for a GUI utility, so I can graphically manage users/groups.

View 1 Replies View Related

Debian Configuration :: Roaming Wifi Without Managing App

Aug 23, 2010

I have finally weaned my laptop from network manager by setting up my /etc/network/interfaces file. # The loopback network interface auto lo iface lo inet loopback

# The primary network interface allow-hotplug eth0iface eth0 inet dhcp
# Wireless Setup auto wlan0 iface wlan0 inet dhcp wireless-essid linksysn

wireless automatically connects to my home wireless network (linksysn). But suppose I wanted to take this laptop to the coffee house where they have free wifi. I am assuming that my wireless will not automatically connect to any other wifi hotspot except linksysn. So how do i set it up to roam like NM did?

View 5 Replies View Related

Fedora :: Managing File Access (without Using ACLs)

Oct 10, 2009

I've been banging my head over this Linux assignment for a few hours now and just can't figure out a proper solution. Basically we're acting as a system admin for a fictional company, and we have to assign permissions to various directories based on groups. The Executive Group (exec) -exec-normal, exec-secure directories The Project Management Group (pm) The Design Group (design) -preliminary design (des-prelim) and Revised design (des-rev) directories. The End Users group (users) the following users must be made: exec1, exec2, pm1, pm2, des1, des2 ,user1, user2 all files from each group are stored in /home/docs/ The directory tree is as such /home/docs/{exec-normal,exec-secure,des-prelim,des-rev,share}


So what I thought of and tried to do was this: since people of different groups need rwx on same directories I decided to group those people up into their own groups and assign that group to the given directory. So for example design(des1,des2) and pm(pm1,pm2) both need to modify files in /home/docs/des-rev therefore I grouped these 4 users together in a group called GroupRev and made GroupRev the owner of the /home/docs/des-rev/ directory with the permissions drwxrws--- and this works for those users and all but 'users(user1,user2)' need to be able to view docsuments in /home/docs/des-rev as well and if I set the others permission then the WORLD has those permissions. and this problem is consistent in my planning. With this idea I grouped exec1, exec2 into GroupExec and des1, des2, user1, user2 into GroupPrelim and assigned the groups to the proper directories.

so currently my permissions are pretty much the same for each directory drwxrws--- and with this each user can modify files in directories they're supposed to.. but if users from another group need to view documents in another groups directory, they can't. I can't use ACL's and must do it this way. I guess all I'm really asking for here is a push in the right direction.

View 12 Replies View Related

Ubuntu :: Managing / Adding Users In Lucid?

May 7, 2010

Basically if you go through System > Administration > Users and Groups then I do not get prompted for a password, I cannot see the root account, nor can I add/modify other accounts.

I understand that Ubuntu has now moved away from allowing the root account desktop access which is ok by me even though it's very much in line with something Apple would do. (odd that this comes right after Ubuntu went all apple style with the default theme too.) However, I would like to add other accounts to the machine, for my wife and anyone else i choose for example. Anyways, pushing the "add" button does nothing. Thankfully the "help" button did work which allowed me to do the following workaround.

I managed to get around this by working through the command prompt, open terminal:

user> sudo -i
type in your password
root> users-admin

This allows the addition of accounts, also seems it allows the root account to be enabled though I haven't bothered to test it. The one thing I'll say is that it runs VERY SLOW!

View 3 Replies View Related

Ubuntu :: Stop Nautilus From Managing The Desktop?

Nov 5, 2010

How does one go about stopping Nautilus from managing the desktop? I want to use Conky, but every time I click on the desktop, it disappears. (Don't refer me to the supposed fixes by changing "own_window_type" because that's not what I want, it doesn't work) I don't use my desktop for any icons and I have no wallpaper, it's just #131313. Does anyone know how I can eliminate the file manager from managing the desktop so I may use Conky? (I have had similar problems on different distros with different file managers controlling the desktop, so I assume stopping Nautilus from managing the desktop will solve it this time)

View 5 Replies View Related

Ubuntu :: Managing Pairs Of Web Pages And Folders?

Dec 20, 2010

Is there any way to manage pairs of Web pages and folders as one does in windows? it is a handy feature

View 1 Replies View Related

Ubuntu Multimedia :: Managing Music In An Ipod?

Mar 23, 2011

I have two machines running ubuntu 10.10, one which acts as a media server to which i connect with the other (laptop) using ssh. All of the music is on the media server and I mount it with samba on the laptop.

I want to be able to manage music in my ipod (a very old one, probably G1 or G2) but I can't seem to make it work...

When I connect it to the laptop it looks ok, and the ipod is visible in Rhythmbox but I can't add music to the ipod, not sure why, maybe because all of my music is on the server and not local? If I try to sync the ipod and my library it says that there's not enough disk space since the library is far bigger than the capacity of my ipod.

When connected to the server, I mount the ipod but the Rhythmbox just don't display it. I checked in the plugins and the ipod support is enabled.

View 2 Replies View Related

Copyrights 2005-15, All rights reserved