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


ADVERTISEMENT

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 "scripthere.sh entry1", anther one starts almsot at the same time "scripthere.sh 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

Programming :: Linking And Compiling Multiple C++ Files Into One Executable Program?

Dec 17, 2009

I have 3 c++ files, classdef.h (header file with class definition), methods.cpp (class methods) and program.cpp - the program itself. Both .cpp files have

Code:

#include "classdef.h"

in files. How I can link the files together and compile them in one executable program? I am using Geany IDE for coding.

View 4 Replies View Related

Fedora :: Run Multiple Instances Of Yum At The Same Time?

Jun 24, 2010

Is there any way to run multiple instances of yum at the same time. The need is to speed up the install process.

View 2 Replies View Related

Ubuntu :: Run Multiple Instances Of Ushare ?

Nov 22, 2010

I have multiple hard drives with videos on them and i can only get the my xbox to read the 1st in my list of directories. So i wanted to know can i run multiple instances of ushare and use one for each hard drive? Is it possible?

View 3 Replies View Related

Ubuntu :: Multiple Instances Of Terminal App?

Jun 25, 2011

How can I make it so that I can open multiple new instances of the terminal app by clicking on the corresponding icon? I'm running 11.04 with Gnome 3.

View 5 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

Debian :: Multiple Instances Of Mumble-server?

Oct 31, 2015

i'm new to linux, and i want to create mumble servers for my friends.My first server is finished and he works but, is it possible to create multiples instances of mumble ?

View 1 Replies View Related

Fedora Servers :: Multiple Instances Of Pulesaudio?

Sep 9, 2010

I've got two sound cards fitted, before I've always killed pulseaudio as a pain in the butt.

Without pulseaudio enabled I could run two audio apps simultaneously, ie run a SDR ( software defined radio) app , and listen to music or watch TV at the same time.

However, with puls audio running, you can only run one, either input to either output. So can a second instance of pulseaudio be run, master and slave perhaps ?

View 6 Replies View Related

General :: Start Multiple Instances Of Firefox?

Mar 31, 2010

How can I have multiple independent instances of Mozilla Firefox 3.5 on the same X server, but started from different user accounts (consequently, different profiles)?

Limited success was only with Xephyr :1, DISPLAY=:1 /usr/local/bin/firefox, but Xephyr has no Cygwin/X's "rootless" mode so it's not comfortable (see other question).

The idea is to have one Firefox instance for various "Serious Business" things and the other for regular browsing with dozens of add-ons securely isolated.

View 2 Replies View Related

General :: Why No Multiple Instances Of Firefox As On Windows

May 4, 2010

On Windows If I run Firefox as user jack, and then try to start another instance of firefox I will be unable to, as one is already running.If I choose to run firefox as administrator,then I can have two instances of firefox, separate from each other side by side, because they are under different user accounts.This does not seem to be true on Linux.As user jack if I start firefox, like on windows I am unable to start a new instance.If I open a terminal and change to root, set XAUTHORITY to jacks .Xauthority and try to start firefox as root....I get the error that firefox is already running.

View 1 Replies View Related

Ubuntu :: Disable Multiple Instances Of Evolution?

Feb 27, 2010

The great clock applet shows tasks and appointments from the evolution calendar. That's a great and fast overview of my agenda. But clicking a task of appointment opens a new instance from evolution every time, which is enormously annoying and really destroying productivity. I don't want 15 calendars open, I want the applet to behave like an index. So it should reuse the open instance and bring focus to the clicked appointment or task. How do I disable multiple instances of evolution?

View 2 Replies View Related

Ubuntu Servers :: Multiple Instances Of A Daemon?

May 27, 2010

I have a test server on which I'd like to run up to 30 separate instances of a program as daemons, each running on a different IP address bound to the server. I've created a init script that takes an additional command line parameter - the last octet of the IP address. For example:

Code:

sudo myprog 40 start
sudo myprog 41 start

This would run instances of the program on IP addresses 192.168.1.40 and 192.168.1.41 respectively. But it's looking like this approach isn't doable if I wish to have any or all of these run at startup, as the links in the rcN.d directories can only link to the init script, not pass a parameter.

View 2 Replies View Related

Ubuntu :: CPU 100% On Boot / Multiple Instances Of Same Process

Jul 30, 2010

I tried the google and browsing the known bugs in the sticky before posting this thread.On boot the machine is pegged at 100%. It is a dual-core with 4GB of ram and is running 10.04, 64bit. Also, as time goes on it eats up all the ram till theres maybe 32mb free. What happens is there are multiple 4-10+ identical processes running. seem to be gnome related.The machine sits idle on my floor and runs samba and apache/mysql/gallery for my test website that no on but myself visits.

View 5 Replies View Related

Ubuntu :: Enable Multiple Instances Of An Application

Oct 14, 2010

I have enabled netbook-launcher-efl and like the interface quite a lot, but it only allows me to launch a single instance of each application. I was told in an unrelated thread that there should be a setting in gconf-editor that enables multiple instances to be launched, but I thought it would be more appropriate if I broke that out into a separate thread.

View 3 Replies View Related

Ubuntu :: Multiple Instances Of Apps In Unity?

May 2, 2011

Using more than one instance of the same app is a real pita in Unity.If I have 3 (or more) pdf documents open in evince then there isn't a way to shift from one to the other using the mouse. Previously I had the windows on the taskbar and could click on the one I wanted. In Unity clicking on the evince icon on the launcher just brings ALL the instances of evince to the top - I still then have to shuffle the windows around to get the one I want.I've been trying to get used to Unity over the last few days, so maybe I am just doing it wrong, but if not then maybe I should file a bug report?

View 8 Replies View Related

General :: Replace Multiple Instances From X To Y In Line

