• The Forums are now open to new registrations, adverts are also being de-tuned.

A long shot..

gaz_l

MB Enthusiast
SUPPORTER
Joined
Mar 12, 2006
Messages
2,608
Car
Mini Cooper S, BMW M140i
But as there are lots of knowledgeable people on here, worth a go nonetheless..

I have a requirement to be able to transfer small image files between an embedded linux device and a windows laptop over ethernet (direct cable link). FTP seems to be the way to go.

The linux device doesn't have a keyboard but can be programmed to issue a given command via its limited UI. I've been trying to prove the principle today using a couple of laptops, one running Vista and Filezilla FTP server, the other running Fedora 9 and the inbuilt FTP client.

The problem I've run into is logging in to the server on the windows laptop - with my limited linux skills I'm struggling write a script to log in. I'm sure it can't be that hard. Logging in from the command line on the linux machine and doing the transfer manually works fine.

I have managed to find a workaround for transferring from server to client by using the following:

# wget 'ftp://username/password@IPaddress/path/*.JPG'

This takes a few seconds to for the log in to take place but once the two parties are happy the transfer flies. So far, so good, but there is no equivalent put/wput command, as far as I can tell, to transfer files from the client to the server.

If any boffins out there could give me a pointer, it'd be much appreciated! I am currently :wallbash:

Cheers,

Gaz
 
Last edited:
have you considered winscp? If you can ssh (try putty)into he device, winscp will work
 
Bit over my head, Ted.

Managed to automate the transfers over FTP windows to windows by using ftp -s:batchfile IPaddress where batchfile is a simple text file ..

user
password
get
sourcefilename
destinationfilename
bye

It's just getting the password to work linux to windows that's the problem at the moment..

Cheers,

Gaz
 

Users who are viewing this thread

Back
Top Bottom