General :: Launch Multiple Screen Sessions From A Single Bash Script?

Jul 11, 2011

I've written a script (that doesn't work) that looks something like this:

#!/bin/sh
screen -dmS "somename" somecommand
for i in {0..5}; do
screen -dmS "name$i" anothercommand $i
done

For some reason, if I copy and paste this into a terminal, it creates 7 detached screen sessions as I expect. If I run it from within a script, however, I get only the first session, "somename," when I run screen -ls.

Edit: If the same can be accomplished another way (e.g. with multiple screen windows instead of sessions), I would be open those solutions as well.

View 3 Replies


ADVERTISEMENT

Applications :: Route Ssh Sessions From A Single Head Node To Multiple Slave Nodes?

Apr 7, 2010

My requirement is to route ssh sessions from a single head node to multiple slave nodes. So what i want is, for a client there is just one point of entry (master/head node) to ssh into, it evaluates the load on the slave nodes connected on to internal network and routes the ssh session, kind of a ssh load balancer. what open source solution i can apply for my problem?

View 1 Replies View Related

Networking :: Load Balancer - Ssh Sessions From A Single Head Node To Multiple Slave Nodes ?

Apr 7, 2010

My requirement is to route ssh sessions from a single head node to multiple slave nodes. So what i want is, for a client there is just one point of entry (master/head node) to ssh into, it evaluates the load on the slave nodes connected on to internal network and routes the ssh session, kind of a ssh load balancer. Do you have any idea what open source solution i can apply for my problem?

I have tried using LVS piranha, it works well for http and https load balancing but not for ssh load balancing.

View 4 Replies View Related

Ubuntu :: Multiple Desktop Sessions - Screen Goes Out Black

May 4, 2011

I want to be able to run multiple desktop sessions, but when I goto the next session terminal and type startx -- :2 the screen just goes all black.

View 4 Replies View Related

General :: Keep Bash History Across Sessions?

Nov 17, 2010

I am working on a x86 target running fedora 9.

Whenever I reboot it, my history returns to some state, and I do not have commands I did in the sessions before the reboot.

What I have to change to have updated history I had before reboot?

View 2 Replies View Related

General :: Bash Script - Obtain Current Workdirs Of All Konsole Terminal/sessions?

Jan 15, 2011

I am trying to write a bash script that would save the current state of my konsole terminals and sessions. I'm using KDE3.X and for some reason the "profile" save does not save the current working directories... Anyway, I would like to know if there is an elegant way to obtain the current workdir of each terminal and session ? I've managed to do something with a clever use of DCOP extended functions, but it requires me to start every konsole with the --script option enabled, and I don't want to do that.

View 9 Replies View Related

Ubuntu :: Multiple X Sessions On Multiple Monitors?

Jul 12, 2010

So essentially, I have 3 monitors and i'm attempting to run 2 different window managers/sessions at once split up on the monitors. It is intended to be like this:

Code:
[GNOME/Compiz - Screen0]
- Left Monitor[code]......

View 2 Replies View Related

Programming :: Connect Multiple Sockets From A Single Client To A Single Server And Keep Them Open?

Oct 13, 2010

I have question about the UNIX sockets. my goal is to connect multiple sockets from a single client to a single server and keep them open...I'm not sure if that is possible to create or not. Do you have any suggestion or an example of code?

View 1 Replies View Related

General :: How To Launch Clean Bash Session

Apr 25, 2011

how to launch a non-login bash session that doesn't inherit its parents environmental variables, and doesn't source /etc/bashrc?

View 2 Replies View Related

General :: Launch Multiple Applications On Different Desktops Via A Script?

Jul 12, 2010

I am new to Linux (I get to learn it for work ) I was wondering how to launch multiple applications on different work spaces via a script. I have researched it and come up with most people using "Devil's Pie" I don't have this as an option. (work reasons) I was wondering what commands I could use in the script file to launch an app. on Said monitor on Said workstation.

View 2 Replies View Related

General :: Ubuntu - Create Several Screen Sessions On Startup?

Oct 10, 2010

