home *** CD-ROM | disk | FTP | other *** search
- From: jac@yoko.rutgers.edu (Jonathan A. Chandross)
- Newsgroups: comp.sources.apple2
- Subject: v001SRC060: timekermit -- Time To Kermit A File (Unix)
- Message-ID: <Jul.8.20.25.50.1991.13534@yoko.rutgers.edu>
- Date: 9 Jul 91 00:25:50 GMT
- Approved: jac@paul.rutgers.edu
-
-
- Submitted-by: Scott Walker (swalker@phobos.unm.edu)
- Posting-number: Volume 1, Source:60
- Archive-name: unix/util/kermit/timekermit
- Architecture: UNIX
- Version-number: 1.00
-
- This Unix shell script estimates the time it will take to transfer
- a file using kermit.
- file.
-
- Enjoy.
-
- =timekermit
- -
- -#!/bin/sh
- -#
- -# timekermit
- -#
- -# Estimate the time it will take to kermit something.
- -#
- -# Usage:
- -# kermittime <file name>
- -#
- -# Scott Walker
- -# swalker@phobos.unm.edu
- -# University of New Mexico, Albuquerque NM
- -# June 1991
- -#
- -len=`ls -l $1 | cut -c25-32`
- -tyme=`expr $len / 8700`
- -tyme2=`expr $tyme + $tyme`
- -echo 'Time to kermit (Minutes):'
- -echo '2400 baud 1200 baud'
- -echo -n $tyme
- -echo -n ' '
- -echo $tyme2
- -
- + END OF ARCHIVE
-