9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Help downloading Plan B using hget
@ 2008-11-14 19:50 Nolan Hamilton
  2008-11-14 20:04 ` michael block
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Nolan Hamilton @ 2008-11-14 19:50 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

Hello, I am a newcomer to plan 9.  I current have Plan9 installed on my
computer, and am trying to get Plan B.
I use "hget http://lsub.org/ls/export/planb4e.tgz"
I just get a whole bunch of letters and numbers.
Is this OK, or is there a problem becouse it keeps on doing this for a very
long time.
Also, once I have finished that, how do I save it to $home.

-Nolan Hamilton

[-- Attachment #2: Type: text/html, Size: 533 bytes --]

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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 19:50 [9fans] Help downloading Plan B using hget Nolan Hamilton
@ 2008-11-14 20:04 ` michael block
  2008-11-14 20:08 ` Robert Raschke
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 16+ messages in thread
From: michael block @ 2008-11-14 20:04 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, Nov 14, 2008 at 13:50, Nolan Hamilton
<nolan.h.hamilton@gmail.com> wrote:
> Hello, I am a newcomer to plan 9.  I current have Plan9 installed on my
> computer, and am trying to get Plan B.
> I use "hget http://lsub.org/ls/export/planb4e.tgz"
> I just get a whole bunch of letters and numbers.
> Is this OK, or is there a problem becouse it keeps on doing this for a very
> long time.
> Also, once I have finished that, how do I save it to $home.
>
> -Nolan Hamilton

try "hget http://lsub.org/ls/export/planb4e.tgz > /usr/asdfjkl/planb4e.tgz"

-- m



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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 19:50 [9fans] Help downloading Plan B using hget Nolan Hamilton
  2008-11-14 20:04 ` michael block
@ 2008-11-14 20:08 ` Robert Raschke
  2008-11-14 20:20 ` Pietro Gagliardi
  2008-11-14 20:22 ` Pietro Gagliardi
  3 siblings, 0 replies; 16+ messages in thread
From: Robert Raschke @ 2008-11-14 20:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs, nolan.h.hamilton

hget -o $home/planb4e.tgz http://lsub.org/ls/export/planb4e.tgz

The man pages with Plan 9 are really good. Well worth a read.

Robby



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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 19:50 [9fans] Help downloading Plan B using hget Nolan Hamilton
  2008-11-14 20:04 ` michael block
  2008-11-14 20:08 ` Robert Raschke
@ 2008-11-14 20:20 ` Pietro Gagliardi
  2008-11-14 21:26   ` Russ Cox
  2008-11-14 20:22 ` Pietro Gagliardi
  3 siblings, 1 reply; 16+ messages in thread
From: Pietro Gagliardi @ 2008-11-14 20:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


