Thanks for the responses guys, I remember now and did some similar last year which I got working.
Next problem: I can't remember how I did it. I used a SSH client which had a file Explorer type ui and I added the code via a txt file which I thought was Putty but putty seems to have a cmd...