Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: How do I execute several CLI commands as a single command / script?

  1. #11
    Junior Member
    Join Date
    Feb 2018
    Posts
    19

    Default

    Think of cli_execute, in this case, as a keyword, like "for" or "if", rather than as the cli_execute() function.
    Originally Posted by Veracity View Post
    Thanks. That makes sense. Are there any other keywords like that? I don't see this use mentioned on the wiki.

  2. #12

    Default

    I always just used the cli_execute() function with semicolons delimiting multiple commands. Is that less efficient than using the brace notation, or functionally equivalent?

  3. #13
    Developer
    Join Date
    Aug 2009
    Posts
    2,763

    Default

    It's equivalent, but I find the brace notation (with each command on its own line) easier to read and edit.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •