Hubba's UNIX utilities and shell scripts

 

ch-grp, changes files that belong to a named group to a new named group.

Installation Instructions



 

ch-own, changes files that belong to a named owner to a new named owner.

Installation Instructions



 

check-mail, shell script that checks if user has new mail.

Installation Instructions



 

clock, diplays the time on an classic RS6000 led display.

Installation Instructions



 

cpprofile, copies a new profile file to all .profiles found in /home.

Installation Instructions



 

cpu_hog, small shell script for displaying top 10 processes.

Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 cpu_hog.sh'
  • To execute type './cpu_hog.sh'



     

    cmdmodem, a shell script to program a modem using the uucp command cu.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 cmdmodem.sh'
  • To execute type './cmdmodem.sh tty# speed <AT command 1> ... <AT command n>'



     

    jail, send ascii or binary email attachments from the command line

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 jail.sh'
  • To execute type './jail.sh [options] email-address files-to-be-sent'
  • For a list of the options type './jail.sh -?'



     

    jftp, FTP ascii files from the command line

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 jftp.sh'
  • To execute type './jftp.sh ip/hostname file-to-be-sent'



     

    keyswitch, find out the position of the keyswitch on the front of a classical RS6000

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 keysw.sh'
  • To execute type './keysw.sh'



     

    Ls, small shell script for listing files in size order, smallest first.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 Ls.sh'
  • To execute type './Ls.sh'



     

    lstape, finds out the blocksize that was used to write to an unknown tape.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 lstape.sh'
  • To execute type './lstape.sh tape-device'



     

    machine, determine machine type of your RS6000

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 machine.sh'
  • To execute type './machine.sh'



     

    mkboottape, Shell script to create a bootable tape with no data.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 mkboottape.sh'
  • To execute type './mkboottape.sh tape-drive (eg rmt0 no /dev in front)'



     

    mkfdfs, Create a read only AIX filesystem on a diskette drive.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 mkfdfs.sh'
  • To execute type './mkfdfs.sh directory-with-files-in'



     

    mksysback, create a BOS boot and Install/Maint 8mm tape (AIX 3.1)

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 mksysback.sh'
  • To execute type './mksysback.sh tape-device'



     

    permcalc, shell script to work out correct chmod command required for UNIX file permissions.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 permcalc.sh'
  • To execute type './permcalc.sh file-permissions'



     

    ppproute, shell script to add the "other side" ip address of the ppp connection, as the default gateway.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 ppproute.sh'
  • To execute type './ppproute.sh'



     

    pppend, shell script for cleaning up routes after ppp connection has been terminated.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 pppend.sh'
  • To execute type './pppend.sh'



     

    rgrep, Recursive grep (find and grep)

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 rgrep.sh'
  • To execute type './rgrep.sh path what-to-grep-for'



     

    shar, Shell Archive, creates a single text archive from multiple text files

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 shar.sh'
  • To execute type './shar.sh filenames-to-archive > archive.name'



     

    tape-copy, 1st part of tape copy, copies an installation / fix tape to the hard drive

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 tape-copy.sh'
  • To execute type './tape-copy.sh tape-device directory-to-copy-to'



     

    tape-restore, 2nd part of tape copy, copies files from hard drive onto a new tape

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 tape-restore.sh'
  • To execute type './tape-restore.sh tape-device directory-to-copy-from'



     

    tree, displays the directory structure of the given root node in a format similar to DOS VTREE

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 tree.sh'
  • To execute type './tree.sh (optional path)'



     

    upper2lower, a shell script for changing all uppercase filenames in a directory to lowercase filenames.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 upper2lower.sh'
  • To execute type './upper2lower.sh'



     

    uudec, a shell script version of the UUCP uudecode program.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 uudec.sh'
  • To execute type './uudec.sh encoded-file'
  • For further details type './uudec.sh -h'



     

    uuenc, a shell script version of the UUCP uuencode program.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 uuenc.sh'
  • To execute type './uuenc.sh file-to-encode'
  • For further details type './uuenc.sh -h'



     

    wits, a shell script that gives information about the RS6000 that it is being executed on.

    Installation Instructions

  • Click on the link to get the shellscript
  • Transfer to the unix system
  • Make the file executable using 'chmod 555 wits.sh'
  • To execute type './wits.sh'



     

    epoch, an AIX 4.2.1 binary for the RS6000 which will convert the date stored in UNIX seconds to normal human readable format. Useful to check when passwords where last changed in /etc/security/password on AIX

    Installation Instructions

  • Click on the link to get the program
  • Transfer to the AIX system
  • Make the file executable using 'chmod 555 epoch.bin'
  • To execute type './epoch.bin time-in-seconds'



     

    metafree, a shell script for Solaris system to calculate the free space available on the disks. This does not always work and will not work with Veritas. This is very useful for finding free slices to use with ODS filesystems.

    Installation Instructions

  • Click on the link to get the program
  • Transfer to the Solaris system
  • Make the file executable using 'chmod 555 metafree.sh'
  • To execute type './metafree.sh'



     

    vcsmultinic, a shell script for Solaris Vertitas Cluster server to configure multinic failover

    Installation Instructions

  • Click on the link to get the program
  • Transfer to the Solaris system
  • modify to your needs (required configuration for VCS cluster)
  • Make the file executable using 'chmod 555 vxspacefree.sh'
  • To execute type './vcsmultinic.sh'



     

    HOME

     

    This page was last updated on 12 September 2000 by Hubertus A. Haniel