I do not get it to work, for me, by an unknown reason!?
I am superuser mode and in the /root directory, where even
the program file "check_ip.py" is.
root@Pi-server:~# pwd
/root
root@Pi-server:~# ls -alh
total 64K
drwx------ 3 root root 4.0K Nov 22 15:41 .
drwxr-xr-x 23 root root 4.0K Nov 17 11:35 ..
-rw------- 1 root root 2.0K Nov 22 14:41 .bash_history
-rw-r--r-- 1 root root 570 Mar 12 2018 .bashrc
-rwx------ 1 root root 25K Nov 22 13:15 check_ip.py
drwxr-xr-x 2 root root 4.0K Nov 10 15:49 .nano
-rwx------ 1 root root 482 Nov 20 16:11 open_vpn_firewall.sh
-rw-r--r-- 1 root root 148 Mar 12 2018 .profile
-rw------- 1 root root 1.0K Nov 20 15:11 .rnd
-rw------- 1 root root 810 Nov 20 18:22 .viminfo
If I follow the instruction from the book, I should test to
run the Python program with the command under here:
root@Pi-server:~# ./check_ip.py -e
But it answer me with this
bash: ./check_ip.py: /usr/bin/python^M: bad interpreter: No such file or directory
root@Pi-server:~#
I just do not understand what it answer me with the bash-line?!
I have get Python 3.5 installed and I understand that Python interpret
line buy line.
And in the drawer /usr/bin is a lot of Python...
It is like a snake farm...
It is not easy to be an old newbee, but I learn slowly, slowly...
DanneA
