On Tue, 17 Nov 2009, Sherlock Ric wrote:
> > From: bill lam
> > On Mon, 16 Nov 2009, Devon McCormick wrote:
> > > whoami ''
> > > +--------------+---------------+
> > > |\\NY0193FF51XX|devon_mccormick|
> > > +--------------+---------------+
> > >
> > > I can then use the machine name to customize the target name.
> >
> > Will that be over-skilled? 2!:5 'computername' and 'username' should
> > return similar information. Also 1!:43'' should return the posix pwd.
>
> Those solutions work well for Windows.
>
> The nicest cross-platform method to finding a computer's hostname that I know
> is:
>
> CRLF -.~ shell 'hostname' [ require 'task'
In that case, I prefer 2!:5 IFUNIX{::'COMPUTERNAME';'HOSTNAME'
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm