#!/bin/bash

if [ $# != 1 ]; then
    listing=`ssh "Ricahrd Jones"@137.99.79.197 cd "/cygdrive/c/Documents\ and\ Settings/Ricahrd\ Jones/Desktop/DSO-5200A\ USB/SDK/Labview; ls *.dat"`
    echo
    echo "Usage: proot <filename>"
    echo "  where <filename> is one of"
    echo
    echo $listing
    exit 1
fi

ssh "Ricahrd Jones"@137.99.79.197 tar -zcf - -C "/cygdrive/c/Documents\ and\ Settings/Ricahrd\ Jones/Desktop/DSO-5200A\ USB/SDK/Labview $1" | tar zxf -
root -l
