Technical Support KnowledgeBase
Supporting KnowledgeBox, Longman, Pearson Education and Edexcel CD-ROMs

Glossary    Contact Us
 
   
Knowledge Base
Knowledge Base KnowledgeBox Troubleshooting How can I transfer a script across from my windows workstation to a KnowledgeBox and run it?

How can I transfer a script across from my windows workstation to a KnowledgeBox and run it?
This article applies to:

KnowledgeBox version: 1.5
Browser versions: all

Please 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


How helpful was this article to you?
Related Articles
article My KnowledgeBox is not working, what do I do?
There are a number of reasons why KnowledgeBox...

  5-May-2004    Views: 2365   
article Is there a quick way to test if the workstation I'm working on works with the KnowledgeBox?
Open up your internet browser. In the address...

(No rating)  1-Nov-2004    Views: 1077   
article Patch for Years 5 and 6
Resolves the following issues: Failing to...

(No rating)  14-Mar-2005    Views: 865   


.: Powered by Lore 1.3.0
[ Admin Login ]


(C) 2008 Pearson Education Ltd.