Created
April 4, 2010 07:57
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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