|
From: Adam B. <ada...@gb...> - 2001-02-05 05:43:25
|
Bock Finn proscribed: > [Adam Burke] > > >Odd problem. Jython console started with no parameters fails with an > >"IOError - File not found -". However the problem goes away when the > >interpreter is started with a script param or started with the -v = > >option. > > > >Compaq Tru64 Unix > >uname -a > >OSF1 supanova V4.0 1229 alpha=20 > > > <slash> > The generated script use "$@" to pass the script arguments to java. If > no arguments are supplied, perhaps Tru64 will pass it as "". Try to > change the "jython" script to use some other way of passing the args: > > java .... org.python.util.jython $1 $2 $3 $4 $5 > > This is too naive for production use, but I think it can help illustrate > where the problem is. Changing the shell in the first line of the script > might also help. > Doh! /bin/sh has issues on (at least our) installations of Tru64, I've been running into them for other utilities as well, I should have picked that. Using #!/bin/ksh fixes it. Thanks. Adam |