checking for localhost versus remote host
[1/3] from: princepawn::mailandnews::com at: 15-Sep-2000 10:05
I am writing a script and I only want the trace info created and logged if the
script is running on a remote machine, not my own.
Is there a programmatic way to check for what machine my script is running on?
terrence-brannon: [[princepawn--yahoo--com] perl-refugee myth-gamer]
free-email: http://www.MailAndNews.com
free-usenet: http://www.mailAndNews.com
; all the above is real REBOL code, believe it or not.
[2/3] from: jeff:rebol at: 15-Sep-2000 14:06
Howdy, Terrence:
my-box: "bluelightspecial"
if my-box <> read dns:// [do-remote-trace-info]
-jeff
[3/3] from: al:bri:xtra at: 16-Sep-2000 10:21
Terrence wrote:
> I am writing a script and I only want the trace info created and logged if
the script is running on a remote machine, not my own.
> Is there a programmatic way to check for what machine my script is running
on?
>> rebol/version
== 0.10.33.3.1
>> either exists? %MyMachine.dat [print "Hey! This is my machine!"] [print
Hmmmm, I'm on someone else's machine!
]
Hmmmm, I'm on someone else's machine!
I hope that helps!
Andrew Martin
ICQ: 26227169
http://members.ncbi.com/AndrewMartin/
http://members.xoom.com/AndrewMartin/