LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-19-2007, 12:58 PM   #1
Vor Kragresh
LQ Newbie
 
Registered: Apr 2007
Location: Monticello, KY.
Distribution: Slackware 11
Posts: 10

Rep: Reputation: 0
Running a program as a background daemon?


Hello again all,
I am interested in a specific item. Let us say I am running Bitchx on my home system and doing it through ssh from a work system. When I log out from work, Bitchx exits. Is there a way to run the program (I assume as a background daemon) so that it will continue running when I logout from work...and be reaccessable later when I login at home?
 
Old 04-19-2007, 01:05 PM   #2
chefkoch
LQ Newbie
 
Registered: Mar 2007
Posts: 19

Rep: Reputation: 0
If you haven't already, install screen and read the man page. It's a kind of console window manager that does exactly what you want.
 
Old 04-19-2007, 01:25 PM   #3
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
screen or dtach (or prolly million+1 other progs.)
 
Old 04-19-2007, 02:38 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Cant you just run 'bitchx &' ?
 
Old 04-19-2007, 03:32 PM   #5
silent_ion
LQ Newbie
 
Registered: Jul 2006
Distribution: Debian GNU/Linux
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by H_TeXMeX_H
Cant you just run 'bitchx &' ?
It will be work only in conjunction with nohup.
e.g.
Code:
nohup bitchx &
 
Old 04-19-2007, 03:37 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
oh yeah, ok then
 
Old 04-20-2007, 06:38 AM   #7
Vor Kragresh
LQ Newbie
 
Registered: Apr 2007
Location: Monticello, KY.
Distribution: Slackware 11
Posts: 10

Original Poster
Rep: Reputation: 0
I had never head of any of those, but will be looking into all of them as alternatives. Thanks.
 
Old 04-20-2007, 09:18 AM   #8
Netizen
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Slackware and Ubuntu
Posts: 355

Rep: Reputation: 30
Like mentioned above, Screen is what you want. I use it for this purpose myself.
 
Old 04-20-2007, 10:48 AM   #9
hubbruch
LQ Newbie
 
Registered: Apr 2007
Location: Europe
Distribution: Slackware
Posts: 14

Rep: Reputation: 0
/detach

Hi,

When you're running BitchX this (built in) function will set it as a background process and you'll end up in your shell again:
Code:
/detach
To wake it up again use:
Code:
$ scr-bx
But the best thing to use is screen. Because if you're ssh'ing into your box and the connection drops for some reason, it'll all be lost. However, if you're using screen, you can safely resume whatever you were doing even if you get a connection drop

Hope this makes sense!


Quote:
Originally Posted by Vor Kragresh
When I log out from work, Bitchx exits. Is there a way to run the program (I assume as a background daemon) so that it will continue running when I logout from work...and be reaccessable later when I login at home?

Last edited by hubbruch; 04-20-2007 at 10:52 AM.
 
  


Reply



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
running java program at startup in background Maverick1182 Linux - Newbie 4 09-19-2006 06:09 PM
running a program in background of X using & Dachy Linux - General 1 09-13-2005 11:38 AM
running rsync from a background c program BassJunkie Programming 2 08-26-2005 05:38 AM
gdm as a background daemon lukebeales Linux - Software 2 08-03-2005 08:37 AM
Running a program in the background - SSH ziggo0 Linux - Newbie 4 03-05-2005 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:33 AM.

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