GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SHELL::ENVIMPORTER::RESULT (3)

.ds Aq ’

NAME

package Shell::EnvImporter::Result - Results of a Shell::EnvImporter run

CONTENTS

SYNOPSIS



  use Shell::EnvImporter;

  my $sourcer = Shell::EnvImporter->new(
                  command  => $command,
                ) or die "$@";


  my $result = $sourcer->result;

  if ($result->succeeded()) {

    print "Variables imported:  ", join(", ", $result->imported), "\n";

  } else {

    print "Command failed! with ", $result->command_status, " status\n";
    print "STDERR:  ", $result->stderr, "\n";

  }



DESCRIPTION

Shell::EnvImporter allows you to import environment variable changes exported by an external script or command into the current environment. The Shell::EnvImporter::Shell object provides more control over interaction with the shell.

METHODS

<B>B>failed()<B>B> Summary status. Returns true if any of the shell status, user command status, or ’env’ command status are nonzero, and returns false otherwise.
<B>B>succeeded()<B>B> Summary status. Returns true if the shell status, user command status, and ’env’ command status are all zero, and returns false otherwise.

DATA MEMBERS

<B>B>shell_status()<B>B> Status of the shell - zero if the shell was successfully spawned, nonzero otherwise.
<B>B>shell_output()<B>B> Output produced by the shell when spawning (e.g. output from startup scripts).
<B>B>command_status()<B>B> Status of the user command.
<B>B>command_output()<B>B> Output produced by the user command.
<B>B>env_status()<B>B> Status of the ’env’ command.
<B>B>stderr()<B>B> Standard error output produced by the shell, the user command, and/or the ’env’ command.
<B>B>imported()<B>B> List of variables imported by the shell.

AUTHOR

David Faraldo, <dfaraldo@cpan.org>

COPYRIGHT AND LICENSE



  Copyright (C) 2005-2006 by Dave Faraldo

  This library is free software; you can redistribute it and/or modify it
  under the same terms as Perl itself.  No warranty is expressed or implied.



POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 215: You forgot a ’=back’ before ’=head1’
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SHELL::ENVIMPORTER::RESULT (3) 2006-09-01

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.