Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Conversion corrections

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

What is the smartest way to execute a command with JADE/SOSFTP after a successful transfer?

...

  • With sFTP you can use the post_command for each file and post_transfer_commands at the end of the session. The source_ and target_ prefixes allow you to specify different commands for the source and the target servers.

...

  • Note

...

  • here

...

  • that

...

  • ssh-server

...

  • must

...

  • be

...

  • configured

...

  • to

...

  • allow

...

  • JADE

...

  • to

...

  • open

...

  • a

...

  • shell.

...

Example I:

Code Block

 objOptions.Target().Post_Command.Value("echo 'File: $TargetFileName' >> t.1;cat $TargetFileName >> t.1;rm -f $TargetFileName");
 objOptions.Target().Pre_Command.Value("touch $TargetFileName");
No Format

Example

...

II

...

(Windows):

...

Code Block

 [Copy_Local2Local_UNC_withNetUse]
 include=Copy_Local2Local_UNC
 preTransferCommands=net use //8of9.sos/c;net use //r2d2.sos/share

...