Skip to main content
rsuk
New Member
November 3, 2014
Question

FortiOS CLI new line character

  • November 3, 2014
  • 1 reply
  • 3718 views

Hi,

Does anyone know how to create a new line in a CLI script.

 

I'm trying to add a list of hosts to a group via a cli script. I know it can be done as I remember the trainer mentioning it on a Fortigate course but can't actually find out how to do it.

 

Much appreciated.

    1 reply

    ede_pfau
    SuperUser
    SuperUser
    November 3, 2014

    hi,

     

    try to type 'Ctrl-V' just ahead of the newline.

    At least it masks the '?' and some other special characters in FOS.

    If that doesn't work I'd try backslash + newline.