You are not logged in.

#1 2008-01-24 05:29:13

omegainstigator
Member
Registered: 2007-08-18
Posts: 4

[Solved] About Bash and background processes

I'm curious if it is possible to bring a rogue process to the foreground.

For example:

$ wget google.com &
$ exit

And thus the program is still running but I have no idea as to how far along it is. Any thoughts, or shall I get into the habit of using screen more often?

Last edited by omegainstigator (2008-01-24 18:43:49)

Offline

#2 2008-01-24 11:36:16

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

Re: [Solved] About Bash and background processes

dtach might help. It's in AUR.

Offline

#3 2008-01-24 11:38:41

Basn
Member
From: Stockholm
Registered: 2007-08-13
Posts: 47

Re: [Solved] About Bash and background processes

fg ?

Offline

#4 2008-01-24 18:39:32

omegainstigator
Member
Registered: 2007-08-18
Posts: 4

Re: [Solved] About Bash and background processes

fg only accepts job numbers, and if the terminal is exited while the job is running fg is no longer useful.

I believe that dtach has a good chance of being what I'm looking for. Now I just have to figure out how deal with sockets.

Very thanks.

Offline

#5 2008-01-24 19:13:11

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

Re: [Solved] About Bash and background processes

I once used it all wrong by omitting /tmp in the socket name.

Use it like this dtach -n /tmp/rt rtorrent and at any time dtach -a /tmp/rt.
And Ctrl+\ to "detach" it again.

I consider it quite important for such a persistent app like rtorrent, you never know when you have to close down X.

Offline

Board footer

Powered by FluxBB