Notifications
Clear all

Run a batch of zxsuite commands


maxxer
(@maxxer)
Joined: 10 years ago
Posts: 16
Topic starter  

Hi.

Is it possible to run zxsuite commands in batch, like with zmprov?

For example create a file with this content

auth loginPage setFavicon domain <domain.com>"/public/<image.ext>"
auth loginPage setFavicon domain <domain.tcom> "https://domain.com/<path>/<image.ext>

and then run

 

zxsuite < filename

 

 


Quote
linganna.palepu
(@linganna-palepu)
Joined: 5 months ago
Posts: 4
 

@Maxxer 

  • The zmprov command will accept commands from a file (or stdin) as input. Create a text file ("commands.zmp" for example) with the zmprov subcommands each on a line. 
  • The zxsuite is not a bash command and is not meant to take arguments from the standard input. hence zxsuite command will not accept commands from a file as input.
  •  The way to achieve that is by putting the whole command in the file and executing it as a bash script.

 


ReplyQuote
maxxer
(@maxxer)
Joined: 10 years ago
Posts: 16
Topic starter  

@linganna-palepu Thanks. Unfortunately running several zxsuite commands is much slower than running them in a batch, as it is for zmprov.

 


ReplyQuote