How to execute FTP command using rebex like

0 votes
asked May 24, 2011 by jepoy (450 points)
edited Feb 21, 2012

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
answered May 24, 2011 by Lukas Matyska (47,150 points)
edited Feb 21, 2012
 
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)

commented May 26, 2011 by jepoy (450 points)
edited May 26, 2011

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

commented May 26, 2011 by Lukas Matyska (47,150 points)
edited May 26, 2011

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

commented May 27, 2011 by jepoy (450 points)
edited May 27, 2011

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

commented May 27, 2011 by jepoy (450 points)
edited Aug 12, 2011

Thanks to you usual support. Really appreciate it.

I will try your both of your suggestion.

...