Changing the path didn't help. Output is unchanged. As far as I can tell, the only programs executed by the script are python (in /usr/bin) and calibre (entire path specified explicitly).
New version of script with path changes, in case I screwed it up:
Code:
#/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games ; export PATH
killall calibre
rm /u1/myusername/opt/* -rf
python -c "import sys; py3 = sys.version_info[0] > 2; u = __import__('urllib.request' if py3 else 'urllib', fromlist=1); exec(u.urlopen('http://status.calibre-ebook.com/linux_installer').read()); main(install_dir='/u1/myusername/opt')"
env DISPLAY=:2.0 XAUTHORITY=/u1/mbbush/.Xauthority /u1/myusername/opt/calibre/calibre &
Anybody have any other ideas?