|
|
Permission checks in shell scriptA reader of my new book Wicked Cool Shell Scripts pointed out that the capability of testing a file permission with find using the '+' notation is GNU-specific.
Specifically, in script #49, findsuid, the line: for match in $(find /bin /usr/bin -type f -perm +4000 -print)might need to be tweaked on some Unix versions to be -perm -4000, which will produce the same basic results. That would look like this: for match in $(find /bin /usr/bin -type f -perm -4000 -print)Hope that helps clarify things!
Related Shell Script Programming articles:
✔ Secretly capture screenshots on my Mac?
When I used to work on a Linux system, there was a utility we had that would let me take screen captures every...
✔ Parsing "id" strings in a Shell Script?Hello Dave. I need a Bash shell script that creates a directories with the group names automatically when user logs in to the...
✔ Copy and Paste from the Mac OS X Command Line?I am constantly running commands in Terminal.app on my MacBook and then copying and pasting the results into email messages or documents. Yes,...
✔ Script to test line lengths for Twitter compatibility?I've been tasked with writing a series of tweets for a Black Friday marketing campaign and am finding it a bit tricky because...
✔ Shell script to convert lowercase to title case?As part of a project I'm working on, I find myself deep in a Linux shell script, needing to have a subroutine that...
Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help
right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
Categorized:
Shell Script Programming
(Article 3692,
Written by Dave Taylor)
Tagged: Previous: Another nice review of Wicked Cool Shell Scripts Next: Sneaky ls flags and bestcompress Reader Comments To Date: 2harish said, on March 20, 2009 4:24 AM:
hi
I do have a comment, now that you mention it!Check This Out Too... |
Recent Entries
Look for Answers
Recommended
All Our Categories
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and Blogging Building Web Site Traffic Business and Management Computer and Internet Basics d) None of the Above Facebook Help Google Gmail Help Google Plus Help HTML, JavaScript and Web Site Programming Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Kindle Fire Help Mac OS X Help Pay Per Click (PPC) Advertising Pinterest Help Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help Find Me on Google+ ADT on G+ |
Hello
Can you please tell me
1. How to monitor 'n' number of servers in solaris 10/9.
2. How to take bacukup of servers in solaris 10/9.
Please kindly mail me also.
Thanks in advance.
Regards,
Mohammed Mujahid