Description | This article describes some tips for using Notepad++ to avoid repeated tasks when creating a TTL script. |
Scope | FortiGate, TeraTerm. |
Solution |
A long list of commands is needed in a TTL script. For example:
get system status
The objective is to include them in the TTL script, in the format like this:
sendln 'get system status' pause 2 pause 2 pause2
And so on.
By using the following steps in the Find/Replace function on Notepad++, there is no need to edit every line of command manually.
Step 1: Use the Find/Replace function to add ' to the end of every line.
Step 2: Use the Find/Replace function to add 'pause 2' to the new line.
Step 3: Use the Find/Replace function to add 'sendln' to the beginning of every line.
Step 4: It still needs to edit other parts of the TTL script manually (such as 'Init', 'Main', 'looping',...) but they are usually much shorter than the above main part. More examples can be found at: Technical Tip: TAC debug script with TeraTerm |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.