Something like the WXP "spawn code" for OSX -

   OSXip =: 3 : '; 1{ <;._1 '' '', 2!:0 ''ifconfig en0 | grep "inet "'''
   OSXip ''
10.1.1.110

The same idea would work in Linux/Unix but would require
some tweaking for differently formated results from ifconfig



                  ** "bug" report **

On the "Host page" of the dictionary, i.e.

  j601/system/extras/help/dictionary/dx002.htm

it states that 2!:0 et.al. are "Not available for Windows or Macintosh."
I believe Macintosh, being a Unix based system, should be removed from
the exclusions.

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

Reply via email to