VanDyke Software

VShell® Server

Try Before You Buy

Every release can be evaluated free of charge for 60 days.

Index

I need to automatically move customer-uploaded files to another directory, server, or mainframe after upload

When using SFTP, FTPS, or HTTPS to upload files, you can configure triggers to automatically move those files to another directory or machine when the upload has successfully completed. One way of doing this is to use a combination of the UploadCommand configuration option and the VShell® vcp command-line utility.

In the vshelld_config file, add UploadCommand to the options listed. The format of the option is as follows:

UploadCommand executable <param1> <paramN>

To automatically move the file you just uploaded to a directory on the mainframe, use the following example entry:

vcp -auth publickey -i /home/$U/keys/id_dsa myprog.c $U@myhost:myprogdir/

The variable $U will be replaced with the username of the user that uploaded the file.

Other variables that are available include:

  • $P  The path of the file that the user just uploaded.
  • $I   The IP address of the machine that just uploaded the file.
  • $T  The time that the upload was completed.

You can also move files after upload by configuring the UploadCommand to run a shell script operation.

For further information on the UploadCommand and its variables, refer to the vshelld_config (5) man page.


Three Fast Ways to Learn More About VShell Server For Windows, Linux, and Mac

Tell me more. Email us your questions about putting VShell to work for your organization.

Try it today! Download a free evaluation copy of VShell for Windows, Linux, or Mac.

Talk to us. Let us help define the right VShell server solution for your company.

VanDyke Software uses cookies to give you the best online experience. Before continuing to use this site, please confirm that you agree to our use of cookies. Please see our Cookie Usage for details.