Created
March 29, 2019 02:12
-
-
Save jadbaz/fee239ca1199d0d25cc8cad23728c36f to your computer and use it in GitHub Desktop.
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
mkdir a1 a2 | |
ln -s a1 a | |
echo "rm -f a; ln -s a2 a; echo a1 still alive" > a1/test.sh | |
echo "rm -f a; ln -s a1 a; echo a2 still alive" > a2/test.sh | |
while true; do sh a/test.sh; ls -l; sleep 1; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment