System information
General Reference Guide Export Block Descriptors
RG-001-0-EN ver 1.5 eWON® - 20/03/2009 - ©ACT'L sa Page 191
8.3.16.5 Examples
Will make a TAR file named “mytar.tar” containing the file /usr/file1.txt
Will make a TAR file named “mytar.tar” containing the files /usr/MyFile1.txt and /usr/MyFile2.txt
Will make an eTAR file named “mytar.tar” containing the eWON configuration file named “MyConfig.txt”
Will make an eTAR file named “mytar.tar” containing the eWON configuration file named “MyConfig.txt” and the file /usr/file1.txt
Will make a TAR file named “mytar.tar” containing all the /usr directory
Will make an eTAR file named “mytar.tar” containing
all the /usr directory,
the program file named “program.bas”,
the configuration file named “config.txt”
and the communication configuration file named “comcfg.txt”
Will put by FTP the file “Test_TAR.tar” containing the files Page1.shtm and Page2.shtm.
Note that for FTP action, the filename is the first parameter of the PutFTP instruction, then the $fn parameter is not required in the TAR
command.
note: It is forbidden to include an item that described a TAR format itself.
THE TAR IS NOT RECURSIVE !
Forbidden example: $dtTR $td{ $TR ……….. }
8.3.17 Additional exports available
These are all the files from the eWON configuration. They are equivalent to the file available through the eWON FTP server.
$dtTR $td {/usr/file1.txt} $fnmytar.tar
$dtTR $td {/usr/MyFile1.txt},{/usr/MyFile2.txt} $fnmytar.tar
$dtTR $td {$dtCF $ftT $fnMyConfig.txt} $fnmytar.tar
$dtTR $td {/usr/file1.txt},{$dtCF $ftT $fnMyConfig.txt} $fnmytar.tar
$dtTR $td {/usr/*} $fnmytar.tar
$dtTR $td {/usr/*},{$dtPG $fnprogram.bas},{$dtCF $ftT $fnconfig.txt},{$dtSC $ftT
$fncomcfg.txt} $fnmytar.tar
putftp "Test_TAR.tar","[$dtTR $td{/usr/Page1.shtm},{/usr/Page2.shtm}]"
$dtTL Tag List
$dtPG Program
$dtCF Configuration File
Table 183: additional exports available