This is a utility I have been looking for. It allows you to execute tasks when the computer/display goes to sleep and/or wakes up. Very nice.
Here is a little more discussion about it.
Everybody loves the idea to be able to login to the iPhone via ssh and marvel at the fact that this exquisite piece of HW is actually running UNIX (well, a stripped down version of Mac OS X, anyways). It soon dawns that EVERY iPhone has the same root password installed - which is not real security threat considering the fact that ssh as means to login is not supposed to be running anyways. Once you jailbreak your device, you are able to login, but so is everybody else.
Now, when you put on your sysadmin hat and go an change the root password on any of the mobile Mac OS Xes, you'll get a nasty surprise.
The wmctrl program is a UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager
Systhread is a site about operating systems and programming for real operating system and programming enthusiasts, hobbyists, evangelicals and the like. It is derived from previous sites I have operated and had to (for one reason or another) abandon.
This guy has some goodies, like scp-resume ...
The follow assumes that the PXE is being setup on a private subnet of 192.168.1.0, and that the server is being setup as 192.168.1.77 and is also named jazz. Please edit these files as needed to reflect the proper network that you use, as well as the hostname in the /etc/hosts file. Change the client names and/or IPs to reflect what you would like to serve out.
In a project I was working on, I needed to hand over a couple of parameters to another script running on a different machine on the network behind a firewall. Copying a file or opening a socket was not an option.
I decided to use a simple encoding scheme for all the information, so the executing shell wouldn't trip over possible spaces in the parameter.
Since my script had to run on a UNIX box where perl might not be an option, I had to stay simple korn shell. I only use the UNIX commands
This book is suitable for classroom use as a general introduction to programming concepts.
The original article.
Ever wonder how to figure out if if a variable/userinput is numeric? Here is a very elegant solution: