Ubuntu :: Automatically Run A Process In A Screen Session And Then Detach And Quit Terminal

Jul 24, 2010

There are often times when the best way to launch an application is from the terminal, but it is a graphical application and after it is launched the terminal is useless.

Examples of places where a terminal is convenient are when a process starts lots of child processes and is also unstable; you can be sure to kill all of its children simply by using Ctrl-C at the terminal. Also it allows me to read program output and to set up the terminal environment to be optimal for the application (for example "unset LIBGL_ALWAYS_INDIRECT")

With GNU screen, I can get around the hassle of having a terminal window open by using something like the following in a terminal window:

Code:
screen
my_command
Ctrl-A d

and then I can close the terminal and the program will keep running. Then I just type "screen -r <Tab>" (the tab will get me my screen session if there is only one such session) in any terminal window, even a tty, and I can get the screen session back and use Ctrl-c or something.

So my question is, is there a way to do this automatically so that a launcher or script will start a screen session, inside that screen session start a process, and then detach from that screen session without me having to manually open and close a terminal and type the commands?

View 2 Replies


ADVERTISEMENT

Ubuntu :: Can't Turn On Terminal Bell In Gnome-terminal Using Remote Screen Session With Irssi

Nov 6, 2010

I'm using 10.04, and gnome-terminal GNOME Terminal 2.30.2 . I have irssi running on screen session on remote host. And I've been struggling for quite many days to configure it to produce either visual feedback or ring terminal's bell when I receive a private message or one of those that are highlighted.

My compiz settings window in General tab has 'Audible bell' checked.

My GNOME terminal has 'Terminal bell' checked.

I also added 'set bell-style audible' to my ~/.inputrc

And I also tried to manually load pcspkr module into my kernel.

No of the above helped or at least I haven't been able to notice any difference.

I also used some commands for irssi to produce bell sign.

View 2 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

Debian Multimedia :: How To Quit Cinnamon Desktop And Get X Session

Jul 3, 2015

I have an app I've developed in Qt 5.3.1 that has display problems when using 3D accerelation in VirtualBox using Debian Cinnamon. It seems to happen with Cinnamon in any Linux distro I've tried. Once I boot into Debian Cinnamon, how can I stop my Cinnamon session (I think I must start with Ctrl+Alt+F1) , then get a straight X session to run my app without Cinnamon, with 3Dacceleration in VirtualBox?

View 6 Replies View Related

Software :: Redirect ALL Terminal Output To File And Screen (for Entire Session)?

Jul 6, 2010

