See also entry in DESCRIPTION file
Usage: ProEngineer [options] [command] [startup-options]
ProEngineer is the startup command for Pro/ENGINEER.
options: -h => this help screen
-c => check NLO-licenses first
-d => start first free license
-s => startup from current directory
-f => fast start, do not check running licenses.
-i => do not exclude running licenses from button list
-n => do not show confirmation window if Pro/E crashes
or if license is already running.
-r => Run license remote. Do not reset REMOTE variables.
If the -c option is specified prostatus will be run first.
If you specify the -d option the script will start the first FREE
Pro/E license.
If you specify the -s option Pro/ENGINEER will startup from current
directory.
If you specify the -i option all licenses are included in the button
list of xconfirm even if the license is in use.
The -f option overrules the -c option.
If you specify [command] this script will use the command to startup
Pro/ENGINEER if it exists in the command-list.
Examples (combinations are possible):
ProEngineer test_model.asm (retrieve model)
ProEngineer 1111 (debugging mode)
ProEngineer test.txt (start trail file)
ProEngineer -1 0 3 -batchfile batchfile.txt (Run plot batch-file)
Author: Olaf Corten, the Netherlands
E-Mail: olafc@molding.fico.nl or ocorten@knoware.nl
################################################################################
# History:
# 19990219 Changed SCRIPTS_DIR extraction.
# 19960723 Changed SCRIPTS_DIR setting.
# 19960620 Added break in switch in case of unknown option to enable giving
# -g:x_windows as a commandline option.
# 19960417 ps -ef now written to tmpfile to prevent 'word too long' error.
# 19960404 Changed loop where commandline arguments are checked.
# The -d option will now start the first FREE Pro/E license.
# Added more info when a license is started.
# Added reset of DISPLAY, and REMOTE* variables to force Pro/E to
# start on machine you are logged to. Can be disabled with -r option.
# 19960219 Added -n option.
# 19960206 Added creation of /usr/tmp/proe for 'in-session' mapkeys
# 19951211 Changed /sbin to /bin (fix for SUN users), removed version number.
# 19950928 Added Continue/Cancel confirmation if license is already running.
# 19950423 Added PROSTATUSTEXT and -f option.
# 19940617 First version.
#
# Originally written by Mark Perry, Intercad, Melbourne, Australia.
# Date: 20/7/93
# E-Mail: mperry@sungear.mame.mu.oz.au
#
# This script is devided in 4 sections:
# The first section initializes and checks all commandline options.
# The second section sets all configurable parameters.
# The third section checks all running licenses.
# The fourth section starts the command.
#
# You will have to configure this script for your environment.
# Configure the lines between:
# # BEGIN LICENSE CONFIGURATION **********************
# ...
# # END LICENSE CONFIGURATION **********************
# and
# # BEGIN COMPANY CONFIGURATION ************************
# ...
# # END COMPANY CONFIGURATION ************************
#
# This script checks each workstation in MACHINE_LIST for a Pro/ENGINEER
# process from PROE_COMMAND_LIST and reports the workstation name, user
# name, pro-command, number of licenses in use/available and reports
# the pro-commands available on your machine. The number of licenses available
# are retrieved from the parameter NR_OF_LIC_LIST.
# When selecting a license this script will execute a script with the same name
# in your $PROE_BINARY directory and redirect output to LOGFILE.
#
# Assumptions:
# 1. Your Pro/Engineer commands are linked to $PROE_BINARY
# 2. Your workstation name and user names are less than 12 characters
# 3. Your license names are less than 19 characters (for the buttons
# of xconfirm use a maximum length of 10 characters, otherwise the
# names will be truncated).
# 4. The users are able to open a rsh on all the machines (add all
# machines to the .rhosts file).
# 5. This script has been written for Silicon Graphics machines. For other
# platforms the script will probably need some changing.
#
# Use descriptive startup commands like pro_adv_design or something like
# pro_fdasspi which could stand for Pro/E with the modules feature, detail
# assembly, sheetmetal, surface, plot and interface.
#
# The script uses xconfirm as dialogue with the user. The result of the check
# is translated into one long CONFIRM_TEXT string. Each message is constructed
# as one word (replacing spaces with underscores). This is not really neat but
# unfortunately unavoidable. A selection of the available licenses will be
# presented as buttons. You could change this script to work in terminal
# mode only (See notes in this script).
#
# If the -c option is used the script runs prostatus on the NLO-server and
# puts the output in the PROSTATUSTEXT variable.
#
# For easy use create in one of your bin directory's the command 'pro' linked to
# this script (ProEngineer). Users may then type pro at the system prompt.
#
# Or even better add a Pro/E menu to your toolchest by creating a .auxchestrc
# file in your HOME-directory with the following contents (make sure
# to alter the directory's to your system configuration):
#
# ***** Begin .auxchestrc file **********
# Menu ToolChest
# {
# no-label f.separator
# "Pro/E" f.menu ProE
#
# }
#
#
# Menu ProE
# {
# "Pro/ENGINEER" f.checkexpr "test -x $HOME/OCUS/scripts/ProEngineer" "$HOME/OCUS/scripts/ProEngineer"
# no-label f.separator
# "Pro/ADV_DESIGN" f.checkexpr "test -x /bin/pro_adv_design -a -x $HOME/OCUS/scripts/ProEngineer" "$HOME/OCUS/scripts/ProEngineer pro_adv_design"
# "Pro/DEMO" f.checkexpr "test -x /bin/pro_demo -a -x $HOME/OCUS/scripts/ProEngineer" "$HOME/OCUS/scripts/ProEngineer pro_demo"
# )
# ***** End .auxchestrc file **********
#
# commands used: csh, set, ls, echo, cat, awk, sed, rsh, tail, grep, wc
# sort, uniq, cd, date, xconfirm
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose, without fee, and without written agreement is
# hereby granted, provided that the following two paragraphs appear in all
# copies of this software.
#
# IN NO EVENT SHALL OLAF CORTEN OR HIS EMPLOYER BE LIABLE TO ANY PARTY FOR
# DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
# OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF OLAF CORTEN OR HIS
# EMPLOYER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# OLAF CORTEN AND HIS EMPLOYER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
# AND OLAF CORTEN OR HIS EMPLOYER HAS NO OBLIGATION TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
# This Software is NOT supported by Parametric Technology Corporation.
#
##################################################################################
|