Discussion Locked

autoftp

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i want to write a script for nt through that i can transfer files from linux to nt.
i knows the script to transfer files from linux to linux which is in shell script.
how can i write the same script for nt(usingn any script language)

my autoftp script for linux

#!/bin/sh
#script to run on local server, ftps file
#from remote server to local server
SOURCE="REMOTE_MACHINE"
FILE="autoUpload.pl"
ftp -in $SOURCE <

5 replies

by jeng

Type your script of "ftp" commands and use the "-s" option with Microsoft's ftp. The only thing you'll lose is the use of variable assignment. Type "ftp -?" for more info.

BTW... You might also want to set special attributes to the script file (read only by admin, etc.) since you'll have passwords in plaintext in the script file.

by james_randy

If you are still tackling this problem, perhaps you should consider calling your local super-hero.

This discussion is closed to new replies.