SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTPing files and making file name current date

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTPing files and making file name current date
Author Message
Tim



Joined: 09 Oct 2001
Posts: 36

Post FTPing files and making file name current date Reply with quote

I'm very new to this program and I'm trying to create a script that will ftp a file and save it as the date. I have the FTP part down. Here is what I have so far:
FTPGetFile( "www.website.com", "XXXX", "XXXX", "/home/sites/site7/default.db", "S:\site7\default.db" )


Tue Oct 09, 2001 5:08 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: FTPing files and making file name current date Reply with quote

FTPGetFile( "www.website.com", "XXXX", "XXXX", "/home/sites/site7/default.db",
"S:\\site7\\@T"ddmmyyyy".db" )

Are you sure you want www.website.com and not ftp.website.com or just website.com?

: I'm very new to this program and I'm trying to create a script that will ftp
: a file and save it as the date. I have the FTP part down. Here is what I
: have so far: FTPGetFile( "www.website.com", "XXXX",
: "XXXX", "/home/sites/site7/default.db",
: "S:\site7\default.db" )

Tue Oct 09, 2001 6:15 pm View user's profile Send private message
Tim



Joined: 09 Oct 2001
Posts: 36

Post Re: FTPing files and making file name current date Reply with quote

I get a syntax error. How do I generate the date dynamically? The syntax error begins at the ddmmyyyy .

Here is what I have:
FTPGetFile( "www.website.com", "userid", "password", "/home/sites/site7/web/cgi-local/inventory/default.db",
"S:\\Website Clients\Inventory\Site7\Web Ready\Prior Inventory\\@T"ddmmyyyy".db")

: FTPGetFile( "www.website.com", "XXXX", "XXXX",
: "/home/sites/site7/default.db",
: "S:\\site7\\@T"ddmmyyyy".db" )

: Are you sure you want www.website.com and not ftp.website.com or just
: website.com?

Fri Oct 19, 2001 11:19 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: FTPing files and making file name current date Reply with quote

Make sure the statement takes one line only. Alternatively you can use & symbol to continue it on the next line. Please note that this web forum system automatically wrap lines that take longer than certan number or characters. If you pasted the text of the previous message, note that the wrapping was not intendent.

: I get a syntax error. How do I generate the date dynamically? The syntax
: error begins at the ddmmyyyy .

: Here is what I have: FTPGetFile( "www.website.com",
: "userid", "password",
: "/home/sites/site7/web/cgi-local/inventory/default.db",
: "S:\\Website Clients\Inventory\Site7\Web Ready\Prior
: Inventory\\@T"ddmmyyyy".db")

Fri Oct 19, 2001 11:48 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.