Skip to content

Instantly share code, notes, and snippets.

@zed
Created March 26, 2012 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zed/a64c6b8f0be5fc9347ec to your computer and use it in GitHub Desktop.
Save zed/a64c6b8f0be5fc9347ec to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
"""
subprocess.check_call([sys.executable, 'print_args.py', swt_nam])
"""
from __future__ import print_function
import random
import time
import sys
print("start %r" % (sys.argv,), file=sys.stderr)
time.sleep(random.randint(1, 10)) # sleep between 1 and 10 seconds
print("end %r" % (sys.argv,), file=sys.stderr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment