Skip to content

Instantly share code, notes, and snippets.

@cammckinnon
Created November 29, 2011 06:27
Show Gist options
  • Save cammckinnon/1403699 to your computer and use it in GitHub Desktop.
Save cammckinnon/1403699 to your computer and use it in GitHub Desktop.
#!/bin/bash
#uw server credentials - careful with these (!!) :
user='username'
pass='password'
#################################
if [ $# -ne 2 -a $# -ne 3 ] ; then
echo "Usage: ./remotelinker.bash file1.merl file2.merl (-verbose)"
exit
fi
if [ $# -eq 3 ] ; then
./remotelinker.expect $user $pass $1 $2
if [ $? -eq 2 ] ; then
echo ""
echo ""
echo "ERROR: the merl files you passed in were invalid"
exit
fi
echo ""
echo ""
echo "SUCCESS - local final merl file at ./final.merl"
exit 0
fi
./remotelinker.expect $user $pass $1 $2 > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment