General :: Close "screen" Session From A Script?
Jun 26, 2011
I am using screen to start a LONG running script on my server over an ssh connection. This works fine. I can see that the script is continuing to run after I disconnect from the screen session using Ctrl-A d. When the script is complete I can reconnect to the screen session and manually terminate it.
I would like to be able to terminate the screen session at the end of the script. I tried issuing an exit command at the end of the script. That did NOT work. Any ideas?
View 9 Replies
ADVERTISEMENT
Jul 19, 2010
I need to close my session but the exit button is no longer here. I can restart the computer (ctrl+alt_del), but not only the session. I opened a session with the gnome desktop but everytime is messed up and I want to come back to the UNE desktop. How can I do that from a terminal?
View 1 Replies
View Related
Aug 18, 2015
I bought a hp envy x360, and I have installed debian 8.1 and I have some problems with GNOME.
I am running session and it works fine, but after some time it is closed suddenly and after I can't start session.
View 0 Replies
View Related
Nov 12, 2010
I would like to know which command should I enter in the execute dialog (opened with Alt+F2) so the dialog to close session and change the user opens.
View 5 Replies
View Related
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
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
Sep 13, 2010
I typically have several terminal windows each of which is connected via ssh to a remote server. In each window I work using the gnu screen program, to ensure persistence of the interactive processes in case of a disconnection.
Currently, whenever the ssh connection drops (such as when I put my client computer to sleep overnight) I have to manually and tediously restart the ssh session inside each window, and then in each window tediously resume the specific screen session (e.g. "screen -r 3453" in one window, "screen -r 3462" in the other etc.)
Is there an elegant way to automate this? Specifically:
reconnect the ssh session if it drops, as soon as an Internet connection is detected run the specific screen instance for the terminal window as soon as ssh reconnects
View 2 Replies
View Related
Sep 20, 2010
I'm using wmctrl on an Ubuntu machine to manage windows from a script, that I run inside a (gnu) screen.
If I start the screen session from the local machine, wmctrl works fine, including if I completely close the terminal window and issue the wmctrl commands when connecting to the screen remotely via ssh.
Conversely, if I connect remotely with ssh and start a screen, wmctrl doesn't work (returns "Cannot open display") even if I attach that screen session locally from the Ubuntu Terminal.
I guess there is some hidden screen parameter that doesn't get set in a way that allows accessing the display when it's launched remotely -- any ideas what it is and how to modify it from within a remote ssh-screen session so that that the script can access the windows?
View 1 Replies
View Related
Nov 1, 2010
I have centos 5.3 i got the login screen but after logging shows error as-- your session only last less than 10 seconds . if you have not logged out yourself tyhis could mean that there is some installation problem or that you may out of disk space .try logging with one of fail session.
views details:
There is lot of space in hardisk and tmp.
View 1 Replies
View Related
May 4, 2010
When I updated from 9.10 to 10.04, the only thing I noticed immediately was that the Application menu and the things next to (Similar to window's Start button). That's still gone. I also am having problems with my hibernate. Whether I close my lid or physically click to hibernate, all that happens is my screen goes black but doesn't shut off all the way and the power button does nothing.
View 7 Replies
View Related
Jun 22, 2010
Before I go any further let me make it perfectly clear that this post is not in regards to Shuttleworth's recent decision to move the "titlebar buttons". I honestly don't care and in fact it saves me time since I've always moved the close button to the left side and then removed the minimize and maximize buttons anyway.This problem is made even more annoying because I thought we were all done with it. I've been back and forth between distros, KDE, and GNOME since 2000. . . I would run head first into this issue often out of nowhere. . . I feel like I'm back in 2003 again.
According to Fitt's Law, corners and edges have infinite width as far as the user is concerned, one of the reasons I have loved GNOME for so long now is because of the use of corners, so imagine my surprise when I can no longer simply throw my mouse cursor up into the corner and simply CLOSE the maximized window that I'm currently using, instead it drags the window. This is obnoxious and useless. I can already grab at any other part of the top edge of the screen outside of the far corner in order to drag a window, why is this happening again? It is SO frustrating particularly since GNOME is supposed to be so damned concerned with usability.
I think this change might have something to do with that monstrosity known as gnome-shell. I guess they were figuring that with the proposed 2.30/3.0 switch over to this new window manager, they could simply do whatever they like with metacity. . . or maybe gnome-shell USES the same configurations as metacity (seems plausible), all that I know is that this truly pisses me off.It may seem trivial but it's a daily use factor for me and I have no way of changing the behavior. I just want to be able to throw my mouse in a corner and click, it never seemed that big of an issue in the past, I don't see why the developer(s) saw the need to change this.
And to forestall all those that would ask me to switch from metacity to compiz or vice-versa, it's with both and I am NOT going to use compiz's own digusting window manager themes, I like my metacity themes.My other choices are KDE, enlightenment, openbox or Xfce, Well the first two are travesties since I'm used to my GNOME applications and they don't look good in those DE's, the third looks like crap (to me) and Xfce has corner close button functionality only per theme (some themes do and some don't)
View 5 Replies
View Related
Jul 30, 2010
Last night everything was fine and running normally.When I booted up today all my windows have no borders and the maximize/minimize/close buttons are all gone! WTF? Did somebody eat them?I have read many threads with several fixes but none has worked for me I have uninstalled emerald as I thought that may be the cause, but it's still the same.Screen effects are still present (wobbly windows).
View 9 Replies
View Related
May 1, 2011
I did a clean install of 11.04 and I have experienced that my separate X-screen does not have the program-name bar with the minimize, close-buttons etc. It's my third monitor is a separate X and it does not really work since I cant close programs, maximize windows or move them around. I cant even write anything on it. The first two monitors work great as one X-screen, just as they did in 10.10. Ubuntu Classic, no Unity. Two monitors (one X) on a ATI HD6970 One monitor (the X-screen that doesn't work properly) on a ATI HD4870
View 9 Replies
View Related
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
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
View Related
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
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
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
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
May 11, 2010
Info about session timeout.
I use tmout = 15 min in my /etc/profile (along with readonly tmout). i have some issues i need to address, looking for ideas.
1. what is considered a idle "session" ?
2. if i & a process to the background and do nothing is this a idle session?
3. if user uses su to a higher level, are there now two sessions? is the tmout for user suspended until su user time outs or leaves su session?
4. i have some users who will run long sql queries. is there a workaround to have the session remain active until process has finished?
View 3 Replies
View Related
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
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
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
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
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
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
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
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
Aug 24, 2010
I use ssh via KDE 4.4.3 konsole to connect to a 2.6.28-18-generic Ubuntu SMP machine,on which I use vim 7.2 and screen 4.00.03jw4. Within a screen session, the background color persists on the screen session even after closing vim. I dont know if this is a konsole or bash or screen or vim colorscheme problem.
View 1 Replies
View Related
Sep 11, 2010
When I start a screen session over SSH, I can edit and save files from within the screen session before I log out of the SSH session. But after I log out and log back in, I find that the screen session has lost write privileges, so that I can no longer edit or create any files, even within my home directory. How do I prevent this from happening?
View 1 Replies
View Related