LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ftp via system command pipe. Is it possible?

Hi.

Im programming a small interface between a machine with a ftp server and a linux machine with a database.

To get the file from the ftp machine I thought I would open a system command pipe to ftp and then just do as I would've done from the command prompt.

This is not working however. Ive made a small example.

I open the pipe and wait for 1 sec. then countinue to write: "open localhost<enter>"  to the pipe. The reply from the pipe is nothing. And it should be something like: "Username: ".

What am I doing wrong, or is the system command pipe simply not working as I expect or as it should?

Attaching a example of what I am doing. (I am running a ftp on my local machine for testing).

//Beckman

0 Kudos
Message 1 of 5
(2,961 Views)

hi there

if you are on a windows platform you also can use the DataSocket Read/Write functions to receive/send data from/to ftp. see the online documentation or search this forum for more information.

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 5
(2,959 Views)
Hi.
 
Yeah. I should've made it more clear that I'm programming on a linux system.
 
Cheers
 
Beckman
0 Kudos
Message 3 of 5
(2,958 Views)

hi there

i still have LV7.1. maybe 8 can do ftp-ing with DataSocket functions on linux systems.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 5
(2,949 Views)
Hi again.
 
Ive just completed a small ftp-client with the use of the tcp-vi:s that are included in labview.

However I still would've liked if the system command pipe would've worked.
 
Cheers.
 
//Beckman
0 Kudos
Message 5 of 5
(2,944 Views)