[Coco] Tutorial on Telnet/inetd on Coco3 DW4 (is there one?)
Gene Heskett
gheskett at wdtv.com
Fri Oct 12 06:01:47 EDT 2012
On Friday 12 October 2012 05:57:57 Aaron Wolfe did opine:
> That's not good.
>
> Are you still using the nightly disk that has other issues? I wonder if
> this is another. The dw command output is a stream, not sector based
> and the largest single transfer of bytes possible in the stream is 255,
> not 256. So... I think it is very unlikely that the output of the dw s
> l command actually contained 256 0s aligned perfectly with a sector
> boundary.. which I think means that the bit after the redirect is
> where things went wrong. Dw4 will create zero filled sectors to pad
> out a file when necessary... if you have a file with 10 sectors in it
> and write to sector 12, 11 will be created and zero filled. Its
> possible an entire write operation went missing? Did you notice any
> errors or warnings on the server log screen? And, is it consistent or
> do multiple runs yield different results? Fwiw this and every other
> transfer I've tested work fine here, but I am running an older disk
> generated from my own clone of the source which is not current... bit
> of a mess.
>
> Anyway, scary because it seems likely the problem is actually in the
> sector write, which would likely effect any write op, not just those
> writing the output of a dw download. Hrmmmm . Need to sort this out.
> If you could submit a bug report with all boxes checked after running
> that command, I'll look through it for any clues.
Let me add a PS of sorts here. Early on in my attempts to recover /dd
after a format /s1 went aglay, I tried to use /x1 as a work disk for
dcheck. It went completely bonkers, like dcheck030 was sent to /dev/null.
Every attempt since has worked perfectly. snilmerG?
>
> On Oct 12, 2012 4:15 AM, "Bob Devries" <devries.bob at gmail.com> wrote:
> > Hi Aaron.
> >
> > I tried out one of your suggestions, like this:
> >> dw s l
> >> ftp://www.rtsi.com/OS9/OS9_**6X09/ezgen.lzh<ftp://www.rtsi.com/OS9/O
> >> S9_6X09/ezgen.lzh>> /dd/work/ezgen.lzh
> >
> > and I found that the resultant file was corrupted. One 256 byte block
> > in the file was filled with nulls $00.
> >
> > Thinking that the file might be corrupt on RTSI, I downloaded it with
> > my favourite ftp programme (LeapFTP) and the file came across
> > perfectly.
> >
> > Is there some condition which would cause DW to substitute a block of
> > nulls in the file. The file using DW was also shorter by 153 bytes.
> >
> > Regards, Bob Devries
> > Dalby, QLD, Australia
> >
> > ----- Original Message ----- From: "Aaron Wolfe" <aawolfe at gmail.com>
> > To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
> > Sent: Friday, October 12, 2012 2:53 PM
> > Subject: Re: [Coco] Tutorial on Telnet/inetd on Coco3 DW4 (is there
> > one?)
> >
> > On Thu, Oct 11, 2012 at 9:30 PM, Bob Devries <devries.bob at gmail.com>
> >
> >> wrote:
> >>> I guess what we need is a realiable way to add a file to an existing
> >>> .DSK or
> >>> .VHD file. Not sure if wimgtool.exe will fill the bill, or what
> >>> you'd use on
> >>> Linux.
> >>
> >> If you'd like to do this directly from the CoCo, the commands 'dw
> >> server list' and 'dw server dir' are an easy way.
> >>
> >> To bring a file from your windows machine into the CoCo's disk:
> >>
> >> dw s l c:\coco\somefile.b09 > /dd/work/somefile.b09
> >>
> >> Or, maybe you want to bring a file from a web site or ftp site into
> >> the CoCo's disk:
> >>
> >> dw s l
> >> ftp://www.rtsi.com/OS9/OS9_**6X09/ezgen.lzh<ftp://www.rtsi.com/OS9/O
> >> S9_6X09/ezgen.lzh>> /dd/work/ezgen.lzh
> >>
> >> A sort of poor man's FTP client in OS9:
> >>
> >> {N2|03}/DD:dw s d
> >> ftp://www.rtsi.com/OS9/OS9_**6X09<ftp://www.rtsi.com/OS9/OS9_6X09>
> >> Directory of
> >> ftp://www.rtsi.com/OS9/OS9_**6X09<ftp://www.rtsi.com/OS9/OS9_6X09>
> >>
> >> .bash_logout .bash_profile
> >> .bashrc .kde
> >> APPS ARCHIVERS
> >> COM CoCo_Projects.zip
> >> EMULATORS GAMES
> >> GLENSIDE GRAPHICS
> >> Glenside HARDWARE
> >> LANGUAGES PROG
> >> REFERENCE SOUNDUTILS
> >> SYSMODS TELECOM
> >> TXT UMUSE
> >> UTILITIES coco
> >> coco_archive.iso coco_archive_gofd_readme.txt
> >> cocoos9.zip dagorpatch.zip
> >> ezgen.lzh fsr.lzh
> >> gofd.zip oscom10.zip
> >> vCoCo.cpt.Hqx.sit xt-hd.lzh
> >> xt-rom.lzh
> >> {N2|03}/DD:
> >>
> >>
> >> So 'dw s l' will bring in pretty much anything local or remote, dump
> >> it to stdout where you can redirect into a local file on the coco,
> >> and 'dw s d' will list a directory of most anything that can provide
> >> a directory.
> >>
> >> To go the other way, I'd suggest using httpd on OS9. Add a line
> >> like:
> >>
> >> 80,runb,httpd
> >>
> >> to your inetd.conf, restart inetd and visit http://127.0.0.1/dd with
> >> a web browser on your server.
> >> you can browse the entire OS9 filesystem and download files with the
> >> browser.
> >>
> >> -Aaron
> >>
> >> --
> >> Coco mailing list
> >> Coco at maltedmedia.com
> >> http://five.pairlist.net/**mailman/listinfo/coco<http://five.pairlist
> >> .net/mailman/listinfo/coco>
> >
> > --
> > Coco mailing list
> > Coco at maltedmedia.com
> > http://five.pairlist.net/**mailman/listinfo/coco<http://five.pairlist.
> > net/mailman/listinfo/coco>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
Cheers, Gene
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
Serocki's Stricture:
Marriage is always a bachelor's last option.
More information about the Coco
mailing list