Skip to content

Instantly share code, notes, and snippets.

#! /bin/sh
# Install Python to /app/python-VERSION
MAIN_VERSION=2.7 # 2.6
SUBVERSION=.1 # .6
VERSION="${MAIN_VERSION}${SUBVERSION}"
cd /tmp
curl -O http://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tar.bz2
tar jxf Python-${VERSION}.tar.bz2
cd Python-${VERSION}
@issuu
issuu / background.sh
Created January 17, 2011 10:51 — forked from zaius/background.sh
Redirect a running process output to a file and log out
ctrl-z
bg
touch /tmp/stdout
touch /tmp/stderr
gdb -p $!
# In GDB
p dup2(open("/tmp/stdout", 1), 1)
p dup2(open("/tmp/stderr", 1), 2)