Automator script to do a whois lookup
Posted
by
Snow Crash
on Super User
See other posts from Super User
or by Snow Crash
Published on 2012-09-21T13:57:59Z
Indexed on
2012/09/21
15:41 UTC
Read the original article
Hit count: 239
I'd like to take an IP address from my Terminal, right click, select Services > Whois and get the results back somehow.
This doesn't exist so I'm wanting to create a simple Automator script to do that. But, I'm running into a few problems.
This is what I've done - Automator Actions:
Get Specified Text
xxx.xxx.xxx.xxx
Run Shell Script
for x in "$@";
do whois $x;
done
View Results
But all I get in View Results is this:
(
""
)
Any suggestions?
© Super User or respective owner