CommandLine patch

pburge's picture

Hi,

I'm a Quartz composer newbie so I apologise in advance. I'm trying to create a screensaver that has a logo and the IP Address on the machine on it, I've installed the CommandLine plugin but have discovered thats its a unsafe patch... Does anybody know of a workaround? or is there anyway I can make the patch and safe patch?

Many thanks

Pburge

cwright's picture
Re: CommandLine patch

First, throw the command line patch in the trash -- you don't need it for this, so it's just adding complications. (Use the Host Info patch to get the machine's IP address)

to make an unsafe patch safe, you'll need KinemeCore, or you'll need to commission us to make a custom safemode workaround plugin. (Host Info is also "unsafe", so it's not directly solving anything with safe mode -- just removing dependence upon another plugin)

smokris's picture
Re: CommandLine patch

Try the Host Info patch --- this will provide the IP address without needing to shell.

This patch, however, is also "unsafe". To work around this you could install KinemeCore and enable "Unsafe Mode" for Host Info in ScreenSaverEngine.

pburge's picture
Re: CommandLine patch

Thanks for the reply guys, I did try the Host Info but instead of giving me the IP Address as 10.132 etc etc it gives fe80::1% etc.

toneburst's picture
Re: CommandLine patch

Is that the machine's MAC address, rather than its IP? Sounds like hexadecimal to me.

If it is the IP, you should be able to run that through a JavaScript patch to convert it to standard decimal notation.

This might help: http://javascript.about.com/library/blh2d.htm

a|x

cwright's picture
Re: CommandLine patch

that's an ipv6 ip ;)

looks like it's time to file a feature request to get multiple ips out of the Host Info patch... (I frequently have 2 active network devices, so which ip it picks is arbitrarily limited)