#!/bin/sh vpnclient connect PROFILE(whereas PROFILE has to be replaced by the Name of the File your Cisco VPNClient works with located in …/private/etc/opt/cisco-vpnclient/Profiles/ – btw the path is invisible but can be made visible with e.g. Wrote a little script (I used Textedit) containing just the following two lines: Installed the Files "SleepWatcher" and "SleepWatcher StartupItem" from the downloaded SleepWatcher File.Ģ. Now, by the help of SleepWatcher (btw: thanx for the great hint and thanx for the software) the connection is always being reestablished automatically w no need of using the GUI anymore. I was annoyed by always being forced to reestablish the Internetconnection by the Cisco-GUI after waking up my machine. Hint: TextMate/TextMate.app/Contents/SharedSupport/Support/bin/play) * BTW, if you are a user of the excellent TextMate text-editor from, there's an (apparently) undocumented cmd-line sound app already tucked away inside it. This created a problem with trapped heat and increased the risk of toting around a unit that I thought was safely asleep that wasn't. In the past, I've run into a sporadic problem of the PB not sleeping properly when I closed the lid. Yes, it's stupid, but besides making me laugh, it actually does has a practical effect - it tells me that the PB has shut down successfully before I tuck it away in a carrying case and begin hefting it around. (Experienced AppleScripters could probably do some similar magic with osascript or something.) The sound I have the PowerBook play comes from here. sleep script basically invokes a cmd-line sound player app* such as found here or here. I use SleepWatcher to play a sound every time my PowerBook goes to sleep.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |