02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter —Program Instructions<br />

External Command; Account Secret<br />

Purpose Creating an Account Secret for use with the TRANSFER NET statement.<br />

Syntax secret [-t] (create a secret)<br />

For user /admin/ two more functions are available:<br />

secret –rm (delete a secret)<br />

secret –l (list all secrets)<br />

-t Temporary (will be removed at next reboot). Optional.<br />

-rm Remove<br />

-l List<br />

ftp<br />

is the name of secret.<br />

is the secret string.<br />

Remarks The user may not want to have his/her username and password in plain<br />

text in a Fingerprint program. Instead of writing the account info in the<br />

URI, the parameter of TRANSFER NET can be used.<br />

The account secret holds the secret information and cannot be read by any<br />

user.<br />

For the application ftp, should have the following structure:<br />

[:passwd]@ where is:<br />

|:|*<br />

If is set to “*”, the server name supplied in the URI will be<br />

used. This means that this account secret can be used with any server.<br />

Account info, that is, user, password, server name and port number, can<br />

be stated in both the account secret and the URI. Any parameter supplied<br />

in the account secret will have precedence over parameters supplied in the<br />

URI. This means that if, for example, the URI states that port 25 should<br />

be used and the account secret says port 21, then port 21 will be used.<br />

Examples Create a temporary account secret, my_account, and use it to send the file<br />

beta1.bin in directory /tmp to the server TheServer. The sent file will get<br />

the name beta1.bin and will be put in the home directory of myusername<br />

on TheServer.<br />

First of all, set SYSVAR(43) to 1 to avoid file name conversion:<br />

SYSVAR(43)=1<br />

RUN "secret –t ftp my_account myusername:mypassword@*"<br />

TRANSFER NET "/tmp/beta1.bin","ftp://TheServer/",<br />

"my_account"<br />

8 <strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!