public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* backgrounding a running wget job
@  Gregory Nowak
   ` Tyler Littlefield
   ` Farhan
  0 siblings, 2 replies; 7+ messages in thread
From: Gregory Nowak @  UTC (permalink / raw)
  To: speakup

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.

I have a running wget job, which I started interactively, without the
- -b flag, so I could look at the progress. However, I now need to put
the wget job into the background, so I can logout. Is there a safe way
to do this while it's downloading? I was hoping I can use screen here,
but after reviewing the screen man page, it looks like screen can
attach to, and detach from existing screen sessions, rather then a
simple wget running from bash on the console itself if that makes
sense. Am I wrong here, and can screen actually do what I want? Is
there another way to do what I want to do?

When I log back in, I'd like to be able to bring wget back into the
foreground again, so I can once more keep an eye, or should I say an
ear, on the progress. Any tips would be much appreciated. Thanks in
advance.

Greg


- -- 
web site: http://www.romuald.net.eu.org
gpg public key: http://www.romuald.net.eu.org/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)

- --
Free domains: http://www.eu.org/ or mail dns-manager@EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEqblW7s9z/XlyUyARAq40AKCFTECbeHF0E6/Y8VxR0SwNTjRQxgCaA77N
m1yPhc1IO1TJM0MgSAfgUeI=
=avjP
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: backgrounding a running wget job
   backgrounding a running wget job Gregory Nowak
@  ` Tyler Littlefield
   ` Farhan
  1 sibling, 0 replies; 7+ messages in thread
From: Tyler Littlefield @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Greg,
I use screen all the time,
I just  start screen, start wget, and then exit my ssh client.
HTH,

~~TheCreator~~
website:
http://tysplace.shaned.net
msn:
compgeek134@hotmail.com
aim:
st8amnd2005
skype:
st8amnd127
moo coder/wizard and administrator

----- Original Message ----- 
From: "Gregory Nowak" <greg@romuald.net.eu.org>
To: <speakup@braille.uwo.ca>
Sent: Monday, July 03, 2006 6:41 PM
Subject: backgrounding a running wget job


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all.
> 
> I have a running wget job, which I started interactively, without the
> - -b flag, so I could look at the progress. However, I now need to put
> the wget job into the background, so I can logout. Is there a safe way
> to do this while it's downloading? I was hoping I can use screen here,
> but after reviewing the screen man page, it looks like screen can
> attach to, and detach from existing screen sessions, rather then a
> simple wget running from bash on the console itself if that makes
> sense. Am I wrong here, and can screen actually do what I want? Is
> there another way to do what I want to do?
> 
> When I log back in, I'd like to be able to bring wget back into the
> foreground again, so I can once more keep an eye, or should I say an
> ear, on the progress. Any tips would be much appreciated. Thanks in
> advance.
> 
> Greg
> 
> 
> - -- 
> web site: http://www.romuald.net.eu.org
> gpg public key: http://www.romuald.net.eu.org/pubkey.asc
> skype: gregn1
> (authorization required, add me to your contacts list first)
> 
> - --
> Free domains: http://www.eu.org/ or mail dns-manager@EU.org
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
> 
> iD8DBQFEqblW7s9z/XlyUyARAq40AKCFTECbeHF0E6/Y8VxR0SwNTjRQxgCaA77N
> m1yPhc1IO1TJM0MgSAfgUeI=
> =avjP
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: backgrounding a running wget job
   backgrounding a running wget job Gregory Nowak
   ` Tyler Littlefield
@  ` Farhan
     ` Gregory Nowak
  1 sibling, 1 reply; 7+ messages in thread
From: Farhan @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Hi.
If you want to do this process, type screen. start your wget job, hit control a then d log out, and when you want to bring your wget job up again, in the console type screen -x or -r respectivly.
personally, I use screen -x to bring my screen up, just because.
On 7/3/2006 at 23:40 Gregory Nowak said
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.

I have a running wget job, which I started interactively, without the
- -b flag, so I could look at the progress. However, I now need to put
the wget job into the background, so I can logout. Is there a safe way
to do this while it's downloading? I was hoping I can use screen here,
but after reviewing the screen man page, it looks like screen can
attach to, and detach from existing screen sessions, rather then a
simple wget running from bash on the console itself if that makes
sense. Am I wrong here, and can screen actually do what I want? Is
there another way to do what I want to do?

When I log back in, I'd like to be able to bring wget back into the
foreground again, so I can once more keep an eye, or should I say an
ear, on the progress. Any tips would be much appreciated. Thanks in
advance.

Greg


- -- 
web site: http://www.romuald.net.eu.org
gpg public key: http://www.romuald.net.eu.org/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)

- --
Free domains: http://www.eu.org/ or mail dns-manager@EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEqblW7s9z/XlyUyARAq40AKCFTECbeHF0E6/Y8VxR0SwNTjRQxgCaA77N
m1yPhc1IO1TJM0MgSAfgUeI=
=avjP
-----END PGP SIGNATURE-----

_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: backgrounding a running wget job
   ` Farhan
