I'm running Mac OX X Panther and I can't seem to get the script to run.. I get this error when running it through the terminal or web browser...
When running sigx.pl i get:
[jpowermac-g4s-Computer:~] powermac% perl /WebSTAR\ Server\ Suite\ 4.3/cgi-bin/sigx.pl
cat: /proc/cpuinfo: No such file or directory
cat: /proc/cpuinfo: No such file or directory
cat: /proc/cpuinfo: No such file or directory
sh: line 1: free: command not found
sh: line 1: free: command not found
sh: line 1: free: command not found
sh: line 1: xdpyinfo: command not found
sh: line 1: xdpyinfo: command not found
[jpowermac-g4s-Computer:~] powermac%
and with sigxv1.pl:
[jpowermac-g4s-Computer:~] powermac% perl /WebSTAR\ Server\ Suite\ 4.3/poiu/cgi-bin/sigxv1.pl
Bareword found where operator expected at /WebSTAR Server Suite 4.3/poiu/cgi-bin/sigxv1.pl line 88, near "$DATA_2_SEND .= "Diskspace"
(Might be a runaway multi-line "" string starting on line 87)
(Missing operator before Diskspace?)
Bareword found where operator expected at /WebSTAR Server Suite 4.3/poiu/cgi-bin/sigxv1.pl line 88, near "$HDD Free"
(Missing operator before Free?)
syntax error at /WebSTAR Server Suite 4.3/poiu/cgi-bin/sigxv1.pl line 88, near "$DATA_2_SEND .= "Diskspace"
Unterminated <> operator at /WebSTAR Server Suite 4.3/poiu/cgi-bin/sigxv1.pl line 88.
[jpowermac-g4s-Computer:~] powermac%
I dunno much about perl I was trying to fix line 88.. I deleted the extra | $ but that doesn't seem to help.
Code:
81 my $username = "a";
82 my $password = "a";
83 $DATA_2_SEND="Uptime: $MYUPTIME *<*";
84 $DATA_2_SEND .= "CPU: $CPUNAME *<*";
85 $DATA_2_SEND .= "MHZ: $CPUSPEED *<*";
86 # $DATA_2_SEND .= "BOGOMIPS: $BOGOMIPS *<*";
87 $DATA_2_SEND .= "OS: $UNAME *<*$MEMPERCENT% Ram Used | Total RAM = $MEMTOTAL";
88 $DATA_2_SEND .= "Diskspace: $HDD Free: $HDDFREE *<*";
89 # $DATA_2_SEND .= "Screen Res: $RES";
90 #print $DATA_2_SEND;