This may work -- depending on what it's used it for -- but all you're (conceptually) doing here is storing the IP in a file and retrieving it when necessary. If the IP changes for whatever reason (DHCP, PPP auto-negotiation, etc) you'll have to update the host table manually to get the new IP. And if your host is multi-homed or has alias addresses, this won't even try to cope with them. So... it depends on what the originally poster is trying to do. On Thu, 17 Jan 2002, Jeff Bull wrote: > > Hi Eric, > 1. put an entry in the Hosts Table for the current system-name > 2. RTVNETA SYSNAME(&field) - &field *char 8 > 3. PING &field > 4. RCVMSG MSGQ(*PGMQ) MSGTYPE(*INFO) MSGID(TCP3203) MSGDTA(&data) - > &data *char 39 > 5. CHGVAR &IPADR %sst(&data 25 15) > > You should be able to get this to work. > > Jeff B >
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.