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 >
