SUMMARY: remote ssh awk within shell script

From: Dave Markham <dave.markham_at_fjserv.net>
Date: Thu Feb 08 2007 - 12:13:40 EST
To follow i've actually gotten the awk working on its own without egrep.

con_test_res_list=$( ${SSH} -l USER $con_server 2>> $con_logfile "awk
'/^\// {print "\$1"}' $REM_BK_LOC_FILE" )

If anyone is interested at all :)

output :-
$
config set status []
manual set status [1]
Checking connection to remote host [server]
+ echo \nStarting Connection test for hood\n
+ 1>> /***/log/server.***.080207-17h09m24s.log
+ + /usr/bin/ssh -o ConnectTimeout=15 -o BatchMode=yes -n -l **** server
awk '/^\// {print $1}' /etc/novab_backup_location
+ 2>> /***/log/server.****.080207-17h09m24s.log
con_test_res_list=/location1
/loction2/somwhere
/dir/dir2/file

Sciprt pid before rem_get is 17059
-----------------------------------
Ok lets see if options are set

Function = [****]
Server param = [SERVER]
Local config file = []
Remote backup location file is [/etc/novab_backup_location]
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Feb 8 12:13:13 2007

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:04 EST