Skip to content

Instantly share code, notes, and snippets.

@underhilllabs
Created June 2, 2012 06:24
Show Gist options
  • Select an option

  • Save underhilllabs/2856955 to your computer and use it in GitHub Desktop.

Select an option

Save underhilllabs/2856955 to your computer and use it in GitHub Desktop.
shortcut script to scp a file to your personal server
#!/bin/bash
SERVER=""
USER=""
if [ -f $1 ] ; then
echo "scping $1 to /home/${USER} on ${SERVER}!"
scp $1 ${USER}@${SERVER}:
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment