Skip to content

Instantly share code, notes, and snippets.

@dap
Created August 18, 2010 02:53
Show Gist options
  • Save dap/533200 to your computer and use it in GitHub Desktop.
Save dap/533200 to your computer and use it in GitHub Desktop.
Set process title from Perl
#!/usr/bin/perl
use Sys::Proctitle qw/:all/;
# ps
$0 = "awesome_code";
# top
setproctitle("awesome_code");
while (1) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment