LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Switching between different shells, application stops. (https://www.linuxquestions.org/questions/linux-software-2/switching-between-different-shells-application-stops-620962/)

swamprat 02-13-2008 08:35 PM

Switching between different shells, application stops.
 
Hello,

If I'm running an application for like a long find command and I do a cntl-z I notice that what was running stops and I enter a new shell where I can enter commands etc,

When I return using the FG command what was running there doesn't seem to start running again.

I would like to know how I could switch to a different shell and still have what was running in the previous shell keep running.

Can this be done and if so how?

I a newbie using Centos5.0.

Any help with this will be appreciated.

Thanks

Emerson 02-13-2008 09:05 PM

Try screen. You can log out, drive into another city, log in over SSH and it's still there.

Tinkster 02-14-2008 02:23 AM

Quote:

Originally Posted by swamprat (Post 3056343)
Hello,

If I'm running an application for like a long find command and I do a cntl-z I notice that what was running stops and I enter a new shell where I can enter commands etc,

When I return using the FG command what was running there doesn't seem to start running again.

I would like to know how I could switch to a different shell and still have what was running in the previous shell keep running.

Can this be done and if so how?

I a newbie using Centos5.0.

Any help with this will be appreciated.

Thanks

A Ctrl-z pauses execution. To have the job running
in the background use bg<enter> after the Ctrl-z.

Or use screen, as Emerson suggested.


Cheers,
Tink


All times are GMT -5. The time now is 06:31 PM.