#!/bin/sh
#
#
# (c) 2002 Sun Microsystems, Inc. Use is subject to license terms.  

# change the path to your needs
F=/tmp/checkpoint.out

touch $F
echo ----------------------------------  >> $F 2>&1
echo I am: `id`				 >> $F 2>&1
echo Checkpoint command called at `date` >> $F 2>&1
echo Myargs: $*				 >> $F 2>&1
echo done				 >> $F 2>&1
echo                                     >> $F 2>&1

echo Checkpoint command: /usr/bin/checkpoint -U -c sge_$1 -$2 >> $F 2>&1
/usr/bin/checkpoint -U -c sge_$1 -$2                          >> $F 2>&1
