Chinaunix首页 | 论坛 | 博客
  • 博客访问: 34111
  • 博文数量: 4
  • 博客积分: 185
  • 博客等级: 民兵
  • 技术积分: 45
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-19 10:25
文章分类

全部博文(4)

文章存档

2012年(4)

最近访客

分类: Python/Ruby

2012-03-31 16:08:00


点击(此处)折叠或打开

  1. sub ShowUsage
  2. {
  3. print STDOUT << "EOF";

  4. GD UXMON actmon monitoring package
  5. Activity monitoring utility

  6. usage: $0 [-h | --help] [-c | --config ] [-l | --logfile ] [-d | --debug ]

  7. -c : Configuration file to be used
  8. --config : Same as c
  9. -l : Logfile where the messages will be stored
  10. --logfile : Same as l
  11. -h : this (help) message
  12. --help : Same as h
  13. -d : debug mode
  14. --debug : Same as d


  15. EOF


  16. }

  17. ShowUsage();
result:

点击(此处)折叠或打开

  1. GD UXMON actmon monitoring package
  2. Activity monitoring utility

  3. usage: C:/Users/liuweic/Documents/demo/perl.pl [-h | --help] [-c | --config ] [-l | --logfile ] [-d | --debug ]

  4. -c : Configuration file to be used
  5. --config : Same as c
  6. -l : Logfile where the messages will be stored
  7. --logfile : Same as l
  8. -h : this (help) message
  9. --help : Same as h
  10. -d : debug mode
  11. --debug : Same as d
Note: $0 of line 8.

阅读(2743) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~