Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Remote process control

  Date: Dec 25    Category: Unix / Linux / Ubuntu    Views: 309
  

If I start an application (say, mp3blaster) on a remote pc
using ssh, how can I keep that app running after I've logged
out of the ssh session?

I have an inexpensive ($79!) PentiumIII box that I want to
use as a streaming audio appliance using (K,X)Ubuntu - no
k/v/m, just a network cable and LineOut to the audio system.
I can power up with WakeOnLan, and start and stop apps just
fine with ssh sessions, but once I log out, all the apps
started with that session die. I can envision logging in
with a second ssh session as root, and telling the app,
"You're free now!" but I don't know how. Anyone?
.

Share: 

 

4 Answers Found

 
Answer #1    Answered On: Dec 25    

how about 'forking' the app into the background??

app&

Never tried this myself as I usuall just leave the ssh session open.
I am doing an RDP to a P3 windows machine to run a 'pic' application that has
no Linux version 'yet'.

 
Answer #2    Answered On: Dec 25    

try using "screen"
create a screen session before run a command
then just detach the screen before logout
when you re-login, just re-attach the screen you've created. then you
can stop the process or do something else. log out ( not detach the
screen ) when you're finished.

 
Answer #3    Answered On: Dec 25    

That sounds pretty much like the goal. Here's where my
newbiness is exposed: I can't figure out how to do that.
mp3blaster is interactive and grabs control of the console,
so I'd have to bring up a second console screen on the local
machine. This is easy enough but I don't know what commands
to issue.


> app&
>
>Never tried this myself as I usuall just leave the ssh session open.

That does work, and eliminates the whole problem; but I
want to be able to shut down the local pc... and - it has
become a Project.

 
Answer #4    Answered On: Dec 25    

Have you tried the 'forking' and shutdown your local computer to see if the
program continues to run?

If this needs to run all of the time would it be better to start this program
via a cron job when the machine boots. I know this can be done as I have a
Linux machine (not Ubuntu) that does this without a login and without kb,
mouse, monitor.
This should be a command added to your runlevel section in like rc.local,
don't have my Ubuntu running at this time (switch OS's).

 
Didn't find what you were looking for? Find more on Remote process control Or get search suggestion and latest updates.




Tagged: