Skip to content

Instantly share code, notes, and snippets.

@alambike
Created February 15, 2016 08:41
Show Gist options
  • Save alambike/c76ddb14fcb2cf90ca5f to your computer and use it in GitHub Desktop.
Save alambike/c76ddb14fcb2cf90ca5f to your computer and use it in GitHub Desktop.
Obtener environment de un proceso
use strict;
use Data::Dumper;
my $pid = $ARGV[0];
open my $f, "/proc/$pid/environ" || die($!);
my $linea = <$f>;
print Dumper(split '\0', $linea);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment