<?xml version="1.0" encoding="windows-1252"?>
<node id="121217" title="Re: Re: Modules that get along with use lib" created="2001-10-24 18:09:06" updated="2005-07-19 14:08:11">
<type id="11">
note</type>
<author id="31662">
dmmiller2k</author>
<data>
<field name="doctext">
&lt;P&gt;&lt;I&gt;You could even set up a CGI script to do it!&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;
I do this sort of thing all of the time on FTP-only ISPs.  I have a RIDICULOUSLY simple barebones template of a CGI script which I modify to run arbitrary commands and display their output.
&lt;/P&gt;
&lt;CODE&gt;
#!/usr/bin/perl -w

use strict;
use CGI qw(:all);
use CGI::Carp qw( fatalsToBrowser );

my $v = `arbitrary command 2&gt;&amp;1`;

print join( "\n",
            header,
            start_html("Arbitrary Command"),
            strong(h1("Arbitrary Command:")),
            pre( $v ),
            end_html ),"\n";
&lt;/CODE&gt;
&lt;P&gt;Just customize &lt;code&gt;'arbitrary command'&lt;/code&gt; and save the result as, say, &lt;code&gt;'arbitrary command.cgi'&lt;/code&gt; using FTP and Bob's your uncle.
&lt;P&gt;dmm&lt;/P&gt;
&lt;PRE&gt;
&lt;FONT FACE="Arial,Helvetica,sans-serif" SIZE="-1"&gt;
&lt;I&gt;You can &lt;/I&gt;give&lt;I&gt; a man a fish and feed him for a day ...
Or, you can &lt;/I&gt;teach&lt;I&gt; him to fish and feed him for a lifetime&lt;/I&gt;&lt;/FONT&gt;
&lt;/PRE&gt;
</field>
<field name="root_node">
121136</field>
<field name="parent_node">
121162</field>
</data>
</node>
