Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

How do I resume a suspended process in a *different* shell?

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
fRIOUX
n00b
n00b
Posts: 21
Joined: Wed Jul 13, 2005 10:08 pm

How do I resume a suspended process in a *different* shell?

  • Quote

Post by fRIOUX » Thu Aug 17, 2006 5:38 am

Often I have the problem of starting a large emerge and get halfway through and want to log out of X, or I have run the emerge in the console and I want to see the status in X. But I can't because I didn't think ahead and start the thing in a screen session. Is there a way that I can suspend (Ctrl-Z) and then resume (fg %1) from a screen session? I have wanted to know how to do something like this for a long time, so if someone know's fill me in on the secret!
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Thu Aug 17, 2006 6:11 am

not that I know, but you can still stop it with 'CTRL+C' then when you're ready again, run 'emerge --resume'


just be aware, that you should avoid stopping emerge process when it's copying/deleting files to the filsystem
Top
Janne Pikkarainen
Veteran
Veteran
User avatar
Posts: 1143
Joined: Tue Jul 29, 2003 6:36 pm
Location: Helsinki, Finland
Contact:
Contact Janne Pikkarainen
Website

  • Quote

Post by Janne Pikkarainen » Thu Aug 17, 2006 7:39 am

fRIOUX: But just to be sure not to break anything, you should do the same I did in the past: I changed by personal habits. :D Nowadays ALWAYS when I touch emerge -- even if just emerge --sync, I start it in screen session. Just in case.
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Top
beatryder
Veteran
Veteran
User avatar
Posts: 1138
Joined: Fri Apr 08, 2005 12:27 am
Contact:
Contact beatryder
Website

  • Quote

Post by beatryder » Thu Aug 17, 2006 8:05 am

emerge screen

then learn how to use it :D
Dont make it idiot proof, make it work.
Neucode.org
<suppressed key>
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Thu Aug 17, 2006 9:35 am

you obviously did not read his post... :roll:
Last edited by truc on Thu Aug 17, 2006 2:09 pm, edited 1 time in total.
Top
nevynxxx
Veteran
Veteran
Posts: 1123
Joined: Wed Nov 12, 2003 1:34 pm
Location: Manchester - UK

  • Quote

Post by nevynxxx » Thu Aug 17, 2006 1:34 pm

1) Create a script that starts a screen session, then runs the emerge within it, then alias that script to emerge....

2) set your shell to the screen executable...

3) set your bash.rc to start screen last....

Any of those sound reasonable?
My Public Key

Wanted: Instructor in the art of Bowyery
Top
beatryder
Veteran
Veteran
User avatar
Posts: 1138
Joined: Fri Apr 08, 2005 12:27 am
Contact:
Contact beatryder
Website

  • Quote

Post by beatryder » Thu Aug 17, 2006 2:19 pm

truc wrote:you obviously did not read his post... :roll:
Correct, my bad :oops:
Dont make it idiot proof, make it work.
Neucode.org
<suppressed key>
Top
fRIOUX
n00b
n00b
Posts: 21
Joined: Wed Jul 13, 2005 10:08 pm

  • Quote

Post by fRIOUX » Thu Aug 17, 2006 6:37 pm

nevynxxx wrote:1) Create a script that starts a screen session, then runs the emerge within it, then alias that script to emerge....

2) set your shell to the screen executable...

3) set your bash.rc to start screen last....

Any of those sound reasonable?
Yeah, that's what I generally do really. I have been using one computer all summer and when a term opens it automatically runs 'screen -x main' on start, but I was just working on a different computer and I hadn't started in a screen session. Thanks for the help anyway. I was just really wondering if there was a UNIXy, configless way to fix this issue if I didn't do things right in the beginning.
Top
Janne Pikkarainen
Veteran
Veteran
User avatar
Posts: 1143
Joined: Tue Jul 29, 2003 6:36 pm
Location: Helsinki, Finland
Contact:
Contact Janne Pikkarainen
Website

  • Quote

Post by Janne Pikkarainen » Thu Aug 17, 2006 6:38 pm

fRIOUX wrote:I was just really wondering if there was a UNIXy, configless way to fix this issue if I didn't do things right in the beginning.
I wonder if retty could help you in those cases.
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Top
wizkid
n00b
n00b
User avatar
Posts: 54
Joined: Thu Sep 23, 2004 1:01 pm

  • Quote

Post by wizkid » Thu Aug 17, 2006 10:26 pm

I always just use screen. It's easier, and if it's a big emerge, I can ssh in and monitor it from work, capture a log file, etc. It's your best option.

Screen will spoil ya.
Linux Rules --- NT (And XP) Drools
Top
hegga
Apprentice
Apprentice
Posts: 210
Joined: Wed Jun 04, 2003 10:30 am
Location: Norway
Contact:
Contact hegga
Website

move job inside screen

  • Quote

Post by hegga » Fri Oct 05, 2007 1:28 pm

I've started a job outside screen, but have found out that it's going to take a while to finish
and want to move inside a screen shell.

Does anyone know how I can achieve that?
hegga
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

  • Quote

Post by desultory » Sat Oct 06, 2007 7:21 am

Merged the above post.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sun Oct 07, 2007 2:01 am

Do you have to have to move it to screen?

If you just didn't want to leave the xterm open, you could probably suspend the emerge process, background it and then disown it.
"You have to invite me in"
Top
Post Reply

13 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic