-
Worker node ftp automation
I have tried to follow the guidelines in the CatDV Worker read me pdf to no avail.
This is what we want to do:
Watch a folder for video files.
When a file has been dropped in the folder;
1 compress this file to a low rez format
2 place the processed file in a local folder
3 move the original file to another local folder
4 upload the processed file to an ftp server
5 send an e-mail telling us about the success of the process.Everything except for the ftp-ing works.
By taking the arguments listed in the log file of Worker Node, and pasting them in Terminal, I get these results:
This is what it looks like in the log:
Conversion finished after 95.749s
[12:04:47.238]
root=/Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_UPLOAD origPath=/TEST11.mov mode=0 newRoot=/Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_original newPath=/TEST11.mov
Renaming /Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_UPLOAD/TEST11.mov to /Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_original/TEST11.mov
setMovieFile /Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_original/TEST11.mov on SourceMedia[‘/Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_UPLOAD/TEST11.mov’,start=0:17:26:13,end=0:17:48:11,video=XDCAM HD422 1080i50 (50 Mb/s) (1920×1080 25.0fps),audio=24-bit Integer (48.0 kHz, stereo, 16 bit),still=false,numFrames=548,importer=QuickTime (Movie),startFrame=0,movieStart=0,movieFrames=548,movieDuration=548,qttc=0:17:26:13]@f80bf7
Import as Movie, resulting in 1 clip(s) duration 0:00:21:23
Exported to /Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_output/TEST11.mov, took 95.749s
Moved file to /Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_original/TEST11.mov
[12:04:47.334]
All change
Completed Task 8 ‘/TEST11.mov’
arg[0]: /usr/bin/ftp
arg[1]: -u
arg[2]: xx**@**********bc.no/4_stj_REISE/til_LYDETTERARBEID/'>ftp://nnnn:xx**@**********bc.no/4_stj_REISE/til_LYDETTERARBEID/
arg[3]: /Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_output/TEST11.mov
[12:30:36.535]
Date: Mon, 16 Aug 2010 12:30:36 +0200 (CEST)
From: workernode_fish@xxx
To: support@xxx
Subject: test_ftp
X-Mailer: CatDV Worker Node 3.1.0The task list details are as follows:
But the server is not uploading anything to the ftp server.
I’ve used this command as stated in the Worker Node notes:
/usr/bin/ftp -u xx**@**********bc.no/4_stj_REISE/til_LYDETTERARBEID/'>ftp://nnnn:xx**@**********bc.no/4_stj_REISE/til_LYDETTERARBEID/ $l(This is what the manual suggests: /usr/bin/ftp –u ftp://user:password@host/public/upload/ $l)
When I try the same arguments as stated above from the log into Terminal, where $l is substituted by the file path of the processed file, I get this result:
fishrender01:TEST_output onlinereise$ /usr/bin/ftp -u xx**@**********bc.no/4_stj_REISE/til_LYDETTERARBEID/'>ftp://nnnn:xx**@**********bc.no/4_stj_REISE/til_LYDETTERARBEID/ /Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_output/TEST11.mov
Connected to nnnn.ftp.abc.no.
220 Servers identifying string
331 Password required for nnnn
230-Last login was: 2010-08-16 12:47:14
230 User nnnn logged in
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I
250 CWD command successful
250 CWD command successful
local: /Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_output/TEST11.mov remote: /Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_output/TEST11.mov
229 Entering Extended Passive Mode (|||56181|)
550 /Volumes/Fish/Til/4_stj_reise/Til_lyd/TEST_output/TEST11.mov: No such file or directoryWhen I cd to the correct local folder and only state the processed file, I have success.
fishrender01:TEST_output onlinereise$ /usr/bin/ftp -u xx**@**********bc.no/4_stj_REISE/til_LYDETTERARBEID/'>ftp://nnnn:xx**@**********bc.no/4_stj_REISE/til_LYDETTERARBEID/ TEST11.mov
Connected to nnnn.ftp.abc.no.
220 Servers identifying string
331 Password required for nnnnnnnn
230-Last login was: 2010-08-16 12:48:34
230 User nnnn logged in
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I
250 CWD command successful
250 CWD command successful
local: TEST11.mov remote: TEST11.mov
229 Entering Extended Passive Mode (|||64405|)
150 Opening BINARY mode data connection for TEST11.mov
100% |*****************************************************************************************************************************************************************************| 3045 KB 929.94 KB/s 00:00 ETA
226 Transfer complete
3118882 bytes sent in 00:03 (887.92 KB/s)
fishrender01:TEST_output onlinereise$This tells me that the $l command may be too informative, but I cannot find a different variable that I should use. I would appreciate any help that could enlighten me.
Cheers,
Pål Henrik