Created
June 6, 2014 04:36
-
-
Save csivanich/64ac76010ff02c9cb151 to your computer and use it in GitHub Desktop.
Temp File Copier
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 | |
# Quick and dirty script to copy generated python | |
# scripts which get temporarily stored in /tmp | |
finish=0 | |
echo "Waiting..." | |
while [ $finish -eq 0 ]; do | |
until [ ! -r /tmp/*.py ]; do | |
cp /tmp/*.py /tmp/*.txt -t copied | |
sleep .1 | |
finish=1 | |
done | |
done | |
echo "Copied successfully" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment