Swiss File Knife
a command line
free external tools,
- download the free Swiss File Knife Base from Sourceforge. - open the Windows CMD command line, Mac OS X Terminal or Linux shell. - OS X : type mv sfk-mac-i686.exe sfk and chmod +x sfk then ./sfk - Linux: type mv sfk-linux.exe sfk and chmod +x sfk then ./sfk OS X and Linux syntax may differ, check the help within the tool.
sfk status target[:port] "status text" send a status to the SFKTray GUI tool for display, by UDP to given target host, or "local" for own machine. statustext fields v1 protocol version, always v1 slot=n target slot number 1-9 color=s set color s as one of: red green blue yellow orange gray grey white cyan purple black or with SFKTray Full only: 3- or 6 digit rgb hex value e.g. f00 = red, dddddd = light gray blink=s select 'slow' or 'fast' blink timeout=n time in seconds to display status. if not reconfirmed in that time the slot color changes to gray. timeout=15,orange display status for 15 seconds then change slot color to orange text='s' a text for display. must be surrounded by any delimiter not part of the text, normally single quotes '' about the target machine - use "local" if SFKTray runs on the same machine - else supply hostname or IP - default port used by SFKTray is 21343. SFKTray Free cannot use a different port. SFKTray Full can be run with a differen port like sfktray -port=5000 then use: sfk status local:5000 ... limitations only one instance of SFKTray can be used per machine. SFKTray Free supports 2 slots, i.e. slot=1 or slot=2. SFKTray Full supports 9 status slots and is available from: http://stahlworks.com/sfktray command chaining is supported without any chain input or output. please note: if a command behaves unexpected, compare exactly with the examples given below. not every typing error is detected. examples sfk status local "v1 slot=1 color=yellow text='checking service'" tell that a service is currently checked on slot 1 sfk status local "v1 slot=1 color=green timeout=15,orange text='ok'" tell that a service is currently running. the check must be repeated within 15 seconds otherwise the status times out and SFKTray changes the slot color to orange. sfk status local "v1 slot=1 color=red blink=slow text='service offline'" tell about an offline service on localhost slot 1 sfk -var for i from 1 to 9 +status local "v1 slot=#(i) color=gray" +endfor reset all status slots
sfk is a free open-source tool, running instantly without installation efforts. no DLL's,
no registry changes - just get sfk.exe from the zip package and use it (binaries for
windows, linux and mac are included).
read more about all sfk functions here.