Linux SoftwareProgrammingInterpretersProgram Version Switch 1.03

Program Version Switch 1.03


pvswitch is a very tiny program which makes it possible to use different program installations on one machine flawlessly. It's fle
Developer:   mws
      more software by author →
Price:  0.00
License:   GPL (GNU General Public License)
File size:   74K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


pvswitch is a very tiny program which makes it possible to use different program installations on one machine flawlessly.

It's flexibility is intended for people who need to run programs against different interpreter versions.

But it can also be used for different purposes like switching the version of a compiler, text editor, mail reader, browser, whatever.

It is most useful for developers of interpreter based programs which are started via a hash-bang line (#!).

The following example explains the usage for perl programs, but the very same is true for all other interpreter languages.

If you install two or more different perl versions on your machine, you could just call the respective perl binary you want to use..

perl myscript.pl
/path/to/another/perl myscript.pl

This works fine, although it isn't very convenient. However if you are starting your program using the hash-bang line like

#! /usr/bin/perl

and then just start it by

./myscript.pl

you would need to change the file itself to use another perl version. Again it is possible, but not very convenient.

And here comes pvswitch: it's purpose is to make such situations convenient. Further it solve some problems which come up if multiple people want to use different perl versions. pvswitch allows even to run one program in two shells with different perl versions.

This is possible because pvswitch uses a environment variable to select the interpreter version to use. This environment variable can be set in different sessions independently.

pvswitch is installed as new program binary (e.g. perl) the old one will be renamed to program.pvswitch.

Now every time you execute a this program (e.g. perl), pvswitch is executed. It doesn't matter how you start the program...

perl myscript.pl
./myscript.pl # if it has a hash-bang '#! /usr/bin/perl'

for both cases the pvswitch binary will be executed, pvswitch will than check for the environment variable PVSWITCH_PERL_BINARY (if you are running perl), if it is found it tries to find this key in the configuration file pvswitch.conf and execute the program which is configured for the version configured set in the environment variable (e.g. perl.pvswitch).

So it just executes the real program (e.g. perl interpreter). Depending on the environment a different version might be selected.

There are some convenient tools (e.g. perlver, pvconfig) to configure this.

What's New in This Release:
  • Fixed a bug which could cause segmentation violation.
    tags environment variable  perl myscript  perl versions  different perl  the environment  hash bang  bin perl  for the  perl pvswitch  usr bin  the program  another perl  the version  

    Download Program Version Switch 1.03


     http://www.fatalmind.com/software/pvswitch/pvswitch-1.03.tar.gz
     http://www.fatalmind.com/software/pvswitch/pvswitch-1.03.tar.Z


    Authors software

    Program Version Switch 1.03 (by mws)
    pvswitch is a very tiny program which makes it possible to use different program installations on one machine flawlessly.

    It's fle


    Similar software

    Program Version Switch 1.03 (by mws)
    pvswitch is a very tiny program which makes it possible to use different program installations on one machine flawlessly.

    It's fle

    Inline::CPR 0.12 (by Brian Ingerson)
    Inline::CPR is C Perl Run

    Tclperl 3.1 (by Jean-Luc Fontaine)

    mod_speedycgi 2.22 (by Sam Horrocks)
    mod_speedycgi speeds up perl scripts by running them persistently.

    SpeedyCGI is a way to run perl scripts persistently, which can

    Piet::Interpreter 0.03 (by Marc Majcher)
    Piet::Interpreter is a Perl interpreter for the Piet programming language.

    SYNOPSIS

    use Piet::Interpreter;

    my $p = P

    Devel::Profile 1.04 (by Jeff Weisberg)
    Devel::Profile is a Perl module to tell me why my perl program runs so slowly.

    SYNOPSIS

    perl -d:Profile program.pl
    les

    Visual Perl/Tk 1.22 (by Felix Liberman)

    Perl Chat 0.1.1 (by Torrance Jones)
    Perl Chat is a project that consists of a client and a server, both written in perl

    VisiScript 0.4.3 (by Michael Neuroth)
    VisiScript is a simple graphical frontend for scripting languages like minscript, Python,Ruby, Tcl, Perl, Lisp/Scheme or others.

    V

    Test::Perl::Critic 0.07 (by Jeffrey Ryan Thalhammer)
    Test::Perl::Critic is a Perl module use Perl::Critic in test programs.

    SYNOPSIS

    use Test::Perl::Critic;

    critic_ok($file)


    Other software in this category

    ScummVM 0.9.1 (by James Brown)
    ScummVM project is a 'virtual machine' for several classic graphical point-and-click adventure games.

    It is designed to

    Funkee 0.9 (by Joshua Turner)
    Funkee is a cross-platform scripting host built on top of the Java Virtual Machine and the Groovy scripting language

    Perl 5.8.8 (by The Perl Foundation)
    Perl is a stable, cross platform programming language

    Python 2.5 (by Guido van Rossum)
    Python is an interpreted, interactive, object-oriented programming language

    Tcl/Tk 8.5a5 (by Tcl Core Team)
    Tcl provides a portable scripting environment for Unix, Windows, and Macintosh that supports string processing and pattern matching,

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags