Multiple commands during single scripted session

Core FTP client questions and answers
Post Reply
jjotoole
Posts: 2
Joined: Tue Sep 11, 2018 4:57 pm

Multiple commands during single scripted session

Post by jjotoole »

Is it possible to perform multiple commands during a single connection session initiated by command line invoked CoreFTP?
Because of a trigger that the partner on the other side has in place we would like to do a PUT and GET during the same connection.
If we use 2 separate sessions the file is gone when we reconnect.
If this is possible an example of the syntax would be great.
Thank you.
ForumAdmin
Site Admin
Posts: 989
Joined: Mon Mar 24, 2003 4:37 am

Re: Multiple commands during single scripted session

Post by ForumAdmin »

try the -scal <script_file_name> option

coreftp.com/forums/viewtopic.php?f=2&t=2995572
jjotoole
Posts: 2
Joined: Tue Sep 11, 2018 4:57 pm

Re: Multiple commands during single scripted session

Post by jjotoole »

Thanks, are they any examples of the script file contents format?
ForumAdmin
Site Admin
Posts: 989
Joined: Mon Mar 24, 2003 4:37 am

Re: Multiple commands during single scripted session

Post by ForumAdmin »

There are examples in the link referenced above. Use FTP commands like RETR and STOR, one per line.
Post Reply