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