Tuesday, March 24, 2009

HOWTO: Tell dynagen to open new screen windows in *nix

I realized I posted this in another window, but it looks like it belongs here.

You can configure dynagen in linux, mac, freebsd - pick your poison, to open console windows in existing screen sessions with proper naming.

To do this, simply add to your dynagen.ini file commenting out the existing telnet option:

# Uncomment below for Linux
#telnet = xterm -T %d -e telnet %h %p > /dev/null 2>&1 &
telnet = screen -X screen -t "%d Dynamips (%h:%p)" -l `if [ -z "\`ps axu | grep 'telnet %h %p' | grep -v grep\`" ]; then echo telnet %h %p; else echo '/bin/false'; fi`

Then, in dynagen, all you have to do is run con /all. This will only open each window -once-, and the small bash script we embedded in the telnet command will check for existing windows and abort opening any duplicates. See the screenshot for details.


=> con /all

This will go through each of the routers that appers in dynagen and open only one window under screen.

=> list
Name Type State Server Console
Client1 3640 running localhost:7200 2000
Client2 3640 running localhost:7200 2001
ISP 3640 running localhost:7200 2002
Hub 3640 running localhost:7200 2003
Server 3640 running localhost:7200 2004
fw1 525 running localhost:10525 4000
fw2 525 running localhost:10525 4001


To manipulate screen, the default meta-key is CTRL+A. Combine this with another key, like space, to scroll through windows. Use a specific number to go to that window number CTRL+A, space or CTRL+A, 1.
Renaming a window is CTRL+A, a and listing current windows is done by CTRL+A, ".

For a list of other screen metakeys and functions read the screen manual or type CTRL+A, ? for other options

Posted by JP

10 comments:

Anonymous said...

Very often, these people give up before giving the
program a real chance to work. ' The picture is just as worrying for youngsters - by 2010, it's predicted
22 per cent of girls and 19 per cent of boys between the ages of two and 15 will be obese, with girls under
11 at particular risk. Remember; there is a difference between a fattening diet and a healthy diet.


Here is my web site - exercise and fitness tips aerobic exercise

Anonymous said...

Make a list of your nutrition chart involving juice and fruits at
the top followed by green vegetables and milk products. If you weigh yourself everyday or every other day and see that you've gained weight, your motivation may go down and you'll be likely to give up.
Get your heart rate up with a quick burst of
fast movement.

My blog - Learn More Here

Anonymous said...

For centuries, man has been exploiting biology to make food
products such as bread, beer, wine, and cheese. Russian Prime Minister Vladimir Putin emphasized this commitment, "We have allocated substantial resources for the development of such promising areas as nano-and biotechnology, nuclear energy, aerospace and other research. "The Kenexa solution
has enabled our people to remain focused on drug discovery and development" said Grossman.

My web page: 1

Anonymous said...

Thanks designed for sharing such a fastidious opinion, paragraph is good, thats why i have read it fully

Here is my site: Learn More

Anonymous said...

December is such a special month of the year - quality time
with family, exchanging gifts, and sumptuous food all month long.
So if you adopt them punctually, you will be surely able to gain your holistic health very
soon. Let's say you want to be able to run 10 miles without stopping.

Also visit my web site :: http://freebodega.com/

Anonymous said...

These fitness tips in above some basic ideas for
keeping fit and healthy body. My grandma can really feel
vindicated at such a claim,she's been saying this all my life. Menopause weight gain is not inevitable, but it can be more difficult to maintain a healthy weight as your metabolism slows.

Check out my web page; relevant internet site

Anonymous said...

The real life stories in the back are amazing, and show that even
average women can look amazing. So if you adopt them punctually,
you will be surely able to gain your holistic health very soon.
Another item to consider is to buy resistance bands, which help with stretching and
yoga.

Feel free to visit my web page - Puertoricotkd.Com

Anonymous said...

It improves blood and oxygen flow to the muscles that are recovering from the prior hard workout.
Blowing off some steam with a quick round of solo travel fitness in the morning can
make your whole day brighter. Having some company can also make the fitness session more fun.



Here is my homepage click the next web site

Anonymous said...

This is a topic that is close to my heart... Best wishes!
Where are your contact details though?

Feel free to visit my homepage Biotech Sales Recruiters

Anonymous said...

I really love your blog.. Great colors & theme. Did you develop this amazing site yourself?
Please reply back as Iím planning to create my own website and would like to
learn where you got this from or what the theme is named.
Appreciate it!

Stop by my webpage wangback.com