find error - The status not valid.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users find error - The status not valid.
# 1  
Old 07-26-2005
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  
Old 07-26-2005
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  
Old 07-26-2005
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  
Old 07-26-2005
Bug

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

Lets see where exactly it is failing.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Find command giving bad status error

In a fastload teradata utility I am trying to delete the files which are older than 30days using the find and rm command as following. find . -name 'xxx_*' -mtime +30 -exec rm -f {} \; I expect it to delete all the files older than 30 days but sometimes it gives an error : find: bad status--... (3 Replies)
Discussion started by: stelkar
3 Replies

2. Shell Programming and Scripting

Find the remote server status.

Hi All, I would like to connect from "Instance A" to "Instance B" with the help of sftp. Where as Instance B is having clustered servers ( 2 servers pointing same instance ). Now, my question is before connecting to "Instance B" from "Instance A" how do know whether server is running or not.... (3 Replies)
Discussion started by: Girish19
3 Replies

3. Solaris

XDMCP fatal error: Session declined No valid address

Hello all, I just post here to expose an issue I have encountered two days ago and finally successfully solve just right now using info on this site( but not only). Config : Two SUN/ORACLE sparc Solaris 10 system. Purpose : do a remote CDE login from host one to the host two. method: from... (0 Replies)
Discussion started by: sunsunsun
0 Replies

4. UNIX for Dummies Questions & Answers

Eclipse Error: The custom VM you have chosen is not a valid executable.

Hello there I am having the following problem: I installed Eclipse on my computer and when I went to Applications->Programmng->Eclipse it says: The custom VM you have chosen is not a valid executable. I am pretty new to Ubuntu ( 1 week ) so after I first googled this problem: I did the... (0 Replies)
Discussion started by: li_bi
0 Replies

5. Shell Programming and Scripting

Find exit status problem

Hi All Its strange or i am doing it wrong.When find run successful it return exit status 0.And same if it didn't run successfully it return zero. find /var/www/html -maxdepth 1 -type f -name *.dsadas echo $? 0 find /var/www/html -maxdepth 1 -type f -name *.php... (1 Reply)
Discussion started by: aliahsan81
1 Replies

6. Solaris

XDMCP fatal error: Session declined No valid address

Hi ppl, anyone has encounter this error before? I can't remote login to another machine residing in the same subnet via CDE and the error I get in var/dt/Xerrors is XDMCP fatal error: Session declined No valid address Warning: Name: submenu_options_button Class: XmRowColumn ... (2 Replies)
Discussion started by: xiaochensg
2 Replies

7. UNIX for Advanced & Expert Users

find: 0652-019 The status on /interfaces/eu3/hmsl/EBS/20070722 is not valid.

I am getting this error when i issue find command. Any advice. Regards, Vishal (0 Replies)
Discussion started by: vishal_ranjan
0 Replies

8. Shell Programming and Scripting

Help regarding Error message: A test command parameter is not valid

Hi I am getting few messages when trying to run my script from the following lines in the script if test then // SomeCode fi The messages are as follows: testing.sh: OBLIGOR_GROUP_ID: 0403-012 A test command parameter is not valid. testing.sh:... (5 Replies)
Discussion started by: skyineyes
5 Replies

9. Red Hat

Installing RedHat 8.0 onto Dell PowerEdge SC1425 - hdc: status error: status = 0x58

I have successfully installed RedHat 8.0 onto a Dell PowerEdge SC1425 today. This server has two SATA hard drives, and an IDE DVD-ROM drive. Using the following kernel parameters, i successfully installed across both hard drives from CD: ide0=0x1f0,0x3f6,14 vga=791 resolution=1024x768 expert... (5 Replies)
Discussion started by: fishsponge
5 Replies
Login or Register to Ask a Question