File access


R. Clayton (rclayton@monmouth.edu)
(no date)


How can I copy the assignment files to floppy?

  If you're sitting in front of a sun, insert a floppy and type

    $ cd /export/home/class/cs-509

    $ volcheck

    $ tar cf /vol/dev/aliases/floppy0 pa1

    $ tar tf /vol/dev/aliases/floppy0
    pa1/
    pa1/make-shreds
    pa1/show-shreds

    $

  Ignore any output volcheck may produce. If you're sitting in front of a pc
  booted into linux, insert a floppy and type

    $ cd /export/home/class/cs-509

    $ tar cf /dev/fd0 pa1

    $ tar tf /dev/fd0
    pa1/
    pa1/make-shreds
    pa1/show-shreds

    $

  Assuming you're at a linux machine on the other end, insert the floppy and
  type

    $ cd <wherever>

    $ tar xvf /dev/fd0

    $

  to recover the files. (What you have to do on linux depends on what
  distribution you're running and what kind of desktop you're using. What I've
  described above is the most basic thing you can do.)

  If you're going to end up at a windows machine, you probably want to read the
  mcopy man page on a solaris or linux system. However, the test programs need
  tcl-tk, which is not part of the standard windows distribution.

  I've also made the test programs available via the assignment page.

Also, where should we direct the error messages: stdout or stderr?

  Error (and debugging) messages should go to std-err (std::cerr). If you're
  really into it, you can send debugging messages to std::clog, which ends up
  in the same place as std::cerr, but takes a different route.



This archive was generated by hypermail 2.0b3 on Thu Dec 18 2003 - 16:15:05 EST