💾 Archived View for cugi.ie › aminet › 1661655537.gmi captured on 2023-03-20 at 19:06:21. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Read or Write one track CLI tool

   Author:       modrobert at gmail.com
   Uploader:     modrobert gmail com
   Type:         util/cli
   Version:      0.14
   Architecture: m68k-amigaos >= 1.2
   Date:         2022-08-27
   Readme:       http://aminet.net/util/cli/trackfoo_v0_14.readme
   Downloads:    1

http://aminet.net/util/cli/trackfoo_v0_14.lha

This CLI program copies one track (0 - 159) to or from floppy. Source code

included.

------------------------------------------------------------------------------

trackfoo v0.14 by modrobert

Function: This program copies one track to or from floppy.

Syntax : trackfoo <commmand> <device> <filename> <track>

Result : 0 OK. Error; 1 arg, 2 device, 3 file, 4 port, 5 mem, 6 track.

Where <command> is either 'read' or 'write', <device> is DF0: - DF3:,

<filename> for data to read or write, and <track> number between 0 - 159.

Even track number is lower head (side 0), odd track is upper head (side 1).

------------------------------------------------------------------------------

Example script to write a few tracks from the lower head (side 0):

echo "Start writing tracks"

trackfoo write df0: file.001 0

trackfoo write df0: file.002 2

trackfoo write df0: file.003 4

trackfoo write df0: file.004 6

trackfoo write df0: file.005 8

echo "Done!"

Contents of util/cli/trackfoo_v0_14.lha

PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                 9126   15252  59.8% -lh5- b31c Aug 12  2018 trackfoo
[unknown]                 3033   10815  28.0% -lh5- f5eb Aug 12  2018 trackfoo.c
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total         2 files   12159   26067  46.6%            Aug 28 02:58

Aminet © 1992-2022 Urban Müller and the Aminet team. Aminet contact address: <aminet aminet net>