On Fri, 2009-02-20 at 16:00 +0100, Juergen Beisert wrote:
> Subject: pan: Honor the -q command line option
> From: Juergen Beisert <[email protected]>
>
> If one wants pan to be quiet, pan should honor this.
>
> Signed-off-by: Juergen Beisert <[email protected]>
Honored.
Regards--
Subrata
>
> ---
> pan/pan.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> Index: ltp-full-20090131/pan/pan.c
> ===================================================================
> --- ltp-full-20090131.orig/pan/pan.c
> +++ ltp-full-20090131/pan/pan.c
> @@ -207,7 +207,7 @@ main(int argc, char **argv)
> filename = strdup(optarg);
> break;
> case 'h': /* help */
> - fprintf(stdout, "Usage: pan -n name [ -SyAehp ] [ -s starts ]"
> + fprintf(stdout, "Usage: pan -n name [ -SyAehpq ] [ -s starts ]"
> " [-t time[s|m|h|d] [ -x nactive ] [ -l
> logfile ]\n\t"
> "[ -a active-file ] [ -f command-file ] "
> "[ -C fail-command-file ] "
> @@ -253,7 +253,8 @@ main(int argc, char **argv)
> default:
> printf("Invalid time modifier, try: s|h|m|d\n");
> exit(-1);
> }
> - printf("PAN will run for %d seconds\n", run_time);
> + if (!quiet_mode)
> + printf("PAN will run for %d seconds\n", run_time);
> }
> timed = 1; //-t implies run as many starts as possible, by
> default
> break;
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list