[-- Attachment #1.1: Type: text/plain, Size: 772 bytes --]

hget is different from most other programs of its kind. It writes the
file you ask for on standard output, or the computer screen. If you
want to download a file, use one of the following:

	hget -o planb4e.tgz http://lsub.org/ls/export/planb4e.tgz
	hget http://lsub.org/ls/export/planb4e.tgz > planb4e.tgz

On Nov 14, 2008, at 2:50 PM, Nolan Hamilton wrote:

> Hello, I am a newcomer to plan 9.  I current have Plan9 installed on
> my computer, and am trying to get Plan B.
> I use "hget http://lsub.org/ls/export/planb4e.tgz"
> I just get a whole bunch of letters and numbers.
> Is this OK, or is there a problem becouse it keeps on doing this for
> a very long time.
> Also, once I have finished that, how do I save it to $home.
>
> -Nolan Hamilton


[-- Attachment #1.2: Type: text/html, Size: 1379 bytes --]

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 201 bytes --]

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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 19:50 [9fans] Help downloading Plan B using hget Nolan Hamilton
                   ` (2 preceding siblings ...)
  2008-11-14 20:20 ` Pietro Gagliardi
@ 2008-11-14 20:22 ` Pietro Gagliardi
  3 siblings, 0 replies; 16+ messages in thread
From: Pietro Gagliardi @ 2008-11-14 20:22 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

On Nov 14, 2008, at 2:50 PM, Nolan Hamilton wrote:

> I just get a whole bunch of letters and numbers.

tgz is a compression format that uses binary data. The conversion of
binary to Unicode is why you see the numbers.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkkd3iAACgkQuv7AVNQDs+zt/gCfdPSIKa4sfrmUzXb1pV4avCbl
lscAn1wEUm74epQzJRjAPX69mdgT87te
=4YMp
-----END PGP SIGNATURE-----



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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 20:20 ` Pietro Gagliardi
@ 2008-11-14 21:26   ` Russ Cox
  2008-11-14 21:31     ` Pietro Gagliardi
  2008-11-14 23:21     ` Dave Eckhardt
  0 siblings, 2 replies; 16+ messages in thread
From: Russ Cox @ 2008-11-14 21:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> hget is different from most other programs of its kind.

depends what you mean by "its kind".
hget is similar to almost all plan 9 programs
and (not surprisingly) different from many
modern unix programs in that, by default,
it writes to standard output.

russ


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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 21:26   ` Russ Cox
@ 2008-11-14 21:31     ` Pietro Gagliardi
  2008-11-14 21:42       ` ron minnich
  2008-11-14 23:21     ` Dave Eckhardt
  1 sibling, 1 reply; 16+ messages in thread
From: Pietro Gagliardi @ 2008-11-14 21:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

On Nov 14, 2008, at 4:26 PM, Russ Cox wrote:

>> hget is different from most other programs of its kind.
>
> depends what you mean by "its kind".

command line download tool; I'm comparing it to programs like wget,
curl, etc.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkkd7ikACgkQuv7AVNQDs+y/AQCcDICiMviOfxdf5xfNvda87459
hKkAoIcimCB+1t3qGmaZvFDcm4v+1yPJ
=FJrM
-----END PGP SIGNATURE-----



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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 21:31     ` Pietro Gagliardi
@ 2008-11-14 21:42       ` ron minnich
  0 siblings, 0 replies; 16+ messages in thread
From: ron minnich @ 2008-11-14 21:42 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, Nov 14, 2008 at 1:31 PM, Pietro Gagliardi <pietro10@mac.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Nov 14, 2008, at 4:26 PM, Russ Cox wrote:
>
>>> hget is different from most other programs of its kind.
>>
>> depends what you mean by "its kind".
>
> command line download tool; I'm comparing it to programs like wget, curl,
> etc.
>

as Russ points out, those programs are a lot less like the original
Unix than hget. Long ago, many programs that produced output went to
stdout.

GNU tools nowadays remind me of the kind of 60s-ish programs Kernighan
used to make fun of in .... 1976 ... when he gave talks about Unix.
Plan 9 tools remind of the kind of programs Kernighan used to talk
nicely about in .... 1976 ... when he gave talks about Unix.

ah well.

Nurse! Bring my bib! And fetch my walker! I'm done here.

ron



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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 21:26   ` Russ Cox
  2008-11-14 21:31     ` Pietro Gagliardi
@ 2008-11-14 23:21     ` Dave Eckhardt
  2008-11-14 23:30       ` Pietro Gagliardi
  2008-11-14 23:55       ` Gorka Guardiola
  1 sibling, 2 replies; 16+ messages in thread
From: Dave Eckhardt @ 2008-11-14 23:21 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> hget is similar to almost all plan 9 programs
> and (not surprisingly) different from many
> modern unix programs in that, by default,
> it writes to standard output.

This may seem idiosyncratic, but it has a big benefit.

On various machines I have wget, curl, fetch, etc., and
each one has a different policy for where it puts its
output--some of them "helpfully" choose a semi-predictable
filename instead of overwriting an existing file, which is
almost always anti-helpful, because I'm generally *trying*
to overwrite the (obsolete) existing file with the new bits.
Each one helpfully provides a "no, really, name the file
this: ____" flag which will allow me to manually tell it to
put the bits where it supposedly automatically puts them,
BUT EACH ONE USES A DIFFERENT LETTER FOR THIS FUNCTION.  Is
it wget where it's -o and curl where it's -O, or the other
way around?  Whee!

In sharp contrast, the "option letter" for sending stdout to
somewhere is always the same: '>'.  By having this one feature
in the shell and *not* having it in every other program, life
is improved despite there being fewer lines of code.  How odd.

Dave Eckhardt



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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 23:21     ` Dave Eckhardt
@ 2008-11-14 23:30       ` Pietro Gagliardi
  2008-11-14 23:46         ` Uriel
  2008-11-14 23:55       ` Gorka Guardiola
  1 sibling, 1 reply; 16+ messages in thread
From: Pietro Gagliardi @ 2008-11-14 23:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

On Nov 14, 2008, at 6:21 PM, Dave Eckhardt wrote:

> commentary

This is because those programs use stdout for status indication, much
like hget -v. Think of wget, which is forced to use a terminal in
order to make a progress bar.

The idea is simple, and I'd like to go into more detail: the modern
UNIX programmers want to make it easier for a more general public to
use it, even at the risk of losing what UNIX was originally intended
to. Ergo, we are more like UNIX than GNU or BSD is.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkkeCiUACgkQuv7AVNQDs+x4NwCeJwB+z6W4fChQEO9VSB7tz1Xu
vX0An1tEeZlmxBKXEFFG0D+MXstTGL0h
=M4Bq
-----END PGP SIGNATURE-----



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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 23:30       ` Pietro Gagliardi
@ 2008-11-14 23:46         ` Uriel
  2008-11-14 23:51           ` Pietro Gagliardi
  0 siblings, 1 reply; 16+ messages in thread
From: Uriel @ 2008-11-14 23:46 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I wonder why was stderr invented...

uriel

On Sat, Nov 15, 2008 at 12:30 AM, Pietro Gagliardi <pietro10@mac.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Nov 14, 2008, at 6:21 PM, Dave Eckhardt wrote:
>
>> commentary
>
> This is because those programs use stdout for status indication, much like
> hget -v. Think of wget, which is forced to use a terminal in order to make a
> progress bar.
>
> The idea is simple, and I'd like to go into more detail: the modern UNIX
> programmers want to make it easier for a more general public to use it, even
> at the risk of losing what UNIX was originally intended to. Ergo, we are
> more like UNIX than GNU or BSD is.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (Darwin)
>
> iEYEARECAAYFAkkeCiUACgkQuv7AVNQDs+x4NwCeJwB+z6W4fChQEO9VSB7tz1Xu
> vX0An1tEeZlmxBKXEFFG0D+MXstTGL0h
> =M4Bq
> -----END PGP SIGNATURE-----
>
>



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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 23:46         ` Uriel
@ 2008-11-14 23:51           ` Pietro Gagliardi
  2008-11-15  0:22             ` Uriel
  0 siblings, 1 reply; 16+ messages in thread
From: Pietro Gagliardi @ 2008-11-14 23:51 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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


On Nov 14, 2008, at 6:46 PM, Uriel wrote:

> I wonder why was stderr invented...
>
> uriel

Oh yes, that's also something I can explain. Some programmers use the
definitions literally: "stderr is not used for a progress bar, make
stdprog."

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkkeDv4ACgkQuv7AVNQDs+xlbgCgojH8sYTwAZD6eeDLqadaTcSF
PTkAoK8PCMy7E2THjG34kwNhKjKvvyWl
=EYFS
-----END PGP SIGNATURE-----



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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 23:21     ` Dave Eckhardt
  2008-11-14 23:30       ` Pietro Gagliardi
@ 2008-11-14 23:55       ` Gorka Guardiola
  1 sibling, 0 replies; 16+ messages in thread
From: Gorka Guardiola @ 2008-11-14 23:55 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Sat, Nov 15, 2008 at 12:21 AM, Dave Eckhardt <davide+p9@cs.cmu.edu> wrote:
>> hget is similar to almost all plan 9 programs
>> and (not surprisingly) different from many
>> modern unix programs in that, by default,
>> it writes to standard output.
>
> This may seem idiosyncratic, but it has a big benefit.
>
> On various machines I have wget, curl, fetch, etc., and

Not completely true. Curl works as expected, I use it regularly.

curl http://lsub.org > b.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6623  100  6623    0     0  20232      0 --:--:-- --:--:-- --:--:-- 41393
mymachine:/tmp paurea$ cat b.html
<html>
<head>
etc...
--
- curiosity sKilled the cat



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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-14 23:51           ` Pietro Gagliardi
@ 2008-11-15  0:22             ` Uriel
  2008-11-15  0:36               ` [9fans] Thank you (was Re: Help downloading Plan B using hget) Pietro Gagliardi
  2008-11-15  2:10               ` [9fans] Help downloading Plan B using hget Nolan Hamilton
  0 siblings, 2 replies; 16+ messages in thread
From: Uriel @ 2008-11-15  0:22 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Maybe those programmers should learn a bit more about the system they
are working with before making such presumptions... but then, since
the days of Berkeley kids mixing LSD with cat's flags, seems that all
regard for the unix style has been forgotten in the race to add more
'features' and implement more standards.

uriel

On Sat, Nov 15, 2008 at 12:51 AM, Pietro Gagliardi <pietro10@mac.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On Nov 14, 2008, at 6:46 PM, Uriel wrote:
>
>> I wonder why was stderr invented...
>>
>> uriel
>
> Oh yes, that's also something I can explain. Some programmers use the
> definitions literally: "stderr is not used for a progress bar, make
> stdprog."
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (Darwin)
>
> iEYEARECAAYFAkkeDv4ACgkQuv7AVNQDs+xlbgCgojH8sYTwAZD6eeDLqadaTcSF
> PTkAoK8PCMy7E2THjG34kwNhKjKvvyWl
> =EYFS
> -----END PGP SIGNATURE-----
>
>



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

* [9fans] Thank you (was Re:  Help downloading Plan B using hget)
  2008-11-15  0:22             ` Uriel
@ 2008-11-15  0:36               ` Pietro Gagliardi
  2008-11-15  2:10               ` [9fans] Help downloading Plan B using hget Nolan Hamilton
  1 sibling, 0 replies; 16+ messages in thread
From: Pietro Gagliardi @ 2008-11-15  0:36 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

In a short few hours I have learned to appreciate Plan 9 more.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkkeGZkACgkQuv7AVNQDs+zeiQCfTpAlEmxAVto2p2gshSpwtTnQ
SUgAn2ESZiuP3vSD5nm9RgmId2OzZ65N
=20TR
-----END PGP SIGNATURE-----



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

* Re: [9fans] Help downloading Plan B using hget
  2008-11-15  0:22             ` Uriel
  2008-11-15  0:36               ` [9fans] Thank you (was Re: Help downloading Plan B using hget) Pietro Gagliardi
@ 2008-11-15  2:10               ` Nolan Hamilton
  1 sibling, 0 replies; 16+ messages in thread
From: Nolan Hamilton @ 2008-11-15  2:10 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 66 bytes --]

Thanks I can use hget now, everything works fine.-Nolan Hamilton

[-- Attachment #2: Type: text/html, Size: 120 bytes --]

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

end of thread, other threads:[~2008-11-15  2:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-14 19:50 [9fans] Help downloading Plan B using hget Nolan Hamilton
2008-11-14 20:04 ` michael block
2008-11-14 20:08 ` Robert Raschke
2008-11-14 20:20 ` Pietro Gagliardi
2008-11-14 21:26   ` Russ Cox
2008-11-14 21:31     ` Pietro Gagliardi
2008-11-14 21:42       ` ron minnich
2008-11-14 23:21     ` Dave Eckhardt
2008-11-14 23:30       ` Pietro Gagliardi
2008-11-14 23:46         ` Uriel
2008-11-14 23:51           ` Pietro Gagliardi
2008-11-15  0:22             ` Uriel
2008-11-15  0:36               ` [9fans] Thank you (was Re: Help downloading Plan B using hget) Pietro Gagliardi
2008-11-15  2:10               ` [9fans] Help downloading Plan B using hget Nolan Hamilton
2008-11-14 23:55       ` Gorka Guardiola
2008-11-14 20:22 ` Pietro Gagliardi

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 NNTP newsgroup(s).