#!/bin/csh 
#
# Script to set up modes when running pro/engineer
#
# $$1 d-01-07 19-jun-92 lokay  created
# $$2 D-01-49 18-Nov-92 James  Check that spg exists else ~ fails.

if (-r /etc/passwd) then
   if (`cat /etc/passwd | awk -F\: '$1 == "spg" {print}' | wc -l` > 0) then
      if (-e ~spg/bin/bin_aliases) source ~spg/bin/bin_aliases
   endif
endif

if (`alias $1` == "") then
  set command = $1
else
  set command = `alias $1`
endif
$command -1 0 3 -batchfile $2

