Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Running a command in Script

Please read documentation about limitations of remote commands exeuction.
Guest

Re: Running a command in Script

Hi Martin

Thanks for the reply, i tried add in the call statement and got the follwoing error when i ran the script:

failed with return code 1 and error message
Error opening terminal: dumb..

My script looks like this now:


option batch on
option confirm off
open xxxx:xxxxx@xxxxx
cd /usr/local/ucs
call config save xxxCYx5xPC
option transfer binary
get *LBL* c:\F5Backups\
close
martin

Re: Running a command in Script

Use script command call.
marshyrob

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.