From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Quote command FTP

Is is possible by to execute a remote program (on a remote host)  by using the FTP vi's and executing the command "Quote"  to send an arbitrary FTP command?
If Yes... How...Smiley Surprised
 
Thanks Huub 
0 Kudos
Message 1 of 4
(3,103 Views)
Within Labview you could use the Tcp Connection VIs.
Simply send username, passwort and your "quote something" command. As long as you don't have to read from the connection, this shouldn't be too much of a problem.

The question which should concern you more is: Does the server support the command? If no, you could still write a small TCP Server and a small TCP Client (in LabView or your language of choice).

The example finder offers you "TCP Communicator (Active)" and "TCP Communicator (Passive)". I haven't further investigated this, but maybe you could use those as a starting point for a program without having to use FTP.

0 Kudos
Message 2 of 4
(3,093 Views)

Hello Thomas,

I have to call a program on an AS400 and we don't want to change the AS400 program.

In the old system this call is done by FTP with the command: QUOTE RCMD SBMJOB CMD(CALL PGM.... 

RCMD is a FTP AS400 specific command (Remote CoMmanD)

I did some tests with the Low Level "FTP Command VI" and it looks like this will work.

Thanks for your help, Huub

 

0 Kudos
Message 3 of 4
(3,073 Views)
Hi knipph

If that machine is a production machine, I understand your concerns.

Glad I could help

Thomas
0 Kudos
Message 4 of 4
(3,066 Views)