Query: pperl
OS: debian
Section: 1p
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PPERL(1p) User Contributed Perl Documentation PPERL(1p)NAMEPPerl - Make perl scripts persistent in memorySYNOPSIS$ pperl foo.plDESCRIPTIONThis program turns ordinary perl scripts into long running daemons, making subsequent executions extremely fast. It forks several processes for each script, allowing many processes to call the script at once. It works a lot like SpeedyCGI, but is written a little differently. I didn't use the SpeedyCGI codebase, because I couldn't get it to compile, and needed something ASAP. The easiest way to use this is to change your shebang line from: #!/usr/bin/perl -w To use pperl instead: #!/usr/bin/pperl -wWARNINGSLike other persistent environments, this one has problems with things like BEGIN blocks, global variables, etc. So beware, and try checking the mod_perl guide at http://perl.apache.org/guide/ for lots of information that applies to many persistent perl environments. Parameters $ pperl <perl params> -- <pperl params> scriptname <script params> The perl params are sent to the perl binary the first time it is started up. See perlrun for details. The pperl params control how pperl works. Try -h for an overview. The script params are passed to the script on every invocation. The script also gets any current environment variables, the current working directory, and everything on STDIN. Killing In order to kill a currently running PPerl process, use: pperl -- -k <scriptname> You need to make sure the path to the script is the same as when it was invoked. Alternatively look for a .pid file for the script in your tmp directory, and kill (with SIGINT) the process with that PID.ENVIRONMENTpperl uses the PPERL_TMP_PATH environment variable to determine the directory where to store the files used for inter-process communication. By default, the subdirectory .pperl of the user's home directory is used.BUGSThe process does not reload when the script or modules change. $^S is not represented identically with respect to perl, since your script will be run within an eval blockAUTHORMatt Sergeant, matt@sergeant.org. Copyright 2001 MessageLabs Ltd.SEE ALSOperl. perlrun. perl v5.14.2 2011-11-15 PPERL(1p)
Related Man Pages |
---|
speedy_backend(1p) - debian |
speedy(1p) - debian |
findbin(3pm) - suse |
test::script(3) - centos |
plack::app::cgibin(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
how to kill process from file |
Cron - Not working properly |
Unix Script to parse a CSV |
convert text contents/paragraph to cvs |
Bash script |