Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Login

...

Code Block
386cottrell@pinger:~$ssh rcottre@bastion.desy.de
Warning: Permanently added the RSA host key for IP address '131.169.5.83' to the list of known hosts.
rcottre@bastion.desy.de's password:
Questions concerning bastion? see http://bastion.desy.de for the Bastion FAQ.
[rcottre@bastion03]~%

...

Code Block
386cottrell@pinger:~$ssh rcottre@bastion.desy.de
Warning: Permanently added the RSA host key for IP address '131.169.5.83' to the list of known hosts.
rcottre@bastion.desy.de's password:
Questions concerning bastion? see http://bastion.desy.de for the Bastion FAQ.
[rcottre@bastion03]~% ssh iepm01-el7.desy.de
Creating directory '/afs/desy.de/user/r/rcottre'.
Unable to create and initialize directory '/afs/desy.de/user/r/rcottre'.
Welcome to DESY IT
Could not chdir to home directory /afs/desy.de/user/r/rcottre: No such file or directory
#The f directory does exist on bastion.desy.de
[rcottre@bastion03]~% pwd
/afs/desy.de/user/r/rcottre

Saving stuff

The scripts are saved in 

Code Block
[root@iepm01-el7 pinger]# ls -l /root/pinger
total 232
-rw-r--r-- 1 root root  15101 Jan  7  2000 cgi-lib.pl.txt
-rw-r--r-- 1 root root  48852 Mar 15  2016 ping_data.pl
-rw-r--r-- 1 root root 114361 Jun 11  2015 pinger-2.0.7.tar.gz
-rw-r--r-- 1 root root   6626 May 22  2009 pinger_trimmer.pl
-rw-r--r-- 1 root root  48927 Sep 20  2016 traceroute.pl

The cgi scripts are copied to:

Code Block
[root@iepm01-el7 pinger]# ls -l /var/www/cgi-bin
total 112
-rwxr-xr-x 1 root root 15101 May  5 03:30 cgi-lib.pl
-rwxr-xr-x 1 root root 48852 May  5 03:29 ping_data.pl
-rwxr-xr-x 1 root root 48927 Sep 20  2016 traceroute.pl

 

traceroute.pl

Code Block
[root@iepm01-el7 ~]# cd /var/www/cgi-bin
[root@iepm01-el7 cgi-bin]#  wget 'http://www.slac.stanford.edu/comp/net/traceroute/traceroute.pl'
--2017-04-26 23:24:01--  http://www.slac.stanford.edu/comp/net/traceroute/traceroute.pl
Resolving www.slac.stanford.edu (www.slac.stanford.edu)... 134.79.197.200, 2620:114:d000:2716::200
Connecting to www.slac.stanford.edu (www.slac.stanford.edu)|134.79.197.200|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 48927 (48K) [text/plain]
Saving to: âtraceroute.plâ
100%[======================================>] 48,927      71.4KB/s   in 0.7s
2017-04-26 23:24:02 (71.4 KB/s) - âtraceroute.plâ saved [48927/48927]
[root@iepm01-el7 cgi-bin]# ls -l traceroute.pl
-rw-r--r-- 1 root root 48927 Sep 20  2016 traceroute.pl
[root@iepm01-el7 cgi-bin]# chmod +x traceroute.pl
[root@iepm01-el7 cgi-bin]# ls -l traceroute.pl
-rwxr-xr-x 1 root root 48927 Sep 20  2016 traceroute.pl

...