Re: wget, how do I download when links are to a php ...?



On 6 Jan 2007, in the Usenet newsgroup comp.os.linux.misc, in article
<1168104047.203030.34000@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
jameshanley39@xxxxxxxxxxx wrote:

Tony Lawrence wrote:

I think one small piece of advice might help. Stop thinking about "how
to I get X to do Y" and instead ask "How to I get this result?".

Absolutely!! There are a huge number of commands on the average *nix
box, and even command-line dinosaurs don't use all (or even a significant
number) of them.

[compton ~]$ ls `echo $PATH | tr ':' ' '` | egrep -vc '(:|^$)'
1324
[compton ~]$ echo $HISTSIZE
1000
[compton ~]$ history | sed 's/^......//' | tr '|' '\n' | sed 's/^ *//' |
cut -d' ' -f1 | sort -u | wc -l
79
[compton ~]$

So, of the 1324 "commands" in my PATH, the last 1000 times I've pressed
that enter key in that terminal, there have only been 79 different command
in the entire line (even if there may be, as in the last one, seven [o
more] commands chained together to get the "result" I want). For me, this
is about average with the range being 60 to 130 if you looked at all 20
terminals I have open on this desktop.

very interesting point

Use the command(s) that do the job and give the answer you are looking for.
"Pretty", or "efficient" can come later, if needed.

Part of it is that perhaps what is underlying DOS is bad.

Don't forget that MS-DOS was a quick and dirty hack (the original name
was "QDOS" which stood for "Quick and Dirty Operating System" - see ESR's
"jargon file" at your favorite search engine) based on CP/M which had it's
roots in UNIX if you stretch things a bit.

The other part is that DOS didn't do much, because there weren't many
commands.

My recollection of MS-DOS 5.0 was 68 commands

Before the internet became more mainstream, there was probably little
communication between DOS developers and not much access to DOS
programs to download .

[compton ~]$ zwc -l /net/james.webb/dir.list/nasa.ibmlist.gz
2882
[compton ~]$

We used to have things called a BBS (Bulletin BoardS) and you could find
all kinds of neat crap on them. This happens to be a 1991 file listing
from the BBS at NASA Ames Research Center - you _dialed_ into it. If you
knew the right phone numbers, you could also get to 'Simtel20' (which was
a DEC-20 at White Sands Missile Range), 'wuarchive' (Washington University
in St. Louis [Missouri]), or oakland.edu (Oakland University in Rochester
Minnesota). They had more "stuff" and more _versions_ of "stuff" than you
could ever dream about. (Almost as bad as 'sunsite.unc.edu' now known as
ibiblio.org which had 106475 files totalling 9.71 gigabytes of "stuff" two
weeks ago, and that doesn't include the distribution mirrors.)

So DOS was completely what MS made it to be, in what underlies it, and
in external programs, commands.

Microsoft did add stuff - mainly copies or derivations (legal and otherwise)
of other applications. Tools like the disk defragmentor and file
"un-eraser" (licensed from Norton), disk compression (stolen from Stacker,
and re-invented when Stac Electronics hauled their ass into court for
patent infringement), graphic shell (QuarterDeck) or the memory management
stuff - they were all added over time.

There are some that haven't forgotton DOS and furthermore, still use it
and develop programs for it. e.g. there are still MSDOS newsgroups.

[compton ~]$ zgrep -iw dos big.8.list.12.15.06.gz
comp.databases.paradox Borland's database for DOS & MS Windows.
comp.mail.pegasus-mail.misc Pegasus Mail for DOS and Macs, and Mercury Mail.
comp.os.ms-windows.apps.compatibility.win95 Running DOS&Win3 apps in Win95.
comp.os.msdos.4dos The 4DOS command processor for MS-DOS.
comp.os.msdos.apps Discussion of applications that run under MS-DOS.
comp.os.msdos.djgpp DOS GNU C/C++ applications and programming environment.
comp.os.msdos.mail-news Administering mail & network news systems under MS-DOS.
comp.os.msdos.misc Miscellaneous topics about MS-DOS machines.
comp.os.msdos.programmer Programming MS-DOS machines.
comp.unix.dos-under-unix MS-DOS running under UNIX by whatever means.
[compton ~]$

Sure - don't know how active those groups are, but they do exist.

There is a new shell called 4DOS.

See above

What i've written on DOS could be wrong.. 'cos I only started using it at
late as DOS 6.22 , not much earlier, and I haven't played with new
developments.

DOS 1.0 didn't have directories - what do you need those for on a floppy,
which was all it could use. DOS 1.1 introduced directories, and hard
disks - but the IBM PC-XT of that era only had a 10 or 20 Meg disk. PCs
have come a long way since then.

Old guy
.



Relevant Pages

  • Re: DOS prompt
    ... If your computer has no disks or discs, then no DOS is needed. ... copying files from one disk to another, or from one place on a disk to another ... How those commands are carried out depends on the overall operating system. ...
    (microsoft.public.windowsxp.basics)
  • Re: WinXP boot disk, WinXP DOS
    ... MSDOS.SYS file like DOS 6.22. ... traditional commands if I am in a DOS session in Windows, ... There is a 32-bit command console. ... As for your bootup disk: ...
    (microsoft.public.windowsxp.general)
  • SimCoupe disk access question
    ... and I've selected it from the File menu as Floppy 1, but when I type BOOT ... to enable the DOS commands I get the error "53 No DOS", ... I presumed that SimCoupe would put DOS on there when it created the disk, ... (The disk commands aren't documented in the general manual - in the ...
    (comp.sys.sinclair)
  • Re: Cant Access DOS
    ... just occasionally going into what i believed was DOS ... an XP made Boot Disk\System Disk or my old Win 98 System Disk when i wanted ... get to through XP's boot screen; this has got a different feel to it & i ... > MS-DOS startup disk). ...
    (microsoft.public.windowsxp.basics)
  • Re: wget, how do I download when links are to a php ...?
    ... So, of the 1324 "commands" in my PATH, the last 1000 times I've pressed ... Don't forget that MS-DOS was a quick and dirty hack (the original name ... communication between DOS developers and not much access to DOS ... comp.os.msdos.apps Discussion of applications that run under MS-DOS. ...
    (comp.os.linux.misc)