(Sorry if it's a duplicate post - it's been 5 minutes and the first 
hasn't shown up yet... usually only takes a minute at most...)

I can see a couple ways:

first, while the process is running hit ctrl-z (I think that's right), 
which should background the process.  Then switching to your console use 
the fg command.  The problem here though is that your bash session in X 
is a child of your logged in X session (I think), so is terminated when 
X stops.  So I don't think this will work - but I haven't tested it either.

Second, and I *KNOW* this will work - use screen.  You'll probably have 
to install it - most distros don't include it.  Once installed, open up 
your x-term, and type in "screen".  If it presents you with a command 
prompt, it's working.  Start your process, then do "ctrl-A then D" (hope 
I remember that right) which will exit the screen session and return you 
to your usual prompt.  Close your x-term. The process is still running. 
  Then in your console do a "screen -r" which will reconnect to the last 
session.  Your console should reflect whatever has been happening with 
the process.

I use the screen command all the time to remotely start long compiles on 
the Gentoo server(s) I manage, then come back to them later (like the 
next day or two).  This way I can safely shut down the workstation I 
started the command from, yet know the processes are working fine.

I've even heard that you can get two screen sessions running in a split 
screen type mode in a single console...  But I've never had a need for 
that...

HTH.

Shawn
Jesse Kline wrote:
> How do I background a job in an x-terminal, and have it resume in a
> console so that I can restart the x-server without stopping the job?
> 
> TIA,
> 
> Jesse
> 
> 
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
> 
> 



_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to