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
ADVERTISEMENT
Jan 27, 2011
I am a linux newbie. I have a situation where I need to send a command line -X command to a screen session owned by root from a nonprivliged account. The command is executed by a shell script, which in turn is executed from a PHP script. Is there a way to make this work?
View 3 Replies
View Related
Apr 12, 2010
hypothetically speaking, can i write a script in which a telnet session is opened and then some more commands are forwarded to that session?
View 4 Replies
View Related
Nov 30, 2010
reason my Debian 5 system will not stop printing blank pages. I've got the CUPS system installed, and I've gone to the control page and canceled everything. I've also turned the printer off and restarted it several times. Every time it comes back online it starts printing blank pages again. My paper does not need to be heat treated. It's fine as it is. So, how to I stop this waste of electricity and printer MTBF? What else might be sending commands to the printer besides the CUPS system?
View 2 Replies
View Related
Feb 7, 2010
finally i found the script for telnet automated login session...<<Mod edit: questionable link removed>>
View 4 Replies
View Related
Jul 4, 2010
out of no where it seems ubuntu no longer wants to cooperate when suspending/hibernating. the screen will just turn to a black screen without shutting down. each time i have to maually power down my laptop.
View 1 Replies
View Related
Aug 4, 2010
I am searching for a way to run multiple commands at boot time using the gnu screen utility.
A solution could be:
But the result would be many sessions, each one with just one child. What I need is just one session with many children, one child per command.
View 2 Replies
View Related
Mar 3, 2010
I just have one question that is it possible to send same command at the same time to all windows in screen on Linux.
View 4 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
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
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
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
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
Nov 26, 2009
what is the command for:
locking the screen
creating a new folder
log out
on the shell?
View 3 Replies
View Related
Jan 13, 2011
Cant type anything when i attach to my screen by typing screen -r. It doesn't even say neokyle@server, the only thing i can get it to let me do is detach. I cant even kill it.
View 2 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
Feb 23, 2010
I'm just installed ns 2.31 in my cumputer:fedora 12 (this is the first time working with ns2 and fedora) but I don't know commands to run an example of tcl script and show the graph in my screen.
View 9 Replies
View Related
Oct 7, 2009
I'm running a Counter Strike 1.6 Game server on my centos 5 VPS. I can get it to run by simply switching to the directory, then doing: ./hltv Now, when I do that, it obviously closes when I exit Shell. So I do the following and it gives me errors then. screen -A -m -d -S hltv ./hltv My question is, do I need all of those commands after screen? I just simply want it to not close once I exit Shell.
View 5 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
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