Gilles, That makes a big difference. Thanks.
Below are listings of my bridgebatch and startserver.ijs files. The "Terminal results" of entering ./bridgebatch are as follows. The digits 1-6 correspond to echo values which are shown further below. All looks good except, no jijx browser tab/window was automatically opened, and I thought that was part of the automation. (After the Terminal results appear I can manually open a jijx window, btw.) ****************Terminal results*************** server:~ brian$ ./bridgebatch 1 2 3 4 5 6 starting jhs for bridge server... J HTTP Server - init OK Requires HTML 5 browser with javascript. A : separates ip address from port. Start a web browser on this machine and enter URL: http://127.0.0.1:65001/jijx ****************Terminal results*************** server:bridge brian$ cat startserver.ijs echo 1 load jpath '~user/bridge/bridgejhs.ijs' echo 2 load jpath '~addons/ide/jhs/core.ijs' echo 3 cocurrent'base' echo 4 startcommand=:verb define echo 'starting jhs for bridge server...' init_jhs_ '' ) echo 5 server:~ brian$ cat bridgebatch #!/bin/sh /Applications/j64-805/bin/jconsole '~user/bridge/startserver.ijs' -js 'echo 6' 'startcommand 0' 'echo 7' sleep 3 http://127.0.0.1:65001/jijx server:~ brian$ On Sun, Sep 11, 2016 at 12:16 PM, Gilles Kirouac <[email protected]> wrote: > A very partial tip on calling a script in Unix. > > > server:~ brian$ bridgebatch > > -bash: bridgebatch: command not found > > server:~ brian$ > > Try: ./bridgebatch > > When the executable is in the current dir, ./ is required before the name. > > Otherwise the shell searches only the directories in the PATH. > echo $PATH > > Not verified. I don't have access to a MAC now. > > See > https://developer.apple.com/library/mac/documentation/OpenSo > urce/Conceptual/ShellScripting/CommandLInePrimer/CommandLine.html > > http://stackoverflow.com/questions/733824/how-to-run-a-sh- > script-in-an-unix-console-mac-terminal > > ~ Gilles > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- (B=) <-----my sig Brian Schott ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
