[HPADM] weird scripting problem.
- From: "Paveza, Gary" <gary.paveza@xxxxxxx>
- Date: Mon, 25 Jun 2007 12:44:55 -0500
Okay, I'm at a loss. I'm trying to create a script which will go through
each group on the server and identify any file owned by that group which has
write access for either group or world (it's using the group owner because
that's how we assign responsibility)
Here is the snippet of code I'm using:
${ECHO} "Directories:" >> ${REPORT_FILE}
${ECHO} >> ${REPORT_FILE}
${FIND} / -group ${GROUP} -type d -perm -g=w -o -perm -o=w -exec ls -la
{} \\\; >>${REPORT_FILE}
${ECHO} >> ${REPORT_FILE}
${ECHO} "Files:" >> ${REPORT_FILE}
${ECHO} >> ${REPORT_FILE}
${FIND} / -group ${GROUP} -perm -g=w -o -perm -o=w -exec ls -la {} \\\;
${REPORT_FILE}
If I put an echo in front of each of the find commands, the output looks
correct:
/usr/bin/find / -group root -perm -g=w -o -perm -o=w -exec ls -la {} \;
However, it complains about exec not ending in an ";", which it clearly has
in the echo statement. Any ideas?
Also, typing the command at the command line exactly as shown in the echo
statement works just fine.
---------------------------------------------------------
Gary Paveza, Jr.
Technical Specialist - Architecture - HP CSE, SCSA
(302) 252-4831 - phone
--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@xxxxxxxxxxxxx
Name: hpux-admin@xxxxxxxxxxxxx Owner: owner-hpux-admin@xxxxxxxxxxxxx
Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
- Prev by Date: [HPADM] Re: SUMMARY: RE: OT: Cascade Brocade Switches
- Next by Date: [HPADM] Chinese printier
- Previous by thread: [HPADM] swchunk kernel parameter on 11.23
- Next by thread: [HPADM] Chinese printier
- Index(es):
Relevant Pages
|