3 ms·
I'm an old school unix guy who's now an iPhone developer; Any word on which of these work on mac?
by gte910h 17y ago
I'm an old school unix guy who's now an iPhone developer; Any word on which of these work on mac?
- makecheck 17y ago"tput" exists in /usr/bin. I imagine bash sockets would work properly. I'm not aware of Mac versions of the others. It is possible to use Python to display GUIs from the command line on Mac OS X, e.g. env VERSIONER_PYTHON_PREFER_32_BIT=yes python >>> import wx >>> app = wx.PySimpleApp() >>> wx.MessageBox("hello, world") AppleScript is capable of this, but "osascript" doesn't allow GUIs to pop up when run from a shell.
- Hoff 17y agoFor user notification, get yourself Growl. tput and reset are present. If you really have a VT serial terminal, then setleds is going to be an echo and a tr to ship out the escape sequence. Might be a different (or easier) way... If you're working with a standard Mac keyboard (and not a VT terminal), here you go http://googlemac.blogspot.com/2008/04/manipulating-keyboard-leds-through.html http://googlemac.blogspot.com/2008/04/manipulating-keyboard-... Applescript can do dialogs (there are hooks in Xcode) or the Applescript editor. (You can get the scripts stuff up in the menu bar for quick access.) logger is present in Mac OS X. pmset is a path akin to setterm. smbclient is available. (Few Windows boxes have this path open, however.) There are various approaches for the tcp stuff. Start with nc (netcat), which is built in.