Manually specifying the shell

Discussion in 'Perl' started by Adam Preble, Mar 17, 2005.

  1. Adam Preble

    Adam Preble Guest

    I have a problem with the default shell and Perl. We have a Solaris
    machine here that I believe uses the Bourne shell by default, and
    everything is written for it in that. However, Perl defaults to sh.
    This leads to some conflicts when setting environment variables and such
    in a separate script. There are ways around it by rewriting the script,
    but I was wondering if the shell could just be changed in Perl.

    I know on Win32, there's a PERL5SHELL environment variable, but that
    doesn't help me on UNIX variants--specifically between Linux and
    Solaris. Is there a way?
     
    Adam Preble, Mar 17, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    6,970
    Jonathan Bromley
    Feb 18, 2005
  2. Replies:
    0
    Views:
    764
  3. Gerardo Herzig
    Replies:
    1
    Views:
    1,443
    Philipp Pagel
    Feb 27, 2008
  4. Samuel A. Falvo II
    Replies:
    0
    Views:
    687
    Samuel A. Falvo II
    Oct 8, 2008
  5. gaurav kashyap
    Replies:
    2
    Views:
    832
    gaurav kashyap
    Oct 30, 2008
  6. gaurav kashyap
    Replies:
    3
    Views:
    882
    gaurav kashyap
    Oct 31, 2008
  7. edwithad

    Bash shell to Python shell?

    edwithad, Sep 28, 2009, in forum: Python
    Replies:
    4
    Views:
    2,150
  8. moongeegee

    execute a shell script in a shell script

    moongeegee, Dec 3, 2007, in forum: Perl Misc
    Replies:
    2
    Views:
    489
    Ben Morrow
    Dec 4, 2007
Loading...