Markdown
This commit is contained in:
parent
9f271e6d77
commit
ebce960d0e
@ -1,9 +1,8 @@
|
||||
Mise à disposition fichier de télétransmission
|
||||
==============================================
|
||||
# Flux : Mise à disposition fichier de télétransmission
|
||||
|
||||
Configuration pour les fichiers en entrées
|
||||
------------------------------------------
|
||||
## Configuration pour les fichiers en entrées
|
||||
|
||||
```
|
||||
'client' => array(
|
||||
'prestations' => array(
|
||||
array(
|
||||
@ -18,66 +17,75 @@ Configuration pour les fichiers en entrées
|
||||
--See the list of options--
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
```
|
||||
|
||||
Send Options list (in)
|
||||
----------------------
|
||||
- FilterName - Filtre par nom de prestation (true) ou par nom défini
|
||||
- CopyAddDate - Copy file and add a timestamp to the end of the filename
|
||||
- CopyDeleteAfter - After copying the file delete it in repository
|
||||
- RunWithEndFile - Only execute action when we receive file with extension .fin or .end
|
||||
- Log - Log transfert
|
||||
- Route - For each Route options (cp, ftp, sftp, mail)
|
||||
## Send Options list (in)
|
||||
|
||||
- **FilterName**: Filtre par nom de prestation (true) ou par nom défini
|
||||
- **CopyAddDate**: Copy file and add a timestamp to the end of the filename
|
||||
- **CopyDeleteAfter**: After copying the file delete it in repository
|
||||
- **RunWithEndFile**: Only execute action when we receive file with extension .fin or .end
|
||||
- **Log**: Log transfert
|
||||
- **Route**: For each Route options (cp, ftp, sftp, mail)
|
||||
cp => realpath of dir
|
||||
ftp
|
||||
mail
|
||||
|
||||
Recv Options list (out)
|
||||
-----------------------
|
||||
- Log - Log read disable by default
|
||||
## Recv Options list (out)
|
||||
|
||||
- **Log**: Log read disable by default
|
||||
|
||||
## Tck Options list (Check Transfert - use with CFT and other transfert mode)
|
||||
|
||||
Tck Options list (Check Transfert - use with CFT and other transfert mode)
|
||||
------------------------------------------------
|
||||
Envoi dans le repo du client fichier *.tck
|
||||
Recherche du fichier dans la table des flux et remplissage marqueur transfertDate
|
||||
|
||||
Crontab - incron
|
||||
================
|
||||
## Crontab - incron
|
||||
|
||||
Exemple surveillance livraison de fichiers par le client
|
||||
```
|
||||
$fluxBasePath IN_CLOSE_WRITE php /home/batchFlux/fileSend.php --file $@/$# >> /home/log/send.log 2>&1
|
||||
```
|
||||
|
||||
Exemple surveillance lecture du fichier mis en dépot
|
||||
```
|
||||
$fluxBasePath IN_CLOSE_NOWRITE,IN_ACCESS,IN_DELETE,IN_NO_LOOP php /home/batchFlux/fileRead.php --file $@/$# >> /home/log/read.log 2>&1
|
||||
```
|
||||
|
||||
Exemple surveillance retour par autre programme de transmission
|
||||
```
|
||||
$fluxBasePath IN_CLOSE_WRITE php /home/batchFlux/fileTck.php --file $@/$# >> /home/log/tck.log 2>&1
|
||||
```
|
||||
|
||||
Attention, une seule entrée de repertoire peut être saisie dans la incrontab.
|
||||
fileSend a été prévue pour gérer correctement les extension tck
|
||||
Sinon préférer l'utilisation de trigger.php
|
||||
```
|
||||
$fluxBasePath IN_CLOSE_WRITE,IN_CLOSE_NOWRITE,IN_ACCESS,IN_DELETE,IN_NO_LOOP /home/batchFlux/trigger.php --file $@/$# --event $%
|
||||
```
|
||||
|
||||
|
||||
TODO
|
||||
====
|
||||
## TODO
|
||||
|
||||
Créer fileMail => Recupération element par mail, enregistrement
|
||||
Filtre sur email et/ou sujet
|
||||
Créer fileTransfert => envoi sur le FTP, SFTP du client
|
||||
|
||||
Note CFT
|
||||
========
|
||||
PARTNERS
|
||||
## Note CFT
|
||||
|
||||
PARTNERS
|
||||
```
|
||||
&PART Partner name (ID of CFTPART)
|
||||
&GROUP Group to which the partner belongs
|
||||
&SPART Sending partner name
|
||||
&RPART Receiving partner name
|
||||
&IPART Intermediate partner name
|
||||
&NPART Network name of partner sending data (NSPART or NRPART according to the transfer direction)
|
||||
```
|
||||
|
||||
TRANSFER
|
||||
TRANSFER
|
||||
```
|
||||
&IDT Transfer identifier
|
||||
&NIDT Protocol transfer identifier
|
||||
&IDTU Local transfer counter (unique)
|
||||
@ -85,7 +93,6 @@ TRANSFER
|
||||
&PHASE Processing phases to help manage transfer flows
|
||||
&PHASESTEP Step in processing phase
|
||||
&APPSTATE State step for the processing script to restart if relaunched
|
||||
|
||||
&NSUB Counter for the submitting of end-of-transfer procedures, error procedures and procedures submitted by SUBMIT.
|
||||
If 4 characters long, the counter is reset to 1 after 9999
|
||||
&DIAGI Internal diagnostic code value
|
||||
@ -101,8 +108,10 @@ TRANSFER
|
||||
&EXITFREE Free communication area between multiple exits
|
||||
&XLATE Transcoding table used during transfer
|
||||
&MODE Server mode = ‘S’ transfer, Requester mode = ‘R’ transfer
|
||||
```
|
||||
|
||||
FILE
|
||||
```
|
||||
&IDF Model file identifier (logical name)
|
||||
&FNAME Physical file local name
|
||||
&FKEYLEN Length (received) of the indexed file key at the sender’s site
|
||||
@ -129,15 +138,19 @@ FILE
|
||||
&FPATH Prefix (file path) of the sending file
|
||||
&FROOT Root (actual file name) of the sending file
|
||||
&FSUF Suffix associated with file name of the sending file
|
||||
```
|
||||
|
||||
DATE and TIME associated with a FILE
|
||||
DATE and TIME associated with a FILE
|
||||
```
|
||||
&FDATE Date associated with the file
|
||||
&FTIME Time associated with the file
|
||||
&FYEAR Year associated with the file
|
||||
&FMONTH Month associated with the file
|
||||
&FDAY Day associated with the file
|
||||
```
|
||||
|
||||
DATE and TIME associated with a CATALOG
|
||||
DATE and TIME associated with a CATALOG
|
||||
```
|
||||
&CDATE Catalog entry date
|
||||
&CTIME Transfer start date
|
||||
&BTIME Transfer start time
|
||||
@ -150,24 +163,27 @@ DATE and TIME associated with a CATALOG
|
||||
&EMONTH Transfer end month
|
||||
&EDAY Transfer end day
|
||||
&TT Transmission duration in seconds (TIMES attribute in the Transfer CFT catalog)
|
||||
```
|
||||
|
||||
CONTROL OUTPUT
|
||||
CONTROL OUTPUT
|
||||
```
|
||||
&FLOG Name of last log file used by Transfer CFT
|
||||
&FACCNT Name of last statistics file used by Transfer CFT
|
||||
&FCAT Name of catalog used by Transfer CFT
|
||||
```
|
||||
|
||||
Note INOTIFY
|
||||
============
|
||||
## Note INOTIFY
|
||||
|
||||
Utilisation des événements INOTIFY pour la surveillance des dossiers
|
||||
|
||||
The command may contain these wildcards:
|
||||
|
||||
```
|
||||
$$ - a dollar sign
|
||||
$@ - the watched filesystem path (see above)
|
||||
$# - the event-related file name
|
||||
$% - the event flags (textually)
|
||||
$& - the event flags (numerically)
|
||||
```
|
||||
|
||||
Events
|
||||
|
Loading…
Reference in New Issue
Block a user