aix system

12 views
Skip to first unread message

mro...@pyleco.com

unread,
Jun 23, 2010, 9:14:58 AM6/23/10
to Business Basic
I want to get my computer name from info(3,4)

It is currently empty.


what must be initialized to get the name?

if i do a uname -a from the prompt it does have a name.


Thank you


Michael Robkin

Jim Douglas

unread,
Jun 23, 2010, 11:51:59 AM6/23/10
to busine...@googlegroups.com, mro...@pyleco.com, bbj-de...@googlegroups.com, BASIS Technical Support
Michael,

This isn't a BASIS group; it's a generic Business BASIC discussion group.  You probably want bbj-developer instead.

The BBj INFO(3,4) function uses this Java call internally; if it generates an error for any reason, it returns "":

>?java.net.InetAddress.getLocalHost().getHostName()
scrappy.local
>

If you paste that Java command into a BBj console session, you should see the error that's causing INFO(3,4) to return "".  Most likely, you're getting a security exception.


--
You received this message because you are subscribed to the Google Groups "Business Basic" group.
To post to this group, send email to busine...@googlegroups.com.
To unsubscribe from this group, send email to businessbasi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/businessbasic?hl=en.


Mike O'Neill

unread,
Jun 23, 2010, 4:56:18 PM6/23/10
to busine...@googlegroups.com
Michael,
 
here's what i get on my system:
READY                            
>PRINT INFO(3,4)                 
Rgr-001                     
>!uname -a                       
AIX Rgr-001 1 5 009014084C00
try looking at the manual page for uname.
at the # prompt issue the command: 'man uname' - (no ticks)
 
i think the -T flag allows this to be set
good luck,
Mike


From: "mro...@pyleco.com" <mro...@pyleco.com>
To: Business Basic <busine...@googlegroups.com>
Sent: Wed, June 23, 2010 8:14:58 AM
Subject: [BB] aix system
--
You received this message because you are subscribed to the Google Groups "Business Basic" group.
To post to this group, send email to busine...@googlegroups.com.
To unsubscribe from this group, send email to businessbasic+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages