Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

run org.mozilla.javascript.tools.shell

0 views
Skip to first unread message

peggy

unread,
Nov 19, 2009, 8:20:49 PM11/19/09
to
hi,

have anyone know why start below is so slowly.

java org.mozilla.javascript.tools.shell.Main

i want use crontab to excute .sh , then to run .js by rhino.
such as :
crontab -l
***** /path/to/ex.sh arg1
*/2**** /path/to/ex.sh arg2

ex.sh
java org.mozilla.javascript.tools.shell.Main ex.js arg1
java org.mozilla.javascript.tools.shell.Main ex.js arg2

ex.js
load(ex_{args}.js)


everytime to start java org.mozilla.javascript.tools.shell.Main
ex.js arg1...etc. , but javascript is fast.

any idea to start once time "java
org.mozilla.javascript.tools.shell.Main " if use my way to run .js files?

thanks

0 new messages