Help for this page

Select Code to Download


  1. or download this
    my $logname = `logname`; chomp($logname);
    my $output = `ps -ef | grep $logname`;
    if ($output =~ /.*\/export\/home\/$logname\/(.*)\/bin\/.*/m){
    print "$`\n";
    }
    
  2. or download this
    ^.*\/export\/home\/$logname\/(.*)\/bin\/.*$