|
|
Prevent Terminal from opening without approval
While I realize that exploits can use means other than launching Terminal,
I thought this .login idea had creative (and educational) value... plus fun. So I took a stab at tweaking it. Since I have many homemade scripts that launch Terminal (mostly AppleScripts run via Script Menu/FastScripts)... I wanted to have this .bash_login method be as painless as possible. I've set it so that as soon as the "y" key is pressed, the command runs. Any other key kills it immediately. (i.e., no need to press return or enter in either case). If a script has more than one line, it doesn't get sent thru properly [can someone craft a "read-while" for me?]. But basic one-liners (even long ones) work fine. I guess it's a bit kludgy, but anyway:
-HI-
Prevent Terminal from opening without approval
Of course, if Terminal is ALREADY open
Prevent Terminal from opening without approval
Hmm... that 1 second timeout on the first read might be |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|