head	1.4;
access;
symbols
	Hobson_Rock_14Dec2009:1.3
	Hobson_Rock_16Oct2009:1.1
	Hobson_Rock_29June2009:1.2;
locks; strict;
comment	@# @;


1.4
date	2010.01.25.21.41.59;	author rob;	state Exp;
branches;
next	1.3;

1.3
date	2009.10.16.18.00.23;	author rob;	state Exp;
branches;
next	1.2;

1.2
date	2009.06.18.18.23.45;	author rob;	state Exp;
branches;
next	1.1;

1.1
date	2009.06.13.03.30.01;	author rob;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Added copy of mission.pp, which still leaves parosci.dat and DvlData.bin uncopied.
@
text
@#! /bin/bash
#
# PURPOSE: Copy logs from the dorado1 directory to ~rob/logs.
#

. .profile
cd logs
if [ -a "$1" ] 
then
    cd $1
else
    mkdir $1
    cd $1
fi

for file in $AUVD/logs/$1/*.log 
do
    gzip -c $file > `basename $file`.gz
    echo `basename $file`.gz
    touch -r $file `basename $file`.gz
done

for file in $AUVD/logs/$1/*.pp 
do
    gzip -c $file > `basename $file`.gz
    echo `basename $file`.gz
    touch -r $file `basename $file`.gz
done


for file in $AUVD/logs/$1/*.cfg 
do
    gzip -c $file > `basename $file`.gz
    touch -r $file `basename $file`.gz
done

gzip -c $AUVD/logs/$1/syslog > syslog.gz
touch -r $AUVD/logs/$1/syslog syslog.gz 

cd ~
@


1.3
log
@QNX-side companion script to getlogsrob.  It compresses and copies selected
log files over to ~rob/logs/$1.  It now preserves dates.
@
text
@d23 8
@


1.2
log
@Now includes *.pp
@
text
@d20 1
d26 1
a26 5
done

for file in $AUVD/logs/$1/*.pp 
do
    gzip -c $file > `basename $file`.gz
d30 1
@


1.1
log
@getlogsrob is a cygwin-side script, and cplogs is a campanion script residing
the Qnx machine under ~rob.  The purpose is for a user other than dorado1 (i.e. rob) to
be able to run a script that rsh'es into $AUV_HOST, compresses the log files,
and pulls them back.  The problem is that under cygwin, rsh only works for the
same user on Qnx.  That is, rob can rsh to rob, but not to dorado1.

The "all" argument doesn't yet work because I haven't figured out how to pass
it to cplogs.
@
text
@d27 5
@

