Westhost offers telnet and SSH access to the filesystem via the standard IETF protocols and via the freely available PuTty Utility.

I have used this to compile and executve CPP programs on the webserver just like on my local machine.

Examples that I would be able to see are the "./hello" command, which outputs the value of Pi, as per this tutorial *cntl+F, 3.14 to find the section..

To reproduce, I open putty or cygwin if it was local, navigate to the directory (/www/cgi-bin/cpp/hello1/) and type the command.

for new cpp programs the command to compile is "gcc filename.cpp -lstdc++", then type ./programname to execute..

C compiling

To observe this, simply add a C program file such as cin.c, compile using "gcc cin.c -o cin", and run ./cin

I also, in the meantime, managed to compile another C file to display the timeless "hello" message, using the CGI interface. To achieve this, I used cs.tut.fi's tutorial/code for the pre-compiled language, stored the source in a C file and used GG commands. After compiling I renamed (MV)helloworld helloworld.cgi and pointed my browser there. Voila, output is displayed!..additional working samples from Jukka's freesite I have uploaded include mult.c(-gi) and viewdata.cgi which on my site only opens another cpp file for viewing but could serve as a pastebin.

Commands reference

Get pscp[1], run it from cmd, and issue:
**pscp c:\documents\csh-whynot.txt fred@example.com:/tmp/csh-whynot**

You can use wildcards to transfer multiple files in either direction, like this:

pscp c:\documents\*.doc fred@example.com:docfiles
pscp fred@example.com:source/*.c c:\source


also, a good use for putty is restoring a MySQL database

To restore (ie upload) the WordNet3.0 database, I used FTP to upload to a directory in my /www/ space, logged into putty with my uname/pw and navigated to the /www directory, then issued the following command:

 mysql wordnet30 < mysql-wn-data.sql
This was a 3.46Mb file and mysql handled it with no problems. I found the how-to on this at e-how. See here for installing wordnet 3.0 on a windows machine (locally).

Another set of useful commands are the SQL commands, which can be used through the mysqladmin/console:
type mysql then "enter." then you're ready to use these. I used select * from words where lemma LIKE "aa%";, after typing use wordnet30.