#!/bin/sh -f # # shell to run Xplor-NIH python scripts as command interpreters # # make sure this command is in your path, then begin # your python script (script.py) with the line #!/usr/bin/env pyXplor # and make it executable: # chmod +x script.py # you can then run your script directly: # ./script.py # args="" while [ -n "$1" ]; do #protect space in arguments arg=`echo "$1"|sed 's/[ ?&|()*"'\/']/\\\\&/g'` args="$args $arg" shift done [ "$PROGNAME" = "" ] && PROGNAME=$0 eval __XPLOR_DIR__/bin/xplor -program_name $PROGNAME -pyshell $args