|
Plusnet Perl CGI Tricks (obsolete information):Note that while the Plusnet CGI platform has been discontinued this is also an example of doing things as User and not Root. Setting file attributes in Microsoft FTP:To alter the attributes of a file "script.pl" from within a ftp session (it is easier in a shell but shell is not allowed) use:
The "quote" command means send the rest of the line to the server and "site" means execute a shell command. Only a small "safe" subset of shell commands are implemented so this isn't a backdoor to full access. On the bright side hostopia offers a file manager that allows attributes to be set, it also includes a text editor.
Setting up CPAN for local use:Warning: these instructions are for the old "ccgi" platform not the newer hostopia one. It should work once you determine the correct folder to use. You should also note that letting CPAN resolve dependencies itself is a BAD idea, many Perl modules list "nice to have" modules that CPAN treats as dependencies. In my experience CPAN would go out of control and keep finding more things to install. This allows you to use the CPAN (Comprehensive Perl Archive Network) shell to install modules.
Note: That's "Common Gateway Interface" not "Computer Generated Imagery" Note: Plusnet call their CGI server "ccgi", to distinguish it from an earlier discontinued platform. |