@    ` Gregory Nowak
       ` Ari Moisio
  0 siblings, 1 reply; 7+ messages in thread
From: Gregory Nowak @  UTC (permalink / raw)
  To: Farhan, Speakup is a screen review system for Linux.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the responses. Let me clarify my question though. From the
replies I'm reading, it seems the impression I've given people is that
I don't know how to use screen, and this I do know, at least well enough
to do what I've needed it for so far. My question concerning screen
was can I take a wget process already running in another standard
console, (I.E., no screen involved, just bash), and attach screen to
it without stopping it, or effecting its operation in anyway. As far
as I know, the answer to that question is no.

Anyway, I solved the problem by biting the bullet, hitting ctrl+c on
the wget job, launching screen, and starting the wget job over again
under screen this time, passing the -c flag to wget to continue a
partial download, and all seems to be working fine now. Then, I of
course detached from the screen session, and logged off.

Greg


On Mon, Jul 03, 2006 at 11:41:37PM -0500, Farhan wrote:
> Hi.
> If you want to do this process, type screen. start your wget job, hit control a then d log out, and when you want to bring your wget job up again, in the console type screen -x or -r respectivly.
> personally, I use screen -x to bring my screen up, just because.
> On 7/3/2006 at 23:40 Gregory Nowak said
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
- -- 
web site: http://www.romuald.net.eu.org
gpg public key: http://www.romuald.net.eu.org/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)

- --
Free domains: http://www.eu.org/ or mail dns-manager@EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEqf6r7s9z/XlyUyARAkdoAJ9GxieN+UmYcxdS6TEtuZc2QJHBMgCgxjha
q6fwlQ7fQliIxzCg6+m4xTY=
=rTOS
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: backgrounding a running wget job
     ` Gregory Nowak
@      ` Ari Moisio
         ` Tyler Littlefield
         ` Gregory Nowak
  0 siblings, 2 replies; 7+ messages in thread
From: Ari Moisio @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Hi!

  In theory this could be possible: you have to change wget's process group 
id to same as one of your screened shells. Unfortunately i do not know any 
tool to do this.

  If you use bash you can put wget background witht
  ^Z, bg  wget
and  detach it from current shell with
disown wget

  but if the wget is outputting continuously this may now work. There is 
afaik no way to get process bakc to foreground.


-- 
arimo

