client scripting

Advertisement

jsweatte
Joined:
Posts:
2

client scripting

I've been asked to help a faculty member find a solution to the attached question. I'm not at all familiar with what he's trying to do but in doing some prelimiary research I believe WinSCP is a possible solution. Can someone confirm that based on his question, which follows?

Thanks to all.

want a client - let's call it xxFtp which can be run like:

xxFtp -c script.ftp

where script.ftp is some text file with ftp commands in it maybe like (I am making this up):

errlog c:\webstuff\upload\logs
user xxxxx
password mybigsecret
connect core.xxx.edu
cd core1
cd docs
cd csci/xxxxx
cd apps
local cd c:\webstuff\apps
for each fle in *.gif
x = remotetime $fle
if x < time $fle
then put $fle
end for

etc.etc.

Kind of like a mini-bash for managing an ftp connection.

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: client scripting

Attempt to translate your pseudo-code into WinSCP script:

winscp /console /script=script.ftp /log=c:\webstuff\upload\logs

open xxxxx:mybigsecret@core.xxx.edu
cd core1
cd docs
cd csci/xxxxx
cd apps
lcd c:\webstuff\apps
option include *.gif
synchronize remote

Reply with quote

Advertisement

You can post new topics in this forum