Running a command in Script
Hi All
Im very new to scripting and WINSCP. Ive made a script which logs into a F5 loadbalancer (3BSD) and copies a backup file down to a directory. This works fine. I would like to run a command, once logged in via the script, to create a backup.
The command is "b config save <filename>"
How do i run this command via the script. I have had a look on this site but i cant seem to find any examples. Is it even possible?
Here is my script:
option batch on
option confirm off
open xxxx:xxxxx@xxxxxx
cd /usr/local/ucs
option transfer binary
get *LBL* c:\F5Backups\
close
Any help would be appreciated.
Im very new to scripting and WINSCP. Ive made a script which logs into a F5 loadbalancer (3BSD) and copies a backup file down to a directory. This works fine. I would like to run a command, once logged in via the script, to create a backup.
The command is "b config save <filename>"
How do i run this command via the script. I have had a look on this site but i cant seem to find any examples. Is it even possible?
Here is my script:
option batch on
option confirm off
open xxxx:xxxxx@xxxxxx
cd /usr/local/ucs
option transfer binary
get *LBL* c:\F5Backups\
close
Any help would be appreciated.