Skip to content

Instantly share code, notes, and snippets.

@andrulik
Created April 4, 2010 07:57
Show Gist options
  • Save andrulik/355221 to your computer and use it in GitHub Desktop.
Save andrulik/355221 to your computer and use it in GitHub Desktop.
These are two scripts that enable you to remote control a PC using Dropbox
#!/bin/bash
touch input.txt
touch output.txt
echo -n "Enter Command: "
read INCOM
echo "$INCOM" > input.txt
while [ -f input.txt ];do
sleep 10
done
cat output.txt
#!/bin/bash
while true; do
if [ -f input.txt ];then
OUTCOM=$(cat input.txt)
$OUTCOM > output.txt
rm input.txt > /dev/null 2>&1
else
sleep 10
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment