head	1.1;
access;
symbols
	Hobson_Rock_14Dec2009:1.1
	BEFORE_VCS_CHANGE:1.1
	Hobson_Rock_16Oct2009:1.1
	Hobson_Rock_29June2009:1.1
	mar19_2009:1.1
	mar18_2009:1.1
	feb13_2009:1.1
	feb10-2009:1.1
	feb09-2009:1.1
	dec15_2008:1.1
	dec12_2008:1.1
	ST_10_5:1.1
	ST_10_4b:1.1
	ST_10_4:1.1
	ST_10_3:1.1
	ST10_HW:1.1
	ST_10_2:1.1
	ST_10_1:1.1
	ST_10_0:1.1
	AUTONOMY_BRANCH:1.1.0.2
	AUTONOMY:1.1
	AUTONOMY-2008_07_30:1.1
	Dev-27Jan2004:1.1
	Rel-15Dec2003:1.1
	Dev-2Dec2003:1.1
	Dev-1Dec2003:1.1
	Rel-26Nov2003:1.1;
locks; strict;
comment	@# @;


1.1
date	2001.10.22.10.53.32;	author sib;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial install of bash scripts for the control computer during AUV ops.
@
text
@#! /bin/bash
#
# usage: getalllogs [reg expression name for directories in logs]
#    eg: getalllogs 2001.290.*
#
# WARNING!!! Do not run this from a directory where the shell can expand the
#            argument into a directory name. Execute this from //c if you
#            need to.
#

# Purpose: automagically logs into potato (QNX laptop), copies over
#          all log files in the directories specified in the argument
#          to a local directory on potato, converts all binary log files, then
#          transfers all of the files to the f: drive on willet.

cd //f/healy_data/auv/logs

rsh -l dorado1 potato "(source ~/.profile; cd logs; cp -v -R -A -M unix //1/home/dorado1/auv/altex/onboard/logs/$1 .; cd ..; find logs -type d -name "$1" -print -exec cvtdir {} \;; cd logs; tar -cvf xfer.tar $1;)"

ncftpget -u dorado1 -p dorado1 potato . /home/dorado1/logs/xfer.tar
rsh -l dorado1 potato "(cd logs; rm xfer.tar; rm -rf $1;)"
tar -xvf xfer.tar
rm xfer.tar
find . -name "*.gz" -print -exec rm {} \;

echo
echo All Done
@
