0 votes
by (450 points)
edited

Hello Guys,

I have question on how to execute FTP comman using rebex? or is it possible?

ftp> quote "site az2z"

That command creates a Serve from Zip hash for the next uploaded file. If the next upload is not an archive file an error is generated.

Applies to: Rebex FTP/SSL

1 Answer

0 votes
by (73.5k points)
edited
 
Best answer

Rebex equivalent of the QUOTE SITE command is the Ftp.Site method, which can be used like:

string response = ftp.Site("az2z");

Please note that QUOTE and SITE are ommited. QUOTE is command line ftp syntax only.

(the Ftp.SendCommand and Ftp.ReadResponse methods can be used to execute other QUOTE commands on the FTP server - see How to send a specific command to ftp server)

by (450 points)
edited

Hello Matyska,

I just talked to our architect team and discussed about this.

Currently we are using SFTP to connect and upload files to remote server. Is there any way to execute FTP command using SFTP? because i don't see Site or sendcommand function in SFTP object.

Is there anyway to execute that command using SFTP? I do really appreciate your feedback and it helped me moving forward.

Sincerely Yours, Jepoy

by (73.5k points)
edited

To execute a command on an SSH server the Rebex SSH Shell component can be used (please visit http://www.rebex.net/ssh-shell.net)

However, to execute a simple remote command the Sftp object can be used. Please visit the following forum post, where it is described: http://forum.rebex.net/questions/1465/how-to-unzip-archive-in-remote-server-after-uploading/1467

by (450 points)
edited

hello matyska. sorry i tried to double click the thumbs up button the number become negative.

by (450 points)
edited

Thanks to you usual support. Really appreciate it.

I will try your both of your suggestion.

...