Programming :: Screen Listing Of Windows In A Session?

May 21, 2011

I need a way to have screen (or dbus, whatever) to spit out a list of windows (title and number) that are active in a screen session.I'm writing a wrapper for common work tasks. Part of the functionality will check if a certain window exists, and if so let me know. The idea here is to prevent accessing the same machine twice. (although, and override option would probably be needed, just in case, but I digress...) I've searched through the screen man page and don't see anything that'll work. I'm not beyond forking screen and ending up with a custom version. However, I'd like to avoid that if I can.

Edit: I'd like to see something like "screen -S screen_name -window-list" or similar.

View 6 Replies


ADVERTISEMENT

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

Programming :: Hashing The Components Of An Tcp Session To Assign/locate The Session In A Hash Table Bucket?

Nov 10, 2010

I have a very bad attempt at hashing the components of an tcp session to assign/locate the session in a hash table bucket. I am pretty sure that it has a very high collision rate and when there are a very large number of tcp sessions my application is having to search a long linked list to find the session within the bucket.

All the hashing functions I have found take a single string input where I need to input several integers and hash them into a single result. My guess is that any real hashing function is going to produce better results than what I am currently doing.

[Code]...

View 2 Replies View Related

Programming :: Listing All Threads In A Process?

Dec 29, 2010

How to list all the threads spawned by a process?

View 4 Replies View Related

Programming :: Date Listing In Perl?

Jun 1, 2010

Using given program , i am able to print current date but is is possible to print last n no. of date. For example i want to print last three date staring from today. so o/p should be like

