@angelheart
Quote:
What command in CLI do i use for Shownetstatus i will need to scrape external IP ?
ShowNetStatus IS the command.
use this to get just the local IP address:
cut "`shownetstatus`" w=16
> cut "`shownetstatus`" w=16
192.168.1.101
Note: use use backquotes around shownetstatus.
Another way to use wget to create and envvar would be:
wget
http://wtfismyip.com/text -O - -q >env:ExternalIP
same applies for the cut command:
cut "`shownetstatus`" w=16 >env:InternalIP
This is not the recommended way to create envvars but until we get recursive command embedding it will have to do.
It would be nice to be able to do things like:
SetENV InternalIP `cut "`shownetstatus`" w=16`