On Mon, 3 Jul 2006, Gregory Nowak wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Thanks for the responses. Let me clarify my question though. From the
> replies I'm reading, it seems the impression I've given people is that
> I don't know how to use screen, and this I do know, at least well enough
> to do what I've needed it for so far. My question concerning screen
> was can I take a wget process already running in another standard
> console, (I.E., no screen involved, just bash), and attach screen to
> it without stopping it, or effecting its operation in anyway. As far
> as I know, the answer to that question is no.
>
> Anyway, I solved the problem by biting the bullet, hitting ctrl+c on
> the wget job, launching screen, and starting the wget job over again
> under screen this time, passing the -c flag to wget to continue a
> partial download, and all seems to be working fine now. Then, I of
> course detached from the screen session, and logged off.
>
> Greg
>
>
> On Mon, Jul 03, 2006 at 11:41:37PM -0500, Farhan wrote:
>> Hi.
>> If you want to do this process, type screen. start your wget job, hit control a then d log out, and when you want to bring your wget job up again, in the console type screen -x or -r respectivly.
>> personally, I use screen -x to bring my screen up, just because.
>> On 7/3/2006 at 23:40 Gregory Nowak said
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
> - --
> web site: http://www.romuald.net.eu.org
> gpg public key: http://www.romuald.net.eu.org/pubkey.asc
> skype: gregn1
> (authorization required, add me to your contacts list first)
>
> - --
> Free domains: http://www.eu.org/ or mail dns-manager@EU.org
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
>
> iD8DBQFEqf6r7s9z/XlyUyARAkdoAJ9GxieN+UmYcxdS6TEtuZc2QJHBMgCgxjha
> q6fwlQ7fQliIxzCg6+m4xTY=
> =rTOS
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: backgrounding a running wget job
       ` Ari Moisio
@        ` Tyler Littlefield
         ` Gregory Nowak
  1 sibling, 0 replies; 7+ messages in thread
From: Tyler Littlefield @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

this could be coded, though I don't know if I would be the one to do it. My
workload is sorta heavy, but I might be willing to give it a shot if someone
would explain it.
~~TheCreator~~
website:
http://tysplace.shaned.net
msn:
compgeek134@hotmail.com
aim:
st8amnd2005
skype:
st8amnd127
moo coder/wizard and administrator

----- Original Message ----- 
From: "Ari Moisio" <arimo@netsonic.fi>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Sent: Tuesday, July 04, 2006 3:19 AM
Subject: Re: backgrounding a running wget job


> Hi!
>
>   In theory this could be possible: you have to change wget's process
group
> id to same as one of your screened shells. Unfortunately i do not know any
> tool to do this.
>
>   If you use bash you can put wget background witht
>   ^Z, bg  wget
> and  detach it from current shell with
> disown wget
>
>   but if the wget is outputting continuously this may now work. There is
> afaik no way to get process bakc to foreground.
>
>
> -- 
> arimo
>
> On Mon, 3 Jul 2006, Gregory Nowak wrote:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Thanks for the responses. Let me clarify my question though. From the
> > replies I'm reading, it seems the impression I've given people is that
> > I don't know how to use screen, and this I do know, at least well enough
> > to do what I've needed it for so far. My question concerning screen
> > was can I take a wget process already running in another standard
> > console, (I.E., no screen involved, just bash), and attach screen to
> > it without stopping it, or effecting its operation in anyway. As far
> > as I know, the answer to that question is no.
> >
> > Anyway, I solved the problem by biting the bullet, hitting ctrl+c on
> > the wget job, launching screen, and starting the wget job over again
> > under screen this time, passing the -c flag to wget to continue a
> > partial download, and all seems to be working fine now. Then, I of
> > course detached from the screen session, and logged off.
> >
> > Greg
> >
> >
> > On Mon, Jul 03, 2006 at 11:41:37PM -0500, Farhan wrote:
> >> Hi.
> >> If you want to do this process, type screen. start your wget job, hit
control a then d log out, and when you want to bring your wget job up again,
in the console type screen -x or -r respectivly.
> >> personally, I use screen -x to bring my screen up, just because.
> >> On 7/3/2006 at 23:40 Gregory Nowak said
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> > - --
> > web site: http://www.romuald.net.eu.org
> > gpg public key: http://www.romuald.net.eu.org/pubkey.asc
> > skype: gregn1
> > (authorization required, add me to your contacts list first)
> >
> > - --
> > Free domains: http://www.eu.org/ or mail dns-manager@EU.org
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.3 (GNU/Linux)
> >
> > iD8DBQFEqf6r7s9z/XlyUyARAkdoAJ9GxieN+UmYcxdS6TEtuZc2QJHBMgCgxjha
> > q6fwlQ7fQliIxzCg6+m4xTY=
> > =rTOS
> > -----END PGP SIGNATURE-----
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: backgrounding a running wget job
       ` Ari Moisio
         ` Tyler Littlefield
@        ` Gregory Nowak
  1 sibling, 0 replies; 7+ messages in thread
From: Gregory Nowak @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the info. I didn't want to suspend the wget job with
ctrl+z, since I didn't know what that would do to the download. Yes,
the wget process would be suspended, and it would pick up right where
it left off. What about the tcp connection to the other system, that
would be reset as soon as wget got suspended and stopped responding,
wouldn't it? Yes, I know, in that case, wget would simply retry the
connection upon resuming, but still ...

Also, yes, wget was in fact outputting continuously, which is another
reason why I wanted to attach it to a screen session, in addition to
bringing it back into the foreground when I chose. Also thanks for the
introduction to the disown command, didn't know that existed.

Anyway, like I said, I bit the bullet, and have things working like I
want them now.

Greg


On Tue, Jul 04, 2006 at 12:19:38PM +0300, Ari Moisio wrote:
> Hi!
> 
>   In theory this could be possible: you have to change wget's process group 
> id to same as one of your screened shells. Unfortunately i do not know any 
> tool to do this.
> 
>   If you use bash you can put wget background witht
>   ^Z, bg  wget
> and  detach it from current shell with
> disown wget
> 
>   but if the wget is outputting continuously this may now work. There is 
> afaik no way to get process bakc to foreground.
> 
> 
> -- 
> arimo
> 

- -- 
web site: http://www.romuald.net.eu.org
gpg public key: http://www.romuald.net.eu.org/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)

- --
Free domains: http://www.eu.org/ or mail dns-manager@EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEqr5X7s9z/XlyUyARAo5fAKCBBLRSlMVPvdWofhTaWF5Izb4LkQCfSEH7
XhnZF/zNnVBrJV//TCetPNw=
=WCDn
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 backgrounding a running wget job Gregory Nowak
 ` Tyler Littlefield
 ` Farhan
   ` Gregory Nowak
     ` Ari Moisio
       ` Tyler Littlefield
       ` Gregory Nowak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).