Articles of perl

如何列出正在运行的进程的绝对path?

我最近遇到了一个问题,perl脚本正在消耗服务器资源。 我发现这是一个Perl脚本通过使用“顶”。 但它没有给脚本的path。 也没有“PS”。 是否有可能得到当前运行perl脚本的path? 如果是这样,怎么样? 澄清:我不需要perl二进制文件的path , 我需要二进制文件正在执行的perl脚本的path 。

不能在Debian 5上安装perl-suid

我正在尝试安装一些我已经下载的脚本所需的perl-suid,并获得以下内容 $ sudo apt-get install perl-suid The following packages have unmet dependencies: perl-suid: Depends: perl (= 5.10.0-19lenny3) but 5.10.1-17 is to be installed E: Broken packages $ cat /etc/apt/sources.list deb http://http.us.debian.org/debian/ lenny main contrib non-free deb-src http://http.us.debian.org/debian/ lenny main contrib non-free 有没有办法来解决这个软件包,从源码或其他?

升级后perl问题

我升级了安装在/ usr / local / lib / perl5中的perl / ……先前旧版本的perl安装在/ usr / lib / perl5 / 现在,当我安装spamassasin定位旧位置,并显示以下错误。 启动spamd:在@INC中找不到Mail / SpamAssassin.pm(@INC包含:/usr/lib/perl5/vendor_perl/5.8.8 /usr/local/lib/perl5/site_perl/5.12.3/i686-linux -thread-multi /usr/local/lib/perl5/site_perl/5.12.3 /usr/local/lib/perl5/5.12.3/i686-linux-thread-multi /usr/local/lib/perl5/5.12.3 )在/ usr / bin / spamd第84行。BEGIN失败 – 编译在/ usr / bin / spamd第84行中止。 我已经尝试将/ usr / bin / perl中的shebang更改为/ usr / local / bin / perl,但是没有成功。 “perl -V”输出。 我的perl5(修订版5版本12颠覆3)configuration总结: 平台:osname […]

有没有人知道用HP,Perl或bash与HP OV(NNM)进行交互的方法?

有谁知道是否有任何API /库从Perl或Python访问NNM数据库吗? 我们有一个NNM 7.53,它允许我们通过http访问基于Java的applet的数据。 当然,通过“ovw”GUI界面。 我试过使用Mechanize和selenium2(webdriver)自动化一些检查。 我们的倾向是将其与我们的“通用主控台”上的其他监控服务集成在一起。 非常感谢。 渣子

在Redhat 5.5上安装Lamp&Perl

我需要在Redhat 5.5机器上安装LAMP(包括Perl)。 (注意:我对Linux相当陌生,但是做过与ubuntu类似的项目。)一个好的教程可能就足够了。 客户端需要访问一个cgi-bin来运行perl脚本(我还不太了解在服务器端运行perl脚本)。 我发现了两个特别提到RedHat的教程(根据Google,还不到一岁)。 一个看起来简单,另一个看起来很复杂: https://help.databarracks.com/index.php?/Knowledgebase/Article/View/1/1/installing-a-basic-lamp-stack-on-centos-or-redhat-enterprise-mysql-apache-php http://www.lamphowto.com/ 其他build议(作为替代或补充)赞赏。

Bugzilla不发送电子邮件,甚至是testing文件?

我已经为我的域安装并设置了Bugzilla3。 除了电子邮件function以外,一切正常。 服务器使用Postfix,并且适用于我的PHP应用程序和命令行。 在Bugzilla中,我已经尝试设置mail_delivery_method 'testing',并没有什么显示在data / mailer.testfile ,它是完全空白… 我不知道下一步该怎么办?

如何优化MySQL插入使用Perl?

我在Perl中有一个日志parsing器,它在每一行使用mysql插入或更新命令。 喜欢: Log line 1: 2012-12-01 12:12 [perld] Hello world #1 …. Log line N: 2012-12-01 12:NN [perld] Hello world #N 它parsing这些行,并获取“时间戳”和“#N”,并将它们插入到MySQL数据库(parsing与perl :: tail函数行)。 我有约100行/秒,所以将有大约100插入到MySQL。 有什么解决scheme/algorithm来优化? 或者,也许我应该使用像插入缓冲区的东西?

我怎样才能安装一个perl模块只提供给我的用户名?

我需要为我的Perl脚本安装一些Perl模块。 但是,这些模块在我想运行脚本的服务器上不可用。 我也不想混淆服务器范围的库目录。 我认为可以通过操作“@INC”variables来完成。 我需要知道如何使用cpan和备用@INC安装新模块。 或者,将我自己的Perl二进制文件/环境与我的脚本绑定也是有意义的。 有任何想法吗?

nginxredirect问题与上游configuration

我有一个运行nginx和Plack / Starman的网站作为上游。 简单的configuration看起来像: 上游findmjob { server unix:/tmp/findmjob.sock; } 服务器{ 听80; server_name findmjob.com www.findmjob.com fb.findmjob.com; access_log /findmjob.com/log/access.log; error_log /findmjob.com/log/error.log info; root /findmjob.com/static; 位置 / { try_files $ uri @proxy; access_logclosures; 到期最大; } 位置@proxy { proxy_set_header主机$ http_host; proxy_set_header X-Forwarded-Host $ http_host; proxy_set_header X-Real-IP $ remote_addr; proxy_set_header X-Forwarded-For $ proxy_add_x_forwarded_for; proxy_pass http:// findmjob; } } 我有一些Perl代码返回一个redirect。 这意味着它可以在perl […]

无法在CentOS上安装Perl模块Apache :: SizeLimit

在CentOS机器上我已经安装了mod_perl: yum install mod_perl … Package mod_perl-2.0.4-10.el6.i686 already installed and latest version 好吧,现在我想安装Perl模块Apache :: SizeLimit,所以我做(和得到): yum install perl-Apache-SizeLimit … Running rpm_check_debug Running Transaction Test Transaction Check Error: file /usr/share/man/man3/Apache2::SizeLimit.3pm.gz from install of perl-Apache-SizeLimit-0.92-1.el6.rf.noarch conflicts with file from package mod_perl-2.0.4-10.el6.i686 任何想法如何我可以解决这个问题? 在此先感谢您的帮助! 亲切的问候,马提亚斯