Skip to content

Instantly share code, notes, and snippets.

@csivanich
Created June 6, 2014 04:36
Show Gist options
  • Save csivanich/64ac76010ff02c9cb151 to your computer and use it in GitHub Desktop.
Save csivanich/64ac76010ff02c9cb151 to your computer and use it in GitHub Desktop.
Temp File Copier
#!/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