Hi,

sorry, I just discovered a typo in the script I sent.
In the line 
if [ $# -eq 1 ] && [ -z "${1##/*.pdf}" ] ; then 
the slash before *.pdf must be deleted.
Here is the correct version:

#
# Set the command.  Process any debug flags and exec.
#

COMMAND=${1+"$@"}
# Check, whether we have command line arguments.
# If so, check whether it is a pdf document and add the full path
# to the file
if [ $# -eq 1 ] && [ -z "${1##*.pdf}" ] ; then 
 COMMAND=$PWD/${1}
  fi

# Now change into the root dir, hence avoiding automounted
# directories 
cd /

ACRO_EXEC_CMD="$ACRO_INSTALL_DIR/$ACRO_CONFIG/bin/$cmd"

if [ "$1" = "-DEBUG" ] ; then
  if [ $# = 1 ] ; then
    export ACRO_EXEC_CMD
    exec "$SHELL"
  else
    shift
    exec $COMMAND "$ACRO_EXEC_CMD"
  fi
fi

if [ -f "$ACRO_EXEC_CMD" ] ; then
  exec "$ACRO_EXEC_CMD" $COMMAND
else
  echo "ERROR: Cannot find $ACRO_EXEC_CMD"
  echo "  $prod not installed for this configuration, \"$ACRO_CONFIG\"."
  exit 1
fi

### Change back into old Dir. Do we need this?
cd -


Sorry!

Hauke

Reply via email to