Search Results

Search: Posts Made By: fakesy
2,560
Posted By fakesy
Apologies I did not paste my code very clearly....
Apologies I did not paste my code very clearly. That is not a variable, but just a path.

I just found the problem - I did not specify the full paths for all the commands in my script.

Here is...
2,560
Posted By fakesy
Thanks for the reply. Here it is: ...
Thanks for the reply.

Here it is:
*/1 * * * * root /usr/local/bin/script

It does run fine because when I redirect the output to a text file like:
find . -maxdepth 1 | sed 's#./##' |...
2,560
Posted By fakesy
Script runs manually but not correctly from crontab
Hi all

I have this inside a shell script (bash):
cd DIRECTORY
find . -maxdepth 1 | sed 's#./##' | /usr/bin/xargs -I '{}' chown -Rv '{}' /DIRECTORY/'{}'

All the directories in this location...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 01:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy