        Secure Easy IM

Secure Easy IM can be run from the command line or a program.


usage:
  java eforward.client.EdiSend
    -h{host}
    -p[process][,destination process]
    -l{log path}
    -o{local iBox}
          The origin (login iBox) will be derived from the EDI header if this parameter is not used.
    -k{batch archive/receive path}[,days]
    [-v][1][,filename] Verbose output. With the 1,filename will write to a logfile instead of to the console screen.
    [-w{password}]
    [-d{remote iBox}]
          The destination will be derived from the EDI header if this parameter is not used.
          -da,{file} will derive the destination from the EDI header and then use an alias substitution file.
    [-x[extent size]]
    [-r(receive mode) [[j,]process (FILE)]]
    [-i{process parameters}]
    [-j{batch send path}[,{error path]]
          With error path set files which have errors durring sending will be moved to this directory.
    [-f{file}]
    [-a[retries]] (causes program to exit after sending or receiving is done)
    [-e(EBCDIC)[srb]]
    [-m(error){smtp host},{email from},{email to[,email to,...]}]
    [-n] Just do one time/file.
    [-t{[eForward (server) port][,local port][,local address][,poll rate]}]
    [-z{security key file}]
    [-q{stopfile}]  Magic file to end this process.
    [-b,{BaseSegment},{Properties}] Sets the SeIM base directory where the porperties directories are found.
           The properties directory name can be changed to desired name.


notes and examples:
1. The primary difference between sending and receiving is
   to receive the -r switch is used.
2. Sending and receiving can be done for a single file, a batch of files
   or continual batches.
3. When receiving, the received file can optionally be processed
   using the program name following the -r switch. The file name will be
   the first parameter to the program unless the word FILE appears in
   upper case within the process command line. If "j," precedes the
   process then a Java class in the package 'efclient.receiver.req' will be called.
     ex. -r"runme.exe first parameter second parameter FILE third parameter"
     ex. -r"j,edit"  -> efclient.receiver.req.Edit( String [] st ) where st[0]=received_file_name
4. When batch sending the -f parameter is used for a filename wild card.
     ex. -f*.txt
   matches 'test.txt'
   If more than one matching string is desired, then use a comma to separate
   them.
     ex. -ftxt*,*doc*,*.*
   will match any filename starting with 'txt'
   or any filename with 'doc' anywhere in the name
   or any file with a 'period' anywhere in the name.
5. The -t eforward port should not be changed from 2181. The local port is used for
   a instant receive port to bypass a firewall.
6. The -p process is the server process to run. If empty then the eForward server
   is run. If a process is supplied the eForward server will attempt to run it.
   The destination process is a process in the destination machine's Java
   package 'efclient.sender.req'.
     ex. -p",edit"  -> efclient.sender.req.Edit( String [] st ) where st[0]=sent_file_name

Examples of usage:

1. Send one file to partner (box2) and return to calling program.

java eforward.client.EdiSend -v -hefw.corvedia.net -ftestfile.txt -p -wpass -obox1 -dbox2

2. Send one file to partner (box2) retrying 5 times (if needed) and return to calling program.

Java eforward.client.EdiSend -v -hefw.corvedia.net -ftestfile.txt -p -wpass -obox1 -dbox2 -a5

3. Send in batch mode to partner (box2) and run continuously (polling mode).
   This will send all files with extensions or a period in the name.

java eforward.client.EdiSend -v -hefw.corvedia.net -f. -j\java\senddir -k\java\arcdir -p -wpass -obox1 -dbox2

4. Send one batch to partner (box2) and return to calling program.
   This will send all files with extensions or a period in the name.

java eforward.client.EdiSend -v -hefw.corvedia.net -f. -j\java\senddir -k\java\arcdir -p -wpass -obox1 -dbox2 -a

5. Receive one file from partner (box1) and return to calling program.

java eforward.client.EdiSend -v -hefw.corvedia.net -r -p -wpass -obox2 -dbox1

6. Receive one file from partner (box1) renaming file try.txt and return to calling program.

java eforward.client.EdiSend -v -hefw.corvedia.net -r -p -wpass -obox2 -dbox1 -ftry.txt

7. Receive one file from partner (box1) and run process edit.exe and return to calling program.

java eforward.client.EdiSend -v -hefw.corvedia.net -redit.exe -p -wpass -obox2 -dbox1

8. Receive one file from partner (box1) retrying 5 times (if needed) and return to calling program.

java eforward.client.EdiSend -v -hefw.corvedia.net -r -p -wpass -obox2 -dbox1 -a5

9. Receive in batch mode from partner (box1) and run continuously with server callback.

java eforward.client.EdiSend -v -hefw.corvedia.net -r -k\java\recdir -p -wpass -obox2 -dbox1

10. Receive in batch mode from partner (box1) and run process edit.exe and run continuously with server callback.

java eforward.client.EdiSend -v -hefw.corvedia.net -redit.exe -k\java\recdir -p -wpass -obox2 -dbox1

11. Receive one batch from partner (box1) and return to calling program.

java eforward.client.EdiSend -v -hefw.corvedia.net -r -k\java\recdir -p -wpass -obox2 -dbox1 -a

12. Receive in batch mode from ALL partners and run continuously with server callback.

java eforward.client.EdiSend -v -hefw.corvedia.net -r -k\java\recdir -p -wpass -obox2




Copyright (c) 2000-2023 Corvedia Inc.
