[Mew-dist 10089] impwagent's argument

SAKAI Kiyotaka ksakai at example.com
1999年 8月 16日 (月) 15:38:28 JST


些細なことですが、Solaris 2.x の /etc/init.d にある script を start,
stop を付けて実行することに慣れた身には、impwagent も start, stop で
起動、停止ができると嬉しいので、以下のようにしてもらえないでしょうか?
-- 
酒井 清隆 (E-mail: ksakai at example.com)
-------------- next part --------------
Index: impwagent.in
===================================================================
RCS file: /home/ksakai/cvsroot/im-119/impwagent.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 impwagent.in
--- impwagent.in	1999/08/16 02:33:28	1.1.1.1
+++ impwagent.in	1999/08/16 06:31:12
@@ -36,7 +36,7 @@
 read_cfg();
 
 # server termination
-if ($ARGV[0] =~ /quit/i) {
+if ($ARGV[0] =~ /stop|quit/i) {
     $res = &connect_agent(1);
     $res = &talk_agent("QUIT\n") if ($res ne '');
     if ($res eq '') {
@@ -59,14 +59,14 @@
     exit 0;
 }
 
-if ($ARGV[0] =~ /help/i || @ARGV > 0) {
+if ($ARGV[0] !~ /start/i && @ARGV > 0) {
     print <<EOF;
 $Prog: IM Password Agent -- hold passwords to reuse on later sessions.
 
 Usage:
 	$Prog help		show this message
-	$Prog		start $Prog
-	$Prog quit		terminate $Prog
+	$Prog [start]	start $Prog
+	$Prog stop/quit	terminate $Prog
 	$Prog clear		clear passwords held by $Prog
 
 If you wish to use the feature supplied by $Prog, put "UsePwAgent=yes"


Mew-dist メーリングリストの案内