postrun-query revision 8283
10139N/A# Script for investigating postponed post-installation jobs submitted 10139N/A# The contents of this file are subject to the terms of the 10139N/A# Common Development and Distribution License, Version 1.0 only 10139N/A# (the "License"). You may not use this file except in compliance 10139N/A# See the License for the specific language governing permissions 10139N/A# and limitations under the License. 10139N/A# When distributing Covered Code, include this CDDL HEADER in each 10139N/A# If applicable, add the following below this CDDL HEADER, with the 13529N/A# fields enclosed by brackets "[]" replaced with your own identifying 12905N/A# information: Portions Copyright [yyyy] [name of copyright owner] 10139N/A# Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved. 10139N/A# Use is subject to license terms. 10139N/A echo 'Usage: postrun-query [options]' 10139N/A echo ' -c <class>, --class <class>' 10139N/A echo ' Only consider jobs the belong to class <class>' 10139N/A echo ' return 0 if spooled jobs exist 1 otherwise' 10139N/A echo ' print the number of spooled jobs only. The default' 10139N/A echo ' behaviour is to list all jobs' 10139N/A echo ' display job number <job>' 10139N/A echo "postrun-query: error: argument expected after $opt" 10139N/A echo "postrun-query: error: argument expected after $opt" 10139N/A echo "postrun: error: invalid argument: $1" 12246N/A &&
echo "No spooled jobs found." \
12246N/A ||
echo "Job # Class(es) Package(s)"