Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    $ENV{JAVA_HOME}='/path/here';
    # set other items in %ENV as appropriate
    exec '/usr/bin/ksh';
    
  2. or download this
        foreach (`. $profile; env`)
        {
            chomp;
    ...
            my ($var, $value) = split(/=/, $_, 2);
            $ENV{$var} = $value;
        }