作者gosth (双星)
看板perl
标题请问 shell script 转成 perl 写法
时间Mon May 30 16:53:54 2005
请教一下 Perl 的朋友,我现在有一支 Script 已经用
Shell Script 简单写好了,想转成 Perl 写,不过卡在一行
不知道怎麽处理,不知道可否给一些提示呢?
卡在这一行:
#! /bin/sh
if [ 0 -eq `/bin/ps ax | /bin/grep httpd | /usr/bin/wc -l` ]
then
http restart
fi
就是不知道怎麽样去看 Linux 里面有没有 httpd 这个 process 还活着?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.200.217.5