The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
find: 0652-019 The status on /interfaces/eu3/hmsl/EBS/20070722 is not valid. vishal_ranjan UNIX for Advanced & Expert Users 0 09-04-2007 12:31 PM
Help regarding Error message: A test command parameter is not valid skyineyes Shell Programming and Scripting 5 06-29-2007 05:38 AM
SAM Error non-zero exit status real-chess UNIX for Advanced & Expert Users 0 08-15-2006 08:56 AM
Installing RedHat 8.0 onto Dell PowerEdge SC1425 - hdc: status error: status = 0x58 fishsponge Red Hat 5 07-14-2006 02:53 PM
awk to find the status and send an email isingh786 UNIX for Dummies Questions & Answers 6 12-21-2005 10:12 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-26-2005
shihabvk shihabvk is offline
Registered User
  
 

Join Date: May 2005
Posts: 54
find error - The status not valid.

Hi,
I am writing a ksh script to delete old files from directory, which will be called by several wrapper scripts parallely.
The deletion is done using find command. It is working fine. but sometimes i get the error :
The status on /home/mydir/mfgsite is not valid.

The script is like this :

find ${ArchiveDir}/${mfgSite} -type f -mtime +${ArchivalPeriod} -exec rm -f {} \;

Could u please help me to find why it is coming and any solution

Thanks in advance
Shihab
  #2 (permalink)  
Old 07-26-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Are you running this script as root or a non-priviledged user?

If the latter applies, what are the permissions on that directory/file?

Cheers
ZB
  #3 (permalink)  
Old 07-26-2005
shihabvk shihabvk is offline
Registered User
  
 

Join Date: May 2005
Posts: 54
Hi,
I am the owner of the file and I have rwx permission on the directory
Interesting thing is the error comes sometimes only

Cheers
Shihab
  #4 (permalink)  
Old 07-26-2005
ssk ssk is offline
Registered User
  
 

Join Date: May 2005
Posts: 25
Smile

Can you run the script using set -x and give us the output ?

Lets see where exactly it is failing.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0