Welcome Guest ( Log In | Register )


 
Reply to this topicNew Topic
How to attach CurrentDatetime to filename in XIB FTP script, XIB 211
Sairam Aripirala
post May 26 2009, 04:54 PM
Post #1


Visitor
*

Group: Members
Posts: 2
Joined: 22-May 09
From: Bangalore
Member No.: 530


Hi Everybody,

I have a question regrading the Datetime in FTP Script of XIB.

Is it possible to get the currentdate time in the FTP Script and attach it to the file name.

Anybody had experience in doing this kind of requirement ?

For Example:

CD $CORE_DATA"/ftp/public/alert";
-LIST "." INTO %F {
-RECV %F;
GET %F TO $CORE_ROOT"/archive/" %datetime%F;
IF(%FTPSTATUS IN "200"-"299") {
DELETE %F;
}
}


I tried like this in FTP script to get hours and minutes:

%hour=!$(date '+%H');
%min=!$(date '+%M');

but it is giving syntax error in retrieve method when I press OK button itself sad.gif .


Please suggest me. Thanks in advance.
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Skin designed by IPB Forum Skins