Search Results

Search: Posts Made By: panacea
Forum: OS X (Apple) 03-01-2012
16,365
Posted By [MA]Flying_Meat
Ah! Sorry. The quoting thing gets me...
Ah! Sorry. The quoting thing gets me periodically. When to quote/not to quote, which quote method... You can probably remove the quotes from within that particular if statement and it would probably...
Forum: OS X (Apple) 01-11-2012
16,365
Posted By [MA]Flying_Meat
from "# If..." to "exit 0" Your script...
from "# If..." to "exit 0"

Your script should actually start with:
#!/bin/bash
# and insert any comments here, like what this script does

Then you want to name it such that you won't...
Forum: OS X (Apple) 12-22-2011
16,365
Posted By [MA]Flying_Meat
step one: get the currently logged in user name. ...
step one: get the currently logged in user name.
If it were a loginhook, $1 would work. I've found that problematic for logouthooks, so I use $USER.

step two: verify they aren't admin, or aren't...
Forum: OS X (Apple) 03-02-2012
16,365
Posted By [MA]Flying_Meat
Your find line: Don't forget \! -name Users ...
Your find line:
Don't forget \! -name Users

Otherwise, yes It would not delete JoeUser, .localized, Shared, nor $USER.

You definitely want to exclude Users, as that would get deleted if it's...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy