Kamakura san,

Sorry that we have been confusing you... I responded to your
questions from my own "normal environment" which is NOT the
j window, but rather the j console.

The host and host0 return the RESULT (stdout) of the expression
executed in the host environment. They report, respectively,
empty or 0 as the "result" if there was an error in the host
environment. In the jconsole environment, the stderr is also
displayed on the terminal and is very informative, e.g.

(working from jconsole, i.e. .../lib/j601/jconsole run in a
Mac Terminal screen (Applications>Utilities>Terminal) -

    host0 'ls -l'
total 0
drwx------   129 jkt  jkt  4386 May 23 21:27 Desktop
drwx------    43 jkt  jkt  1462 May 23 19:28 Documents
drwx------    43 jkt  jkt  1462 Mar  5 20:17 Library
drwxr-xr-x    10 jkt  jkt   340 Aug  2  2006 Magazines
drwx------    22 jkt  jkt   748 Mar 20 22:24 Movies
drwx------     6 jkt  jkt   204 Mar  6  2006 Music
drwx------    49 jkt  jkt  1666 May 23 19:48 Pictures
drwxr-xr-x     6 jkt  jkt   204 Jan 21 18:50 Public
drwxr-xr-x    72 jkt  jkt  2448 Apr 17 11:37 Sites

   host0 'ls -l lskdjfls'
ls: lskdjfls: No such file or directory
0
   host0'/sw/bin/convert /Users/kamakura/abc.eps /Users/kamakura/abc.bmp'
sh: line 1: /sw/bin/convert: No such file or directory
0

I think if you try your expression where you can see stderr
you will likely see what is going wrong.

- joey


At 06:50  +0900 2007/05/25, kamakura wrote:
Hi,

I confirmed that current directory includes the target file.
host0 'ls abc.eps'
abc.eps

I do not know how to change the current directory from J system, and then I moved the target file to the current directory where J system specified as the default directory.

Even if I write the full path, it seems to not be fine.

host0'/sw/bin/convert /Users/kamakura/abc.eps /Users/kamakura/abc.bmp'
0

Best regards.

Toshinari Kamakura

On 2007/05/25, at 6:26, Raul Miller wrote:

host0 'pwd >/tmp/mypwd'


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

Reply via email to