Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

See the bottom of TICKR Help.

I have problems running multiple instances of the program "TICKR". However, I found a 'solution' on their website (link top), but it is too advanced for me.

The problem is that I don't know what to with this provided line:

/usr/bin/tickr -instance-id=1 -win_y=200 & /usr/bin/tickr -instance-id=2 -win_y=250

And if I were to figure out how to use it, I would still not know how to run the multiple instances.

Can anyone provide a little easier walkthrough?

share|improve this question
    
You learn something new everyday, huh... –  Keepster May 28 '12 at 10:41
    
I was probably scared by the word 'script'.. Thanks slhck –  Keepster May 28 '12 at 10:41
    
But the instances will close when I close the terminal? –  Keepster May 28 '12 at 10:45

2 Answers 2

up vote 3 down vote accepted

You need to enter these lines in a Terminal, which you can open by pressing CtrlAltT.

You can also paste them with CtrlShiftV.

What the command does is calling the TICKR executable two times. The ampersand & will allow you to do so – all in one line.

If you want those instances to survive after the terminal window has been closed, prefix them with nohup:

nohup /usr/bin/tickr -instance-id=1 -win_y=200 & nohup /usr/bin/tickr -instance-id=2 -win_y=250
share|improve this answer
    
Thank you so much! –  Keepster May 28 '12 at 10:48

first open terminal using Ctrl+alt+T and paste command using Ctrl+Shift+V. OR you can type in terminal.

/usr/bin/tickr -instance-id=1 -win_y=200 & /usr/bin/tickr -instance-id=2 -win_y=250

this is actually two commands /usr/bin/tickr -instance-id=1 -win_y=200 and /usr/bin/tickr -instance-id=2 -win_y=250

lets interpret this /usr/bin/tickr is path+executable file to make it more clear /usr/bin/ is path (means reference where is the file) and tickr is executable file./usr/bin/tickr runs tickr executable file.

if use /usr/bin/tickr to execute it always uses default parameters. Parameters are used to run executable with changed default parameters. So parameters are used to change behaviour.

there is many parameter on site you provided with different uses of it.

here first parameter is -instance-id=1 Used when launching several instances simultaneously, each instance using its own config and dump files (to be effective, instance-id must be the 1st argument). Which states id is 1.

now second parameter -win_y=200 which is used to give Window position - y

instances will be closed if you close terminal to prevent this prefix nohup to command. so it will become

nohup /usr/bin/tickr -instance-id=1 -win_y=200 & /usr/bin/tickr -instance-id=2 -win_y=250

you can use any number of parameters.

hope this helps.

share|improve this answer
    
Thanks for the answer! This website kick ass –  Keepster May 28 '12 at 10:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.