This article applies to:
KnowledgeBox version:
1.5
Browser versions:
allPlease refer to How_do_I_connect_into_my_Knowledgebox_remotely_via_Putty to obtain a terminal screen on the KnowledgeBox.
In this example we are connecting to an appliansys basic box. The prompt may be slightly different with other hardware types. At the prompt, we should change to the directory where we would like to save the script. In the example we changed to the '/home/knowledgebox/system' directory by typing 'cd /home/knowledgebox/system' press enter thereafter.

A new prompt will appear and the current directory will be shown at the end of the prompt.

Then we create the script file. In this example the file we are going to create is reset.sh, so the command is cat > reset.sh.

Then press the enter key. You will notice the cursor jumps to a new line and is expecting something.

Lets leave this screen and open up the script file, preferably in Word. If you do open the script in notepad, ensure that 'Word wrap' is untick, by going to 'Format' in the toolbar and unticking 'Word wrap'. We are going to use Word.

All we do now is 'Select all'. You can either go through the menu system as shown below or just type in crtl-a.

Now everything is highlighted we just need to copy it to clipboard, so ctrl-c or use the menu system as shown below.

Now that the script is in memory, we can go back to the putty screen, where it still expecting something. All we do is right click in the middle of the putty screen and the script will be pasted.

You will see that a prompt still has not appeared, thats because you can still add more stuff if you like, but it is not neccessary in this case, so just press the 'ctrl' key and the 'd' key together and the file will be created. Please note the green cursor needs to be on a new line when you press the 'ctrl' and 'd' keys.

Then the prompt will be shown again. We need to make this script executable. Type in the following command chmod 755 <name of script>, in our example chmod 755 reset.sh

To run the script type in ./<name of script>

This article applies to:
KnowledgeBox version:
1.5
Browser versions:
all