I’m trying to use “find” as part of a cron job and running into a problem. It seems that commands like:
$ find /home/
or
$ find /home//
Return:
find: /home: Permission denied
Has anyone found a workaround for this?
I’m trying to use “find” as part of a cron job and running into a problem. It seems that commands like:
$ find /home/
or
$ find /home//
Return:
find: /home: Permission denied
Has anyone found a workaround for this?
I think you can use on your cron a shell script I have done some like
#!/bin/bash
cd
find ./ -name “what we are searching”
exit 0
Also remember that find /home/ or /home wouldn’t work as home itself is not world readable you need find /home/user/
Somewhere, something incredible is waiting to be known.
Sagan
Yep. Changing to the homedir and using find ./ is exactly the change I made. Thanks for the reply