LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2009, 06:58 PM   #1
thecyborg
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
Is there another (better/flexible) program then screen


Hi!

The reason why i'm searching for such a program is, because i want to run a process in background, like u can with GNU prog. called SCREEN. The problem is, with screen i cant (or dont know how) to terminate a specified screen. I've read the manual of screen and not found any clue how could i terminate a specific created screen session.. Or like, create a screen session with a name and then kill the session providing the name.

Any help here?

Thnx!
 
Old 08-16-2009, 07:14 PM   #2
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.2
Posts: 1,123

Rep: Reputation: 262Reputation: 262Reputation: 262
There are a few ways to kill a screen session.

From within a screen session, if you're at a prompt, you can simply exit:

Code:
mrclisdue@localhost:~$ exit
Also, from within a screen session, you can key:

Code:
C-a C-k (the "C" denotes the <ctl> key)
You can kill a screen session from outside of the screen:

Code:
mrclisdue@localhost:~$ screen -r <screen pid, name, or tty> -X kill
or mrclisdue@localhost:~$ screen -S <pid, name, tty> -X kill
or, if you know, or can determine the pid of the screen, you can issue the kill command.

cheers,
 
Old 08-17-2009, 02:56 AM   #3
thecyborg
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Well, yeah, i know the ways how to kill screen manualy yes. But i would like to make a system 'in the back' that would do this. So that's why i need to get somehow the sessions ID to kill it.

Also combining with php, so like with a button click u start a process in the background and with another klick, you kill this session made.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Full screen screen shots -- Screenshot program with hotkeys studpenguin Linux - General 1 03-10-2009 11:58 PM
How do I get flexible screen resolution options? studpenguin Linux - General 12 02-21-2009 08:30 PM
LXer: Wyneken: A powerful, flexible notetaking program LXer Syndicated Linux News 0 07-17-2007 04:02 AM
Do I need something more flexible than Firestarter? rickh Linux - Security 3 01-05-2006 09:57 AM
most flexible distro puishor Linux - General 2 06-26-2005 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration