Skip to content

Instantly share code, notes, and snippets.

@kaihendry
Created July 24, 2012 14:53
Show Gist options
  • Save kaihendry/3170423 to your computer and use it in GitHub Desktop.
Save kaihendry/3170423 to your computer and use it in GitHub Desktop.
This works well
x220:/srv/www/greptweet$ cat foo.cgi
#!/bin/bash
exec 2>&1
cat <<END
Cache-Control: no-cache
Content-Type: text/html
END
./foo-script.sh & disown
x220:/srv/www/greptweet$ cat foo-script.sh
#!/bin/bash
while true
do
date=$(date)
echo "$date"
echo "$date" >> "foo$$.log"
echo '<br>'
sleep 5
done
x220:/srv/www/greptweet$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment