-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error with awk #2
Comments
I think it's on line 87. local destsize=`ls -la "$destfile" | awk '{ print $5}'` with local destsize=$(ls -la "$destfile" | awk '{print $5}') |
I replaced the line 87 but I still have te same error... |
Can you send the complete logs? |
Here's the complete log : root@heisenberg:/home/mikael# /etc/init.d/ftp-sync /home/share/videos FTP Sync v1.6 (2013/06/18 19:08:33)Checking connection to ftp://XX.XXX.XXX.XXX:21/done/juin/Series/... Successfully connected!Script PID: 13199 MD5 file: /etc/ftp-sync/ftp-sync.md5Finding files... Regex: Gameawk: line 1: syntax error at or near * Time spent: 00:00:08awk: line 1: syntax error at or near * |
Can you test these commands : wget -S --spider --ftp-user="XXX" --ftp-password="XXX" -O - "ftp://XX.XXX.XXX.XXX:21/done/juin/Series/Game_Of_Thrones/Game.of.Thrones.S03E09.720p.HDTV.x264-EVOLVE/Game.of.Thrones.S03E09.720p.HDTV.x264-EVOLVE.mkv" >&1 2>&1 | grep '^213' | awk '{print $2}' wget -S --spider --ftp-user="XXX" --ftp-password="XXX" -O - "ftp://XX.XXX.XXX.XXX:21/done/juin/Series/Game_Of_Thrones/Game.of.Thrones.S03E09.720p.HDTV.x264-EVOLVE/Game.of.Thrones.S03E09.720p.HDTV.x264-EVOLVE.mkv" >&1 2>&1 | grep ' Game.of.Thrones.S03E09.720p.HDTV.x264-EVOLVE.mkv$' | awk '{print $5}' echo $(awk 'BEGIN{srand();print srand()}') echo $(date +"%s") |
here are the results : wget -S --spider --ftp-user="XXX" --ftp-password="XXX" -O - "ftp://XX.XXX.XXX.XXX:21/done/juin/Series/Game_Of_Thrones/Game.of.Thrones.S03E09.720p.HDTV.x264-EVOLVE/Game.of.Thrones.S03E09.720p.HDTV.x264-EVOLVE.mkv" >&1 2>&1 | grep '^213' | awk '{print $2}'
wget -S --spider --ftp-user="XXX" --ftp-password="XXX" -O - "ftp://XX.XXX.XXX.XXX:21/done/juin/Series/Game_Of_Thrones/Game.of.Thrones.S03E09.720p.HDTV.x264-EVOLVE/Game.of.Thrones.S03E09.720p.HDTV.x264-EVOLVE.mkv" >&1 2>&1 | grep ' Game.of.Thrones.S03E09.720p.HDTV.x264-EVOLVE.mkv$' | awk '{print $5}'
echo $(awk 'BEGIN{srand();print srand()}')
echo $(date +"%s")
|
Hi, |
I have updated the README.md for the error awk: line 1: syntax error at or near |
Thanks for your reply !
Now i don't have the previous syntax error and the script can connect to the distant ftp server without any problem.
It can also get the list of files to download but each time it fails and i have these erros :
Still running it on a debian 7 server...
The text was updated successfully, but these errors were encountered: