Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

get-word in a tcp port description

 [1/3] from: caw::cs::mu::oz::au at: 22-May-2001 4:33


I'm not sure how to do this: server: "machine-1" listen-port: open/lines tcp://:server:8000 This (obviously) doesn't work...what I want to get is listen-port: open/lines tcp://machine-1:8000 How to you get the value of a word "in-the-middle" of an expression? (I know how do it in tcl, but let's not talk about that !) cheers chris

 [2/3] from: brett:codeconscious at: 22-May-2001 14:51


Well it doesn't get the value it creates one but I believe it gives you want you want:
>> server: "machine-1"
== "machine-1"
>> join tcp:// [server ":8000"]
== tcp://machine-1:8000 And for interest:
>> server: 'machine-1
== machine-1
>> join tcp:// [server ":8000"]
== tcp://machine-1:8000 Brett.

 [3/3] from: petr:krenzelok:trz:cz at: 22-May-2001 6:52


Chris Wright wrote:
> I'm not sure how to do this: > > server: "machine-1" > listen-port: open/lines tcp://:server:8000
1) you don't open listen-port using naming convention. If your intention is to really open listen port, then you have to use: listen-port: open/lines tcp://:8000
> This (obviously) doesn't work...what I want to get is > listen-port: open/lines tcp://machine-1:8000
what about using 'join? remote-port: open/lines join tcp:// [server ":8000"] Should work, hope that helps :-) Cheers, -pekr-