Wrapper:Wah!Cade Startup

From Wah!ki
Revision as of 03:13, 9 January 2011 by Sairuk (talk | contribs) (Created page with "== About == This is an example bash script wrapper example for executing commands pre and post Wah!Cade execution == Bash Script == <pre> #!/bin/bash WAHCADEDIR="/home/user/wahc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

This is an example bash script wrapper example for executing commands pre and post Wah!Cade execution

Bash Script

#!/bin/bash
WAHCADEDIR="/home/user/wahcade"
PYTHON=`which python`

#
### PRE COMMANDS ###
# user commands to run before wahcade


#
### WAHCADE COMMAND ###
#
cd ${WAHCADEDIR}
${PYTHON} wahcade.py
wait

#
### POST COMMANDS ###
# user commands to run after wahcade