I`v not really had any luck with using SSPU`s ftp. (personally I think there’s a bug and ftp has never worked in SSSPU 7.x, but then again no ones complained, so maybe I`m doing something wrong??? or everyone is scared to work with SSPU :D)
The strange thing is my ftp status in SSPU always comes back as successful with no errors, but no files appear on the destination server.
So, I decided to write up my own ftp configuration, to transfer files as soon as SSPU had done its transformations.
Read on to find out how its done
Now I know I could of used publisher and set it to transfer all the files at midnight or written a service to push files across..
But I wanted SSPU to do what it was supposed to.. So heres what I did as a work around.
Step 1. Install FTP client
Unfortunatly windows command prompt FTP is very very basic!
So I decided to go ahead and install NcFTP.. Why, well its free.
and has all the commands I needed to ftp the SSPU transformed site.
Info on NcFTP:
The program has been in service on UNIX systems since 1991 and is a popular alternative to the standard FTP program, /usr/bin/ftp. NcFTP offers many ease-of-use and performance enhancements over the stock ftp client, and runs on a wide variety of UNIX platforms as well as operating systems such Microsoft Windows and Apple Mac OS X.
Step 2. Setup NcFTP connection details.
Create a text file remember to set the permissions on the file so no one else has access..
Enter your connection information into the text file: ‘bluestudios.conf’.
host ucm.bluestudios.co.uk
user sim01
pass y34hR1ghtL1k3ImG0nn4Sh0wY0u!?
The server connection details should look like the above.
Save the file.
Step 3. Write out SSPU.config.
In your <job></job> tags add the following trigger:
<trigger when=”after” type=”cmd”>
cmd /C ncftpput -R -f x:\ucm\sspu\ftp\bluestudios.conf /I/LOVE/SSPU x:\ucm\sspu\offers\21
</trigger>
This will run after the transformation has been complete.
And will move all files from offer-id 21 to the bluestudios server SSPU directory
Don`t forget you will have to restart SSPU services to pull in the updated config!
I hope this has helped anyone who has experienced the same problem as me…
Or if anyone has a solution to fixing SSPU ftp please pass it on and don`t say upgrade to 10gR3 ![]()
Thanks.
I haven`t had time to test this out just yet.. But in theory should work.. Will update soon!
Tested and works! The only thing is it copies the cache/tmp folder over which usually gets deleted.
But at least all the files now get ftpd across

5 Responses for "Guide:: Fixing FTP with SSPU. (Site Studio Publishing Utility)"
Odd, I managed to get the FTP “working” (in dev) with out too much drama.
I use the term working loosely tho. As it is sending the site bundled as a zip.
The really strange thing; it was sending the same zip every three minutes.
This is with the manual publish set.
Press button, publish site, it keeps sending.
Publish again, it sends the new site wholly and continuously.
We found no options or settings that would cause this (we did not look very hard).
Decided it was ‘working as intended’ and went back to the client.
I see the zip bundle in the /offers/id/ZFS being constantly recreated with the static site every 10-20 seconds. This is with 10g Release 3 (10.1.3.4.0)
But when I check the ftp site its dumping the files to; its empty.
I probably need to do a bit more investigating.
But as a quick fix, I used to above solution which works for me
or does what I thought SSPU should do..
I`m sure SSPU 7.x has similar problems.
I don`t understand why you think SSPU is working as intended.
——————————————-
I`m going to retry on a clean win 2003 WM instance..
and see If I can get the site to transfer succesfully manually. to a local FTP
Had a trouble where siclone was munging CSS to ridiculous relative links anywhere i had ‘url(”")’ patterns.
Had to make a ghetto bypass…
in sitestudio.config under
…
cmd /c bypass.bat “%%fi” “%%fo” “%%u”
…
with bypass.bat containing:
wget -O %2 -o output.txt %3
wget from: http://gnuwin32.sourceforge.net/packages/wget.htm
Grab the dep. packages.
Can be used to bypass URL munging on any, unfortunately SICLONE doesn’t give us the temp file name, so it can’t be done w/o grabbing (unless you want to iterate over the /offer/NNN/ for download*.tmp files, this is cleaner and easier though.)
Ahem.
^filterset type=”filter” path=”.*\.css”^
^filter type=”cmd” use-input-as-output=”false”^
cmd /c bypass.bat “%%fi” “%%fo” “%%u”
^/filter^
^/filterset^
What version of SSPU are you using?
Leave a reply