- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- find: missing conjunction
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 07:12 PM
09-09-2004 07:12 PM
find: missing conjunction
Use root to run cron job:
# find /var/adm/sa/* ! -name *gz -a -name ex* -exec /usr/contrib/bin/gzip {} \;
Sometimes, it performed successfully; sometimes, it returned:
find: missing conjunction
Is it related to system loading or any problem? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 07:24 PM
09-09-2004 07:24 PM
Re: find: missing conjunction
Put the strings specified with -name option in quotes so that shell will not try to expand them before find executes.
#find /var/adm/sa* ! -name '*.gz' -a -name 'ex*' ......
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 07:46 PM
09-09-2004 07:46 PM
Re: find: missing conjunction
Put the strings specified with -name option in quotes so that shell will not try to expand them before find executes.
#find /var/adm/sa* ! -name '*.gz' -a -name 'ex*' |xargs /usr/contrib/bin/gzip
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 08:06 PM
09-09-2004 08:06 PM
Re: find: missing conjunction
I will try to run in cron job later to test.
Also related link
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x958f8cc5e03fd6118fff0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 08:59 PM
09-09-2004 08:59 PM
Re: find: missing conjunction
So use as,
find /var/adm/sa/ ! -name \*gz -a -name ex* -exec /usr/contrib/bin/gzip {} \;
Where -->
/var/adm/sa/* is same as /var/adm/sa/ or /var/adm/sa directories there.
Or you can delimit the character's with quotes there as,
find /var/adm/sa/ ! -name "*gz" -a -name "ex*" -exec /usr/contrib/bin/gzip {} \;
-Muthu