But when i execute the script which is like the following they don't work, i don't see 30 days old files are coppied, any comments? i have tried it hard but could not find the cause of this issue
when i have removed it then it gives the following error msg:
./test.sh: line 10: find: command not found
I don't understand why, all i wanted to do is to make the script a bit generic for log compressing & moving.. I can do it normal way without using variables but anyways i would like to find out what the issue is
You have made a mess...
You overwrited your PATH env variable and so now it finds no commands since PATH=/data/log/so choose another name for your variable this one is SACRED!
THanks a lot, i could not realise it, when i checked "env" yes there is PATH as well, that was copy-paste from another script which i could not think twice about it:D
KR
EAGLE
---------- Post updated at 04:26 PM ---------- Previous update was at 02:54 PM ----------
Actually it is coming from a careless copy-paste and i could not realise it,
Like VBE said it really messed everything and it has to be checked before proceeding..