Run a batch of zxsu...
 
Notifications
Clear all

Run a batch of zxsuite commands

4 Posts
2 Users
0 Reactions
1,058 Views
(@maxxer)
Joined: 13 years ago
Posts: 30
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)
Joined: 3 years ago
Posts: 16
 

@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)
Joined: 13 years ago
Posts: 30
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
(@linganna-palepu)
Joined: 3 years ago
Posts: 16
 

@Maxxer 

  • I apologize but as explained earlier 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.
  • zxsuite commands are a little faster than other bash commands in zimbra.

   
ReplyQuote