Ronnie has asked for the wisdom of the Perl Monks concerning the following question:
This results in the semi-expected -#!/usr/bin/perl -w # print "\n\t<***** SOR *****>\n" ; # if (exists $ENV{HOME}) { print "\n\tOH :: $ENV{ORACLE_HOME}\n" ; print "\n\tHome :: $ENV{HOME}\n" ; $file = "$ENV{HOME}/.profile" ; print "\n\tFile :: $file\n" ; $result = system "$file" ; print "\n\tResult :: $result\n" ; $result = system "ISWTEST" ; print "\n\tResult :: $result\n" ; "ISWLIVE" or warn "\n\tNay chunce min!!!\n" ; print "\n\tOH :: $ENV{ORACLE_HOME}\n" ; } else { print "\n\tOh no it's nae!\n" ; } # print "\n\t<***** EOR *****>\n" ;
Cheers, Ronnie<***** SOR *****> OH :: /isw/tpp/oracle/test/8.1.7 Home :: /home/interface File :: /home/interface/.profile Result :: 0 Can't exec "ISWTEST": No such file or directory at xxrc_profile.pl lin +e 12. Result :: -1 OH :: /isw/tpp/oracle/test/8.1.7 <***** EOR *****>
edit (broquaint): added <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unix Aliases?
by pelagic (Priest) on Sep 07, 2004 at 10:50 UTC | |
by Ronnie (Scribe) on Sep 07, 2004 at 13:02 UTC | |
by ikegami (Patriarch) on Sep 07, 2004 at 16:51 UTC | |
by Ronnie (Scribe) on Sep 08, 2004 at 08:53 UTC | |
by pelagic (Priest) on Sep 08, 2004 at 09:24 UTC | |
| |
|
Re: Unix Aliases?
by Anonymous Monk on Sep 07, 2004 at 11:27 UTC |