#!/bin/bash

echo -e '<?php\n\n$myip = '"'"$(curl checkip.dyndns.org 2>/dev/null | grep 'IP Address' | cut -d ' ' -f 4)"';\n\n?>" | ssh ecatmur@users.jesus.ox.ac.uk tee pub/www/bin/myip.php >/dev/null 2>/dev/null