Feb 1, 2010

I have a line of text with multiple web links in the line. I'd like to replace the actual links with the text "<web-link>" so I don't accidentally hit them while reading on my iphone. I've tried many versions of the following sed command, sed 's/(http.*)/<web_link>/g', but it simply replaces everything between the first instance of "(http" and the last instance of ")" with <web_link>, or does nothing at all.

Ex: This line has a link to a web page (http://www.webpage.com/file.html) then some more text (extra text) and then another link (http://www.nextwebpage.com.index.html) to a website.
$ echo "This line has a link to a web page (http://www.webpage.com/file.html) then some more text (extra text) and then another link (http://www.nextwebpage.com.index.html) to a website." | sed 's/(http.*)/<web_link>/g'

What I get is: This line has a link to a web page <web_link> to a website.
What I'd like is: This line has a link to a web page <web_link> then some more text (extra text) and then another link <web_link> to a website.
What am I doing wrong with my sed command?

View 4 Replies View Related

General :: Run Multiple Squid Instances On Server?

Sep 20, 2010

I need to run multiple squid instances on my server , I am running squid version squid-2.7.STABLE5-1.el4 on RHEL 4.7 , kindly tell me how to do so. by the way , I need to run two instance because i need to configure my proxy to act as a reverse proxy and a forward proxy, and people told me that you cannot run a forward and reverse proxy on the same instance.

View 4 Replies View Related

Software :: Bash Jobs Over Multiple Instances?

May 20, 2010

I know that bash can suspend and resume processes, but I am interested in forking and resuming them from different bash instances. So, for example, forking a gui app started from the console so that it will not crash when the terminal is closed. I currently know about screen, which can work, but I was wondering if there was a way similar to Ctrl+Z, bg and fg.

View 2 Replies View Related

Software :: Running Multiple Instances Of Audacious?

Dec 7, 2010

I need to run two instances (i.e run the program twice, with two separate windows) of Audacious. This is for a play where I need to have music and sound effects going at the same time. I could do this while running Fedora 13, but after upgrading to 14 the audacious package was updated and now can't do this. My attempts at downgrading have been unsuccessful, and I need the audio done by tonight (the last rehearsal). So... am I up the river without a boat, or is there a fast solution? I'm open to anything, as long as the music player has advanced controls (play, pause, stop, fast forward, rewind, forwards track, backwards track) and can have two instances running at the same time.

View 1 Replies View Related

Debian Configuration :: Correct Way To Start Multiple Instances Of MPD?

Mar 18, 2010

The first thing that comes to my mind is to add (copy) the script in /etc/init.d and the /etc/rc* directories by hand. Debian's automatic handling of init scripts on package install/removal is quite nice, so I tend to shy away from making any manual changes if there's an automated way to do it. Which leads me to the question: is there an official way to run a second instance of a daemon? (Tried google, didn't find much more than a bug report).

View 4 Replies View Related

Debian Configuration :: Preventing Multiple Instances Of User?

Sep 6, 2010

Currently, a user is able to log into multiple terminals simultaneously, creating a copy of their roaming profile on each, and potentially causing problems if the instances are logged out in the wrong order. Is there any way to prevent this, so that if a user has logged in on a machine and not logged out (and perhaps some timeout has not yet expired) then their login attempts on another machine will be rejected.

View 2 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 :: Disable Multiple Instances In Mplayer?

Oct 16, 2010

I have been using totem player as my default video player. I've abstained from using VLC player considering the fact that it's got some security issues. Of late, I've installed and was mighty impressed by Mplayer because it could play .flv files which totem player couldn't. The only thing which I find irksome is its multiple instances. Can you please help me disable multiple instances in Mplayer. (I've experienced same problem in VLC player too, but right now I'm trying to stick with Mplayer)

View 3 Replies View Related

Fedora :: Multiple Instances Of Watchdog / Migration And Ksoftirqd?

Mar 15, 2011

I recently completed a scratch install of Fedora Core 14 64-bit onto a system, and while everything appears to be running properly, I noticed there are almost 300 processes running at a given time on the server. The top command indicated there were ten-plus instances of the watchdog, migration, and ksoftirqd daemons running on the system. I am not familiar with these services, so I wanted to know what they are, and is there a need to have this many instances of each running on the system?

View 1 Replies View Related

Ubuntu :: Set Up Password-less SSH Login Between Multiple Instances On Server?

Jun 30, 2010

i'm trying to set up password-less SSH login between multiple instances on my server. My goal is to be able to monitor all instances, whether I created them or not, with Zenoss.

Current setup: 3 machines

A: Zenoss host- owned by me, Access via putty with my keypair
B: instance- owned by me, access via putty with my keypair
C: instance- owned by teammate, access via putty with their keypair

I'm able to set up password-less SSH login between the instances I have created (A to B), however, I cannot between my Zenoss monitoring instance and any instances not created by me(A to C). Whenever I try to copy the id_rsa.pub file to these instances, I keep getting a Permission denied(public key) error. I believe the problem is that I have log in to my instances using my keypair but must use the the other instances creator's keypair to access their instances.

View 1 Replies View Related

Networking :: Xinetd To Fork New Instances Of Foo So Multiple Clients Can Connect To It

Aug 3, 2010

Suppose I have a server, foo, that runs on port 5555. I can make one connection to it at a time on that port. I want xinetd to fork new instances of foo so multiple clients can connect to it.

Here's a configuration entry:

1) How does xinetd fork a new instance of foo when a previous instance is already listening on port 5555? Wouldn't the new process fail to launch because port 5555 is already in use by the previous process?

2) Suppose five clients connect simultaneously, and xinetd forks five instances of foo. When the clients disconnect, does xinetd leave all five instances running?

View 2 Replies View Related







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