Firstly, what's the best way to execute commands on startup, cron? Can I use su in a shell script to switch between different users, if so how?

How do I create several detached screen sessions on startup? screen -A -m -d -S test ./script.sh seems like it should work but using it in a script started by cron doesn't show any screen sessions running after booting.

It looks like the screen session is closed after the command finishes executing, can I keep it open so I can see the output?

View 3 Replies View Related

Ubuntu Servers :: Bash Script To Open 1 Screen Session With Multiple Windows?

Jul 28, 2010

I am trying to write a bash script to open 1 screen session with multiple windows... each one running a different service. Is this possible? I tried several things, and I can start up multiple sessions really easy.. but not 1 session with multiple windows...

I want this so I can attach to that session and quickly move between the different windows.

View 4 Replies View Related

General :: Multiple Port To A Single Service

Mar 6, 2011

Is there any limitation to the number of transactions through a single port if so then if we assign multiple port to that particular service then the performance is increased (what i suppose)

so: Is there any way to assign multiple Ports to a single service. like for a web server the main service is httpd or some thing like that to be running on the server and now if we assign multiple ports to that service then the performance increases.

View 2 Replies View Related

General :: Pointing Multiple Domains To A Single Public IP?

Apr 28, 2011

If i have two domins [URL] and [URL], can i point it to same IP Address in DNS?.I had already added namevirtualhost in my Apache.If possible, is there any risk,disadvantages.

View 11 Replies View Related

General :: Single Server And Multiple Client Programming In C ?

Jul 1, 2010

I am new in client server programming and i have written code for single server to single client communicating one port(3490). but i have no idea how my single server will be communicate with different client on different port.how this will be happen ?

Any idea to understand the logic or send any good link or any piece of code in c , i searched on net but all help was mostly for java progamming.

View 1 Replies View Related

General :: Transpose Multiple Rows Into A Single Column?

Apr 7, 2011

I need to transpose a file with over a 1000 rows of 5 columns of numbers into a file with a single column of numbers. The numbers are separated by a single space and range from one digit to 5 digits each. I tried using awk, but can only get it to grab one column of numbers.

Input:

1 2 3 4 50
600 7 8 9000 10
11 12000 13 14 15

Desired output:

1
2
3
4

[code]....

Tried using: awk '{split($0,a,""); print $NF}' <filename> and got:

50
10
15

It only grabbed the last number in each row.

View 13 Replies View Related

Debian :: Multiple Sessions With X Window

Jan 18, 2011

I have two Debian boxes, A and B. I would like that a window (for example vlc, or whatever) displays on both A and B. The process (i.e., the X11 client) runs on A. If I interact with the window from box A, it should affect the window on box B. And, if I interact with the window from box B, it should affect the window on box A.

View 2 Replies View Related

Ubuntu :: Multiple Guest Sessions (More Than Once)?

Jul 9, 2010

Is it way to have more "guest" sessions (more than one)?

View 1 Replies View Related

Ubuntu :: How To Run Multiple Graphical Sessions

Aug 21, 2010

I'm trying to run multiple Graphical sessions. How can I do this? I have read the forum article from 2006 but I get an error when executing startx --:2 [URL]
When I follow this howto, this is the error I get
Code:
# startx --:2
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock and start again.
Please consult the The X.Org Foundation support at [URL] for help.
ddxSigGiveUp: Closing log

View 4 Replies View Related

Ubuntu :: Will It Be Possible To Maintain Multiple Sessions

Oct 4, 2010

Will it be possible to maintain multiple sessions from Ubuntu?Actually we are working on one open source application and we have setup this application on one of our Ubuntu machine and this would act as a server for other developer's windows machine. Is any utility available(preferable open source) using which we will be able to access the Ubuntu server from all 4-5 developer's Windows machines?

Our requirement will be to access the whole system including console and GUI (same like remotely access) by using different sessions so that all 4-5 developers can start work together on the same Ubuntu machine.

View 1 Replies View Related

Software :: Multiple Sessions With Different Resolutions

May 9, 2011

I just bought a tablet, I would like to VNC to my machine with a lower screen resolution to match my tablet. Right now I use x11vnc on Ubuntu 10.10, and I was thinking to start another session using "startx" but I see there are parameters for display depth but not resolution.

