catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 10-07-2007, 10:05 AM   #1 (permalink)
Registered User
 
Join Date: Feb 2006
Posts: 13
FTP from one site to another

I am implenting an automated ordering system where the following happens:

An order is placed via the clients' site and is paid for
A CSV file is created upon payment

I need to know of an automated way to ftp a file from our site onto the distributors' site.

Is this feasible and if so, is it feasible via a Catalyst server?
orandaWeb is offline   Reply With Quote
Old 10-07-2007, 01:13 PM   #2 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Hi,

There is nothing automated on our side that you could setup to do this, however I am sure there are asp/php scripts available that could be modified to your needs.
paulredpath is offline   Reply With Quote
Old 11-07-2007, 07:28 AM   #3 (permalink)
Registered User
 
Join Date: Feb 2006
Posts: 13
I found an FTP script here: http://www.codetoad.com/asp_ftp.asp

I have been able to upload a file using the DOS prompt FTP command from my local machine. This was using the script generated from the above code but when I run it on the server via a webpage, nothing happens.

I found these details in the event of the script not working:

For those who are having a access denied problem, you need to copy 2 files (ftp.exe and cmd.exe) in a directory where IUSER have execute right.


You need to have C:\winnt\system32\wshom.ocx registered to use the WSCRIPT.SHELL object.
' It is registered by default, but is sometimes removed for security reasons (no kidding!).
' You will also need cmd.exe in the path, which again is there, unless the box is locked down.


Is the server setup with the above features?
orandaWeb is offline   Reply With Quote
Old 11-07-2007, 09:59 AM   #4 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Becky,

You wont have access to the command shell for security reasons, I has a quick look for any components that might do this instead but couldn't see anything.

Anyone else got an idea?
paulredpath is offline   Reply With Quote
Old 11-07-2007, 01:15 PM   #5 (permalink)
Registered User
 
fbridge's Avatar
 
Join Date: Apr 2003
Posts: 106
why not "post" the data to your client's site or automate the client to come and "get" the files.

saves having to faff around with 3party components.
__________________
old dog - anxious to learn new tricks
fbridge is offline   Reply With Quote
Old 11-07-2007, 01:49 PM   #6 (permalink)
Registered User
 
Join Date: Feb 2006
Posts: 13
The data has to be sent as a physical text file so that their system can poll the directory.

Their system will also not come and look at our site, we have to get the file onto theirs.

How would POST work in that way?
orandaWeb is offline   Reply With Quote
Old 12-07-2007, 07:40 AM   #7 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
asp.net 2.0 has an ftp client built in

Jas
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 16-07-2007, 10:46 AM   #8 (permalink)
Registered User
 
fbridge's Avatar
 
Join Date: Apr 2003
Posts: 106
post the data to receiving script which then writes it to file
__________________
old dog - anxious to learn new tricks
fbridge is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:58 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.