You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

First check that of /usr/local/cgi-bin or /usr/lib/cgi-bin or /var/www/cgi-bin which one is in use on this host. In the case /usr/lib/cgi-bin:

falcon:/home/pinger# ls -l /usr/local/cgi-bin
ls: /usr/local/cgi-bin: No such file or directory
falcon:/home/pinger# ls -l /usr/lib/cgi-bin/
total 76
-rwxr-xr-x 1 root root 15101 Apr  2  2008 cgi-lib.pl
-rwxr-xr-x 1 root root 19999 Apr  2  2008 ping_data.pl
-rwxr-xr-x 1 root root   122 Apr  2  2008 test.pl
-rwxr-xr-x 1 root root 36198 Apr  2  2008 traceroute.pl
falcon:/home/pinger# ls -l /var/www/cgi-bin                                
ls: /var/www/cgi-bin: No such file or directory

You will probably need to get root to be able to install the scripts:

pinger@falcon:~$ su
Password:
bash: export: `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/root/apls/aplsconfig': not a valid identifier

Now you can download ping_data.pl:

falcon:/home/pinger# scp cottrell@pinger.slac.stanford.edu:bin/ping_data.pl /usr/lib/cgi-bin/
The authenticity of host 'pinger.slac.stanford.edu (134.79.104.80)' can't be established.
RSA key fingerprint is 1c:d2:9b:c7:68:38:3f:5c:ad:7a:18:c1:f1:eb:dc:10.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'pinger.slac.stanford.edu,134.79.104.80' (RSA) to the list of known hosts.
cottrell@pinger.slac.stanford.edu's password:
ping_data.pl         100% |*****************************| 40783       00:00

Download tracerooute.pl

falcon:/home/pinger# scp cottrell@pinger.slac.stanford.edu:bin/traceroute.pl /usr/lib/cgi-bin/
cottrell@pinger.slac.stanford.edu's password:
traceroute.pl        100% |*****************************| 38475       00:00

Check that the updated scripts are in the directory:

falcon:/home/pinger# ls -l /usr/lib/cgi-bin/
total 100
-rwxr-xr-x 1 root root 15101 Apr  2  2008 cgi-lib.pl
-rwxr-xr-x 1 root root 40783 Dec 26 05:01 ping_data.pl
-rwxr-xr-x 1 root root   122 Apr  2  2008 test.pl
-rwxr-xr-x 1 root root 38475 Dec 26 05:08 traceroute.pl

However when I go to URL; http://falcon.cse.unsw.edu.au/cgi-bin/traceroute.pl?choice=yes
I get the old (4.31) version of traceroute
and when I go to URL: http://falcon.cse.unsw.edu.au/cgi-bin/ping_data.pl?
I again get the old (2.10) version on ping_data.pl

  • No labels