That link is a good start.

There are some hooks in the system to determine if the called script is being invoked from a terminal or not (perhaps as a CGI call in a web page). This is useful for dealing with -parms and piped expressions in the *nix environment. If that is of interest, you can find it in the message archives (I would go find it, but in a bit of a time crunch at the moment), or I can send you a couple of little scripts that I use all the time.

- joey


On 2015/05/06 05:52 , Ben Gorte - CITG wrote:
Like this?

http://jsoftware.com/help/user/hashbang.htm

ben
________________________________________
From: [email protected] 
[[email protected]] on behalf of Ryan 
[[email protected]]
Sent: Wednesday, May 06, 2015 14:48
To: Programming forum
Subject: [Jprogramming] command line script

Hi,

Is it possible to write a standalone J script similar to a bash or
python script
that you can run from the command line (in Linux or Mac terminal)?
What would be the shebang line?

Ryan


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to