perl呼叫內部程式 - Linux

Todd Johnson avatar
By Todd Johnson
at 2012-03-22T01:40

Table of Contents

※ [本文轉錄自 Perl 看板 #1FQX7Q6t ]

作者: c224456k (看看文章的說!) 看板: Perl
標題: [問題] perl呼叫內部程式
時間: Thu Mar 22 01:37:28 2012

我已經寫好一支perl程式 -> ipc.pl

這支程式大概就是用本機去ping一個IP位址,然後把ping到的訊息&時間存成log檔

如果ping失敗還會在去執行令一支re.pl的程式

假設我把它放在/root 下

在linux底下去執行值接輸入 /root/ipc.pl 他能"正常執行"

我把他放到apache的 /var/www/cgi-bin/ 下

使用瀏覽器去看 http://127.0.0.1/cgi-bin/ipc.pl

會卡在"存成log檔"以及"執行令一支re.pl"的那邊

不知道是否權限問題還是其他問題?

--
Tags: Linux

All Comments

安裝openwebmail的問題

Charlotte avatar
By Charlotte
at 2012-03-20T22:37
在執行./openwebmail-tool.pl --init時出現下面的錯誤訊息 Creating UTF-8 locales... langconv ar_AE.CP1256 -andgt; ar_AE.UTF-8 /usr/bin/suidperl: symbol lookup error: /us ...

curlftpfs

Sarah avatar
By Sarah
at 2012-03-20T21:00
※ 引述《joexx12 ((X ̄X)uu...)》之銘言: : 原本用法 : curlftpfs -o ftp://帳號:密碼at位址/路徑/ /掛載點 : 但是這樣密碼就會顯示出來,一般user 下df -h指令就可看到 我連的ftp 包含帳號密碼 : 後來改成 : curlftpfs -o user=帳 ...

curlftpfs

Candice avatar
By Candice
at 2012-03-20T20:28
最近發現個很好用的程式 curlftpfs 他可以用FTP的方式mount 遠端的FTP當作local folder 小弟遇到個問題想請教各位 我想開機就讓他自動執行 原本用法 curlftpfs -o ftp://帳號:密碼at位址/路徑/ /掛載點 但是這樣密碼就會顯示出來,一般user 下d ...

剛看到的 某fm和pcmanfm的比較

Hedda avatar
By Hedda
at 2012-03-20T16:56
Why two file managers? Because I use two. They do things differently, both both do some things better than the other... It comes down to speed and flexib ...

ubuntu 7.10裝glibc的問題~

Bennie avatar
By Bennie
at 2012-03-20T16:33
※ 引述《scarface ((andlt;ゝω・)綺羅星☆)》之銘言: : 因為要build的code在make期間出了 : /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.7and#39; not found (required by xxx : 的error ...