Is there one command that will let me record an entire terminal session (with any possible errors) to a text file while also seeing all output on screen too? I know it can be done for individual commands, but I'm looking to do this for an entire session where the individual commands will be normal (i.e., not piped into tee, etc.). It would be even better if the command prompt is captured too. The obvious utility of this makes me think someone surely has come up with a solution long ago (probably in the 60's).(I'm sure it goes without saying, but subsequent output in that session should be appended to the file. The file should contain the full history, with all output and errors, of the session.)

View 9 Replies View Related

Ubuntu :: Can't Quit Motion In Terminal / Way To Do

Jul 26, 2011

I have installed this but it is command line and i don't know how to quit the thing. Motion is command line. It keeps capturing unless i shutdown the computer. Very frustrating. I also would like help to understand how to configure Motion if someone can fill in the information gaps on this website
http://www.chriswpage.com/2009/05/se...04-and-motion/
I have also tried zoneminder but it does not want to run for some reason. I have gone to the zoneminder forum and asked but i don't seem to get very far. They got me to download a zoneminder/ubuntu live cd. I used that but it wasn't seeing the camera. Whereas on the distro i have right now cheese, kamoso so see it.
I can live stream with Motion within firefox but i need the motion capturing part configured and without something that will quit Motion the app it's a bit useless. Would appreciate some advice as i have been struggling a long time trying to get this security thing happening

View 9 Replies View Related

General :: Can't Quit Terminal Command - Grep Some_word?

Sep 5, 2010

After typing "grep some_word" on terminal 6, the system doesn't do a thing, just lets me type endlessly. I've tried "Esc", "q" , [CTRL] + x, "exit" and no luck. I bet I'll kick my ass when you tell me but at the moment I can't figure it out. Rebooting would probably solve the problem but there must be a better way.

View 5 Replies View Related

Ubuntu :: Blank Screen And Xorg - Compiz Effects Quit Working

Nov 28, 2010

I have a problem with Xorg, I am not sure if the black screen is related, but sometimes when I am just using the computer, with heavy processor and memory, but sometimes not, but the title bars to the programs disappear, my compiz effects quit working, and the cairo dock becomes unusable, so I cannot switch windows, but I can close them using 'File > Close" to access the windows under the ones on top, and to fix it I have to switch over to a terminal "Ctrl + Alt + F2" and log into that to kill Xorg by "sudo top" and killing it with the PID.

And the Blanking Screen, I am just doing usual programming with Bluefish, Eclipse and the terminal, and the screen will just go black, and won't come on if I wiggle the mouse, press a key on the keyboard or turn it off and back on, the status light on the monitor stays green, and doesn't go to orange as if it were unplugged or the computer went idle, so I know that it is still communicating with the monitor, but the way I fix this is I have to manually power down the machine via the power button and turn it back on and it works normally for a while.

View 9 Replies View Related

General :: Process Killed During SSH Session

Jul 31, 2009

I've always wondered whether my process kills when I am in the process of doing something during my ssh session. For instance, I ssh from my local box to dev-formbox and did an scp transfer to another remote host. All of the sudden, I lost ssh connectivity on my local box due to network issue. Will the scp process (or any of my process that I am currently doing) kill also once I loose the ssh session?

View 1 Replies View Related

Ubuntu :: Cancel All Pending Print Jobs Automatically When Loging Out Of A Session

Dec 14, 2010

Sometimes I want to keep something in PDF files, so I print to the PDF "printer". However, if I inadvertetnly forget to check the PDF creation and rather take the real printer (which is usually only powered up, when I really want to print something), printing goes to the real printers queue and nothing happens ... until, possibly some sessions later, I want to print something (on paper rather than PDF) and power up the printer.

Then all inadvertent garbage comes first and chances are big, that the printer gets junk during power up or reconnecting the cable to the computer and then the whole thing is wasting even more paper, since escape-sequences sent to the printer get chopped and misunderstood by the printer.

In order to stop this alltogether, I am looking for a mehtod, to automatically flush the whole printing queue every time when I log out of my ubuntu session.

I know, there is a command lpq to tell which print jobs are pending, I also know the command cancel -Umyname -a, but this requests for my password. I want to kill all those incomplete or pending print jobs automatically.

And how do I hook such a command script into the logoff or shutdown sequence?

View 1 Replies View Related

Fedora :: Disowning A Process Started In A Ssh Session?

Sep 10, 2009

I started a process in a PuTTY session that I want to survive after I've disconnected. I issued a `disown` on the process (forgot to add the -h option). I've attached a small summary of the commands issued within the PuTTY session as well as an excerpt from the pstree (essentially switched user contexts twice, issued command, suspended program, disown'ed, resumed program

Command summary

Code:
> su -
> ...
> su -l <useraccount>
> ./myprogram

[Code].....

View 2 Replies View Related

General :: Keep A Process Alive After Closing The Putty Session?

Jan 16, 2010

I am using putty to interact with Linux server. I have started a process using putty.
The process is running and will take 5-6 hours. I want that process to keep running after I close the putty session. How can I keep that process alive after closing the putty session? I do not want to keep the computer ON all the time. Is there any way to do this?.

View 5 Replies View Related

General :: How To Find Apache Client Session Process Id?

Apr 21, 2010

I am running Montavista distribution. I have an Apache server running in my machine. Now I want to know how many clients are connected to the Apache server and what are the process ids for those sessions. What is the command to do that?

View 5 Replies View Related

OpenSUSE Install :: Can't Login / Checkproc: Can Not Get Session Id For Process 9839?

Jan 12, 2010

I was working normally and the GUI just failed, all I could still see were any open windows. I rebooted the machine from tty1 and now I can't login anymore under my normal user accounts.

I enter my credentials, it appears to login, and immediately goes back to the login screen. Note that under tty1 I can still login with my user account and do everything.

I can still login with root in the gui.

/var/log/messages says this

Code:machine checkproc: checkproc: can not get session id for process 9839!

View 9 Replies View Related

Software :: Process Running Even After Telnet Session Has Been Deliberately Ended?

Mar 28, 2011

I have ubuntu 10.04 & I telnet to windows vista. Even if I create a hidden process [URL].. from batch file . It seems the process gets killed when I end connection at port 23 to host. Maybe , the hidden process created is still child of current telnet session so tree is killed as session ends. Is there a way to keep process running even after telnet session has ended ?

View 6 Replies View Related

Ubuntu :: Close A Session From The Terminal?

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

Software :: Does Open Process Continue To Work If Putty Session Is Closed

Apr 14, 2010

I am downloading a big file on linux VPS, and I am connecting remotely via Putty to do it? Once I initiated the wget command to download the file, if I close the putty window, will wget continue to download the file in the background even though the session is technically closed?

View 11 Replies View Related

Ubuntu :: Attach / Detach Usb Device Remotely?

Sep 7, 2010

I have a usb wimax wireless adapter. Some times it stops responding to commands and I have to detach and attach it again phisically. My question is: is it possible to do equvalent operation remotely, over ssh like in case with mounting/unmounting filesystems?

View 5 Replies View Related

Ubuntu :: Detach Remotely Run X App And Leave Running?

Jan 3, 2011

I found this:[URL]

I'd like to be able to re-attach as well. Anybody know if this is possible and, if yes, how?

View 2 Replies View Related

Ubuntu :: Boot Straight Into A Terminal Session?

May 15, 2011

I'm using a low spec machine and want to run it 'headless', so I don't need a GUI and want to conserve resources.How do I boot straight into a terminal session, rather than a GUI?

View 1 Replies View Related

General :: Start Process Automatically?

Jul 7, 2010

I want to start process automatically For Ex:- To start snort it need the root user, So here I need a script which will start snort automatically without asking the root user or password.So that I can start snort from anywhere as same as root

View 3 Replies View Related

Ubuntu :: Screen Goes Black During Boot,"quit Splash" Off?

Jul 6, 2011

I disabled quit splash in the grub file.However during boot the screen goes black then after a while it goes back to the text outputIs this fixable and is this caused by plymouth.

View 9 Replies View Related

Fedora :: System Freeze On Usb Detach?

May 30, 2011

I've problem with fedora 15. If you detach usb disk without umount it before, system freeze.

View 4 Replies View Related

Ubuntu :: Failsafe Terminal - Session Only Lasted Less Than 10 Seconds

Aug 8, 2010

when i did that, I turned it back on, and well I had this huge huge problem, i've made a few threads about it. So I had to go through a manual FSCK. I did all that and I do have the cd, although when I try to boot off of the live cd, it gives me a bunch of buffer errors, I have a thread or two about that problem too. So i can't boot off a live cd and fix it through that.

Now i've gotton to the point where I can get to the login screen, it looks normal and everything but when I log into a normal session it greets me with this Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix this problem. View details (~/.xsession-errors file)

Code: /etc/gdm/Xsession: Beginning session setup... Setting IM through im-switch for locale=en_US. Start IM through /etc/X11/xinit/xinput.d/all_ALL linked to /etc/X11/xinit/xinput.d/default. mkdtemp: private socket dir: Permission denied

So i have no idea what that all means but i did understand failsafe terminal. So when I go to the failsafe terminal to try and fix things, I'm completely lost. I don't know what to type at all. I'm a windows user most of the time.

View 3 Replies View Related

Ubuntu :: GEdit Process Won't Automatically Stop When Window Is Closed?

Jan 24, 2011

I recently upgraded to Ubuntu version 10.10 64-bit and since then closing GEdit won't stop the process automatically when the window is closed and I have to kill it manually. I didn't have this problem with version 10.04 (also 64-bit) and I didn't change any settings after the upgrade.

View 2 Replies View Related

Debian :: How To Start X Session In New Terminal

Apr 20, 2015

System: Debian 7 Wheezy amd64 - Gnome classic - gdm3

I'm trying to create a new gdm session in tty8, so I can switch between tty7 and tty8 running simultaneously.

How can I accomplish this? I found some website suggesting to run startx and also startx gnome-session -- :1 vt8 Both result in a black screen, blocking the overall system, not allowing me to go to tty1 nor any tty. I have to run REINSUB to restart the system.

# I don't know if tty is the exact term to refer to the CTRL+ALT+Fx virtual terminals.

View 6 Replies View Related

General :: Automatically Restart A Process Every Few Hours?

Dec 30, 2010

I'm having a VPS using Ubuntu 10.4 and i would like a guide on how to restart apache2 process every few hours (a time determined by me).

View 11 Replies View Related

General :: Error - The Session Manager Initialization System Process Terminated Unexpectedly With A Status

Jun 5, 2011

I installed slackware 12.1 from files i downloaded and converted to cd (images). There are six "disks" i downloaded from the slackware site and converted to images via a homemade .cmd in windows xp and then burned using imgburn.

I partitioned my hd (canibalized from an acquaintance's emachine and connected it to my desktop (1G ram, 2Ghz processor). Booted from disk 1 and fomatted the 80G HD for 2 partitions of linuxswapable at 2G apeice and 2 partitions of bootable linux. (Because i want to try another distro later). I ran the setup installing most everything and all seemed to go well. After i exited setup and restarted, it identifed the cd/hd as normal and then went into some sort of recovery mode with the emachine logo call pcangel, after which it tells me.

STOP: c0000021a (fatal system error) The session manager initialization system process terminated unexpectedly with a status of 0xc000003a (0x00000000 0x00000000). the system has been shut down. So, is this indeed an xp error message, and if so, why am i getting it after formatting everything?

View 3 Replies View Related

Ubuntu :: Command Can Enter Into The Terminal Or Over An SSH Session - Delayed Reboot

Jan 29, 2011

Is there a command i can enter into the terminal or over an SSH session to make an Ubuntu system reboot a few hours later? Sometimes I want to reboot my server and it should take place in the middle of the night when I'm asleep.

View 4 Replies View Related

Ubuntu :: Way (In The Terminal Or Script File) To Change The Session During Login?

Jun 29, 2011

Is there a way (In the terminal or script file) to change the session during login? The login screen I have in Ubuntu 10-10 only allows for name and password, no other options. Is there a way to change the login screen? I downloaded some new login screens but don't know how to change the current gnome.desktop session to something else and I DON'T want to get stuck in another login "Twilight Zone"

View 4 Replies View Related







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