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