I try to generally follow The Debian Way, it's easier and usually The Right
Way, and if it's hard, there's usually a reason ;-)
On Thu, Dec 15, 2016 at 10:59:45AM -0500, Paul Flint wrote:
Dear Joe,
Nothing at all wrong with perl.
That said "update-alternatives" looks complicated...
Flint
On Thu, 15 Dec 2016, Joe Golden wrote:
Date: Thu, 15 Dec 2016 10:06:37 -0500
From: Joe Golden <[email protected]>
Reply-To: Vermont Area Group of Unix Enthusiasts <[email protected]>
To: [email protected]
Subject: Madonna, the Python and the Contortionist
Yeah, what he said!
I love the contorted bashy python Madonna stuff though (says the
happy guy who lives under a rock and codes in perl) ;-)
On Thu, Dec 15, 2016 at 09:38:55AM -0500, chris yarger wrote:
flint,
man update-alternatives
Warmest Regards,
Christopher P. Yarger
Phone: 802-505-7574
Skype: cpyarger
/************************************
Based upon email reliability concerns,
please send an acknowledgment in response to this note.
On Thu, Dec 15, 2016 at 8:55 AM, Paul Flint <[email protected]> wrote:
Dear Kevin, Jeff et al...
This is how tired:
(find code at
https://github.com/flintiii/pydonna/blob/master/pydonna.sh)
<begin code>
#!/bin/bash
# 2016-12-15 07:34:05 pflint
# pydonna.sh - A shell tribute to Madonna...
if [ "$(id -u)" != "0" ]; then
echo "This script need to run as root, and you are not
root"; exit 1>&2
fi
echo "Like a Version: This system contains the following versions of
python..."
cd /usr/bin
ls -1 /usr/bin | grep python |tr -d "python" |grep ^[0-9] |grep -v "
[a-zA-Z]" | sort -n |uniq
echo "Enter the number of the version you want to use"
read version
echo "ln -s "python$version" python"
read -p "Press [Enter] to reset link as shown above"
rm -rf /usr/bin/python
ln -s python$version python
<end code>
To install:
1. Copy code to pydonna.sh
2. chmod +x pydonna.sh
3. take root then ln -s <file> /usr/bin/pydonna
Go forth and sin no more! (pun intended :^)
Kindest Regards,
Paul Flint
(802) 479-2360
(802) 595-9365 Cell
/************************************
Based upon email reliability concerns,
please send an acknowledgment in response to this note.
Paul Flint
Barre Open Systems Institute
17 Averill Street
Barre, VT
05641
http://www.bosivt.org
http://family.flint.com/flint
skype: flintinfotech
Work: (202) 537-0480
Consilium _ gratuitum
.~.
ASCII ribbon campaign ( )
valet /V\ against HTML e-mail X
quanti /( )\ www.asciiribbon.org / \ numerantur ^^-^^
_______________________________________________
Linux_adult_swim mailing list
[email protected]
http://docbox.flint.com/cgi-bin/mailman/listinfo/linux_adult_swim
--
Joe Golden /_\ www.Triangul.us /_\ Coding, Drupalism, Open Sourcery
Kindest Regards,
☮ Paul Flint
(802) 479-2360 Home
(802) 595-9365 Cell
/************************************
Based upon email reliability concerns,
please send an acknowledgement in response to this note.
Paul Flint
17 Averill Street
Barre, VT
05641
--
Joe Golden /_\ www.Triangul.us /_\ Coding, Drupalism, Open Sourcery