2010-06-02
2010-06-01
2010-05-31
Code:
my $myTimeStamp = "";
sub _timestamp
{

[Code]...

View 1 Replies View Related

Ubuntu :: Stopped Listing Windows XP Partition?

Jan 18, 2011

I've noticed that Ubuntu stopped listing my Windows XP partition in my Places menu like it used to but let it go because it wasn't something I needed to access often. But now I'm discovering that Ubuntu is also not mounting my DVD drive when I put a CD in, nor my USB flash drive that I just reformatted to NTFS using gparted within Ubuntu, nor does any other external USB drive. I don't know how to start with troubleshooting the cause.

View 3 Replies View Related

Debian Programming :: Vhost Listing Script?

Sep 23, 2015

I run a small shellserver for my friends, and added a few IP's for vhosts. I tried google, but found nothing so I wonder if vhost listing script for IPv4 and IPv6?

View 1 Replies View Related

Programming :: Pipe The Current Directory Listing Into Sort?

Oct 20, 2010

how to pipe the current directory listing into sort so that the output is the date in descending order (primary sort key). If there are multiple entries with the same date, I'd like the times sorted in ascending order. It seems simple but for some reason this isn't working:

ls -l | sort -k 6r -k 7

For some reason it doesn't seem to ever get to the second sort key when using column 6 (last modified date).

View 2 Replies View Related

Programming :: BASH: Listing Contents Of .zip File Into An Array?

May 18, 2010

I want to list the contents of a zip file amd put each entry into an array. I've been doing

[code]....

View 4 Replies View Related

Programming :: Listing Sudo Users - Getting Empty Space In Between

May 20, 2010

I was trying to list sudo users in a Linux Machine,

[root@redhat ~]# grep -v -E '^#' /etc/sudoers
root ALL=(ALL) ALL
%work ALL=(ALL) ALL
%dilipvp ALL=(ALL) ALL

where work is a group and dilipvp is user. Can you help me in creating a better script which can list the members of the group work as well. and why I am getting empty space in between.

View 6 Replies View Related

Programming :: Listing Hard Drives Via Partition Imaging Program

Jan 28, 2011

Am doing a simple partition imaging program. Am using libparted for partition things. Before that I want to list the available hard disks (/dev names) attached to the PC Programmatically.

View 2 Replies View Related

Programming :: G++ - Draw On The Screen In X Windows Using C++?

Jun 9, 2011

I am looking for a way to draw on the screen in X Windows using c++, the GNU g++ compiler. I don't want to mess with requirements so just how to draw in x windows. Can it be done with g++ or is there something else I need to use.

View 8 Replies View Related

Ubuntu :: Firefox Opens File Listing Instead Of Nautilus Opening File Listing

Jun 20, 2010

Firefox opens file listing instead of Nautilus opening file listing.When I access a folder via "Places" -> "Home Folder" or "Places" -> "Downloads", Firefox opens and list the contents of the directory.I have re-installed Nautilus, un-installed Firefox and then going to "Places" -> "Home Folder" or "Places" -> "Downloads" launches Nautilus and I can view the contents normally. Anybody else had this problem with Firefox ? Anybody know how to fix this Firefox problem ?Running Ubuntu Desktop 9.10 64bit.

View 2 Replies View Related

Programming :: Create File Listing In C++ That Will Generate Line Number On Every Line Of Code

Apr 11, 2010

I have a project due for my Intro to C++ class and we are suppose to generate a file listing that will take an input of a C++ source code with .cpp extension and make a copy of it with a .lst extention that will have a line number preceding each and every line.

View 12 Replies View Related

General :: Run A Second Command In Same Screen Session?

May 5, 2011

I'm starting the first command in screen like this: screen -d -m -S testen -t lalala watch df -h Now I have a screen session running in background and I can reconnect at a later time. But how can I run a second command (in a new window) in the same screen session?

View 1 Replies View Related

Software :: Using 'at' To Open A 'screen' Session?

Mar 8, 2011

when I type:

Code:

After the command has run (verified with atq) I cannot attach to screen using "screen -r" and ps shows screen is not running:

Code:

why the 'at' command can't start screen in the background for me to attach to later?

Noticed screen is actually returning "Must be connected to a terminal." to logs. Does 'at' not provide a terminal?

View 5 Replies View Related

General :: Way To Automatically Unlock Screen For VNC Session

Sep 17, 2010

I'm connecting via ssh to an Ubuntu server that has a physical display attached.I'd like the physical display of the server to remain locked while I'm connected remotely.Is this possible? How? Also, is there a way to automatically unlock the screen for the VNC session, which is made from localhost via an ssh tunnel?

View 1 Replies View Related

Software :: Set Xterm Title To Gnu Screen Session Name?

May 5, 2009

I usually have several xterms open, with each one running a different gnu screen session. It would be useful if--at a glance--I could see the session name in the xterm title bar. That way I would be able to quickly tell which screen sessions are running in which xterms. This would be very useful when alt-tabbing.

I know that there are termcap, terminfo, and termcapinfo commands available, but I don't know how to use these. I also know that there's an $STY environment variable that stores the session name. Also, I do not want to lose my current "hardstatus alwayslastline" bar. It seems like this should be independent from the xterm title, anyways.

View 5 Replies View Related

Software :: Use 'screen' To Restore A Gnome-session?

Oct 24, 2010

This is regarding the 'screen' utility. I use an utility called 'HummingBird Exceed' to get the XSession of a linux client on my windows desktop (basically it uses XDMCP). But the pain is that at the end of the day, when I close Exceed, the session gets destroyed. I did lot of searching on the web to know how the save and restore session in Exceed, but failed. However, I found that 'screen' is the utility which keeps the session intact even when you logout. So, I did the following:

a. Logged into the machine using Putty (terminal emulator).

b. Started 'screen'.

c. Issued the command: /usr/bin/gnome-session

I got the XSession on the Exceed and started working. I opened three or four gnome-terminals. But when I logout of exceed(and detach from the screen), the screen displayed a message saying that 'Connection to XServer was lost". Hence I could not restore to this session when I reattached to the screen. how do I use 'screen' so that when I attach to the screen on which I had started gnome-session, it attempts to connect to the Xserver and open the session as it was before detaching?

View 1 Replies View Related

Software :: Sending Commands To A Screen Session?

Aug 7, 2010

I have several screen sessions running, one of them named 'test'. I want to send a simple command to there without attaching the screen, so I do:

screen -S test -X ls

But when I attach the screen to see if it has done something, nothing is different... How can I send commands then? Of course the 'ls' command is not what I want to do, but it's just an example in how this is not working.

View 6 Replies View Related

CentOS 5 :: Blank Screen With VNC Over SSH, And Lock Ssh Session?

Sep 2, 2010

I have 2 servers, I set the first one up so that I can remote to it and connect with VNC over ssh by following:[URL]ServerThe 2nd server I did the same, but I cannot connect! When I do, vncviewer prompts for a password and then opens a window of the correct size, but it is all white and then my ssh session is locked! I can't enter any more commands, I have to kill the session.

View 3 Replies View Related

Programming :: Php Session Not Working?

Apr 21, 2011

I try to learn using session. I created sess1.php with the following code:

<?php
session_start();
// makes an array

[code]...

View 5 Replies View Related

Debian :: Use Screen To Execute A File With A Certain Session Name Instead Of Just Numbers?

Feb 11, 2011

I'd like to use screen to execute a file with a certain session name instead of just numbers... or at least have a more permanent name, I'd like to be able to use it all in one command though. So I can put it into a script.Also: is there a way I can remove or change what comes up at the debian login screen so instead of debain 5.0 I can make it say something else? Also when I login the message that comes up is a little annoying, is there a way I could remove or change that too?

View 7 Replies View Related

Ubuntu :: Guest Session: How To Configure And Available From Login Screen

Jan 8, 2010

I like very much the Guest Session feature of Karmic, it comes very handy when someone needs to use your computer. However, it's only available if I'm already logged in, it won't show this option at login screen. Is there any way to make this possible? Also, I once tried the guest session and configured its appearance to my taste. The next time I entered, though, the default desktop reappeared. I know this happens because no setting is permanently stored for this session, so the only solution I can think of is to change the default configuration it is loaded from.

View 4 Replies View Related

Ubuntu :: Unity White Screen - How To Change Session In GDM

May 10, 2010

Installed Unity from the ppa, restarted the session and got a blank screen.Now I can't figure out how to get back to GDM and reselect Gnome as my default session.

View 8 Replies View Related

Ubuntu :: Session Restarts Itself - 'black' Screen Of Death / What's Going On?

May 15, 2010

I'm having a really odd problem since I upgraded to 10.04 on my IBM T40 laptop. Every now and then, especially if I'm using Firefox (so it seems), I will be in the middle of something and suddenly I get a black terminal screen that flashes a few lines ending in "checking battery state" and I get bounced back to the login screen. I log back in and all my work is gone (Firefox and whatever else was open has closed). I was on the web for a while tonight and in a few hours it did it three times. I never had this happen before in 9.10.

Any idea what's going on? If it matters I'm on AC power when this is happening. I haven't used it long enough on battery to know if it does it then or not.

View 1 Replies View Related

Ubuntu :: Guide To Guest Session On Login Screen

Oct 20, 2010

I learned how to do this on the 'net somewhere. This HowTo will help you create an account on the login screen that will log in the same guest-session seen in the user menu. The advantage of this is that it will be an easily accessible guest account, while not preserving any files or changes on logout, and a higher security model for the account. Confirmed to work on 10.04 - 10.10, but the directions are for 10.10

1. Under an existing administrator account, go to the menu entry System --> administration --> Users and Groups.

2. Click Add. you may need to provide a password at this point. Name your new user anything you would like, except guest. The account cannot be called guest, but visitor does nicely. encryption of the account is not needed. This account will be a "booster" account to guest-session.

3. On the next screen, enter a password, and make sure that you click the check box "Don't ask for password on login", Click OK to finish.

4. As an extra precaution, click Advanced settings, when back on the Users and Groups screen, and on the User Privileges tab, uncheck Monitor System Logs.

5. Exit the Users and groups menu, and then log out and into your new account.

6. Once there, make a folder called GuestManager, and in that folder, make a plain text file called Guestmanager.sh, with this code in it :

Code:
#!/bin/bash
# Launches the guest session
/usr/share/gdm/guest-session/guest-session-launch
# Logs the user when done
/usr/bin/gnome-session-save --logout

7. Save that and then right click on it, go to properties, and then go to the permissions tab. On this tab, click "allow executing file as program", and then close that window.

8. Open the menu entry System --> Preferences --> Startup Applications, and once there, turn off all the startup applications, and then click add. Fill in the name and comment as GustManager, and for the command, enter /home/visitor/GuestManager/GuestManager.sh, where visitor would be the name you picked for the account in step 2. click add, then close

9. Delete all applets and extra toolbars (might want to leave the main gnome menu), and set the background to black or something else bland, and log out. Since this account is just a "booster" none of these toolbars and such will be needed, so removing them saves memory and load time.

View 3 Replies View Related

Ubuntu :: Picking Screen Saver Crashes Session?

Dec 22, 2010

I have a new install of xubuntu 10.10, everytime I try to choose a screensaver the user session crashes back to the user login screen? The video card is an onboard ATI Savage on a Gigabyte motherboard.

View 2 Replies View Related

Ubuntu :: Launch Guest Session From Login Screen?

Jun 21, 2011

i am wondering if it is possible to do this all i can find with google is idea proposals and brainstorms i know i could make a separate account and call it guest user bu that user would get to keep data/settings where as a guest session places a temporary account in the /tmp folder which combined with a ram disk for /tmp would result in some really fast performance since i use a ssd for / which would make the traditional hdd only used for /var also since /tmp would be a ram disk it would be like the guest is using a live cd with security restrictions and performance enhancements on top of this there would be no trace of the guest on my computer after shutdown

View 4 Replies View Related

Software :: Launch Script To Be Interpreted On Screen Session?

Jan 27, 2010

I am on an xubuntu live cd setting up gentoo linux. I use screen to make sure that all my compiling and whatnot runs in the background and I won't accidently exit it. I have a script that I have written that autoruns starting my screen session, whenever I insert my thumbdrive. A seprete script should be passed along to screen telling it to chroot into my gentoo setup. However, whenever I use screen -X ./myscript.sh it says that it is an unknown command. How can I pass it along to screen?

View 1 Replies View Related







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