~ubuntu-branches/ubuntu/trusty/pvm/trusty-proposed

« back to all changes in this revision

Viewing changes to examples/gmbi.c

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-08-09 00:00:40 UTC
  • mfrom: (2.1.5 dapper)
  • Revision ID: james.westby@ubuntu.com-20060809000040-16kh33tmxx2em716
Tags: 3.4.5-7
Build with SHELL=/bin/bash in debian/rules; fixes FTBFS when /bin/sh
isn't bash. (Closes: #379543)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
static char rcsid[] =
3
 
        "$Id: gmbi.c,v 1.5 1999/01/19 17:45:45 pvmsrc Exp $";
 
3
        "$Id: gmbi.c,v 1.6 1999/12/10 21:38:55 pvmsrc Exp $";
4
4
 
5
5
/*
6
6
 *         PVM version 3.4:  Parallel Virtual Machine System
36
36
 * This program will simply grab and dump the "info" fields
37
37
 * from the mailbox to display.
38
38
 *
39
 
 *  A regular expression <regex> is used to specify which of the
40
 
 *  mailboxes to grab and display.  Note that from the command line
41
 
 *  prompt the <regex> expression should be enclosed within 'single'
42
 
 *  quotes so that your shell does not try to process it...
 
39
 *  A search expression is used to specify which of the mailboxes
 
40
 *  to grab and display.  Note that from the command line prompt
 
41
 *  the expression should be enclosed within 'single' quotes so
 
42
 *  that your shell does not try to process it...
43
43
 *
44
 
 *  Example:  gmbi 'ra+ts'
45
 
 *  Will match any ( rat ) entry that contains at least one a:
46
 
 *                      ie ) rats - raats - raaats - etc...
 
44
 *  Example:  gmbi 'ra*ts'
 
45
 *  Will match any ( rats ) entry that contains at least one a:
 
46
 *                      ie ) rats - raats - ra123ts - etc...
47
47
 *
48
48
 *  Both the unqualified  gmbi  as well as  gmbi '*'   
49
49
 *  will return all mailbox entries.
50
50
 *
51
51
 *
52
 
 *  usage: gmbi <regex>
 
52
 *  usage: gmbi <expression>
53
53
 *
54
54
 *  files used:  gmbi.c taskf.c
55
55
 */
89
89
                /*
90
90
                 *  got valid data -- use it...
91
91
                 */
92
 
                strcpy( pattern, argv[1] );             /* copy regex to local */
 
92
                strcpy( pattern, argv[1] );             /* copy expression to local */
93
93
        }
94
94
        else {
95
95
                /*
105
105
                        /*
106
106
                         *  command line input is wacked - make user try again...
107
107
                         */
108
 
                        printf( "\n\nusage: gmbi <regex>\n" );
 
108
                        printf( "\n\nusage: gmbi <expression>\n" );
109
109
                        exit( -1 );
110
110
                }
111
111
        } /* end_if */
112
112
 
113
113
        /*
114
 
         *  get the mailbox information for the user specified regex 
 
114
         *  get the mailbox information for the user specified expression 
115
115
         *  pattern and display results
116
116
         */
117
117
        if ( (info = pvm_getmboxinfo( pattern, &nclasses, &classes )) < 0 ) {