View 4 Replies View Related

General :: Compile Multiple Source Using Single Makefile In ECos?

Jun 3, 2010

I'm calling a function defined in "uart.c" from "main.c"

But on "make" using cygwin bash, it's giving an error:"Unreferenced function"...
Pls help me to overcome this problem.

If i'm putting the definition of that function in "main.c" itself, its working.

So pls tell me how to write the make file for it?

View 4 Replies View Related

General :: Windows - Run Multiple Operating Systems On A Single Computer?

Mar 18, 2010

Possible Duplicates: Dual Booting Linux and Windows XP Booting Multiple Operating Systems I have a machine with Windows on it, and I would like to be able to reboot to Linux. I am certain this is possible. How can I achieve this?

View 2 Replies View Related

General :: Create A Video DVD With Multiple Titles From A Single-titled DVD?

Apr 24, 2010

I have an unencrypted DVD that is one big title, ie you cannot skip next / prev. What I want to do is reauthor the DVD with title at certain points, so that I can skip next / prev when watching it.

I'm using Ubuntu 8.10

View 1 Replies View Related

General :: Check Performance Of Multiple Machines With Single Command?

Jul 5, 2011

i have 30 linux PCs running. i need to check the performance of all pcs( memory,ram and process usage) in single command or in GUI mode.In solaris we have perf script to check performance in GUI mode. i need same type in linux?

View 1 Replies View Related

General :: Multiple Grep Outputs Appended To Single Row Of CSV File?

Sep 12, 2010

how to update a series of values from multiple grep commands outputs to be appended to a single row of a csv file? Work on a linux envir. The values from grep output will be numeric values.

Output sold look like:

1,3,4,5,7,0,5

Each of these values will be odtained from multiple grep commands piped with wc -l Is it possible to update a single row of a csv file if so pleas ehelp me with the command to be used to redirect the output into the csv file

View 5 Replies View Related

Debian Multimedia :: Using Startx For Multiple X Sessions

Sep 20, 2015

I have been able to log into a tty[1-6] as root or my user, and then startx -- :1, while logged in as myuser and running X on tty7, , but this somehow skips my default desktop manager (GDM3) and boot straight into LXDE (with no menus!). In /etc/X11/default-diplay-manager I have: /usr/sbin/gdm3 ? How do I get startx -- :1 to start a desktop manager?

Related 2nd question: When I did the above startx -- :1, it would start the X session in the same tty (e.g. tty2) where I was logged in when running the startx command. It used to be (in older Linux versions) that startx -- :1 would start an X session on tty8 (and the default would be :0 on tty7). Is this the (new) way things are supposed to work?

View 2 Replies View Related

Applications :: Writing Commands To Multiple Sessions?

Jul 12, 2010

I am using putty to connect to some servers. Is there a program that let you connect to say three servers and when you write your commands to server1, server2 & 3 also gets the command? So I don't have to log in to all three servers to do the exact same thing.

View 2 Replies View Related

Ubuntu :: Music Playback Between Multiple X Sessions

Apr 13, 2010

I use two x session, one for xbmc and the other for my desktop, that I can switch with CTRL+ALT+F7 or CTRL+ALT+F8. I start music in xbmc xsession and then switch to my desktop. When the track is finish the next track don't play, i must to come back to xbmc xession and automatically the next track is playing. I would like to have music all time when I'm not in xbmc xsession but in desktop xsession.

Ubuntu 9.10 x86_64 2.6.31-19-generic
ATI Radeon HD 4200 512MB (ATI Catalyst drivers 10.2)

View 5 Replies View Related

General :: SVN Multiple Commands Single Revision - Add New Folders (with Contents) To The Repository?

Jun 18, 2010

I want to do something like svn add dir1 dir2; svn ci dir1 dir2 but have it be only 1 revision. Is there a way to do this? Is this the correct way to add new folders (with contents) to the repository? We are restructuring the trunk, so I cleared it out and plan on putting these directories with their contents in it.

View 1 Replies View Related







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