what's wrong in this script ?
Posted: January 7th, 2009, 12:32 pm
hi guys !
i'm just a beginner with linux scrpting and bash and so on but i've wrote i little scprit to move my downloads from my download folder to another one...
===================
#!/bin/sh
ORIG=/share/Qdownload/sabnzbd/complete/Series
DEST=/share/Qmultimedia/Incoming/Series
cd $ORIG
for f in `find . -type d|grep "^.\/"`; do
mv $f $DEST
done
==================
i'm running sabnzbd 0.4.5 on my nas (qnap 209 pro2). The problem is when the download is completed (download, repair via par2 and extraction) my script is supposed to move thes files to another folder. But instead i'm receving this prompt :
/share/Qdownload/sabnzbd/scripts/series.sh: line 8: find: command not found
obviously it doesn't seems to work
what's weird is when i lauch the script manually via a ssh session everything is just perfect.
any idea why it's not working via the script command in sab ?
thx to contributers !
i'm just a beginner with linux scrpting and bash and so on but i've wrote i little scprit to move my downloads from my download folder to another one...
===================
#!/bin/sh
ORIG=/share/Qdownload/sabnzbd/complete/Series
DEST=/share/Qmultimedia/Incoming/Series
cd $ORIG
for f in `find . -type d|grep "^.\/"`; do
mv $f $DEST
done
==================
i'm running sabnzbd 0.4.5 on my nas (qnap 209 pro2). The problem is when the download is completed (download, repair via par2 and extraction) my script is supposed to move thes files to another folder. But instead i'm receving this prompt :
/share/Qdownload/sabnzbd/scripts/series.sh: line 8: find: command not found
obviously it doesn't seems to work
what's weird is when i lauch the script manually via a ssh session everything is just perfect.
any idea why it's not working via the script command in sab ?
thx to contributers !