Shell variable in a Winscp script

Advertisement

plois00
Joined:
Posts:
6

Shell variable in a Winscp script

Hello,

Is it possible to access shell variable in a Winscp script?

Say before transferring FILE1 I want to make sure that FILE2 is present. I could write the following line of code:

call test -a FILE2 && export myFile=FILE1 || myFile=DUMMY

Next command would be the actual get:

get myFile

The GET will succeed or fail accordingly, which is fine for if FILE2 does not exist then the transfer of FILE1 should not occur.

The question is how to make known to Winscp the variable myFile.

I appreciate your help.
thank you,
PL

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

Re: Shell variable in a Winscp script

No you cannot access remote shell variables.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum