call

Table of Contents

With SFTP and SCP protocols, executes arbitrary remote shell command. With FTP protocol, executes a protocol command.

Syntax

call <command>

Remarks

With SFTP protocol, that does not allow execution of arbitrary remote command, separate shell session will be automatically opened.

Advertisements:

The command must not require user input.

It is an error, if the command has any error output, but no standard output. To circumvent that redirect error output to nul (2>/dev/null) or to standard output (2>&1).

Alias: !

XML log element: call

Examples

call mysqldump --opt -u USERNAME --password=PASSWORD --all-databases > all_databases.sql
call gzip -c all_databases.sql > all_databases.gz

Converting to .NET Assembly

When converting script to .NET Assembly, map call command to Session.ExecuteCommand method.

Parameters mapping: Command parameter command maps to method parameter command.

 
  scriptcommand_call.txt · Last modified: 15 May 2013 by prikryl
 

Search Documentation

This page

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

Associations

Kyplex Cloud Security Seal - Click for Verification

Site design by Black Gate