/[sysadmin-cookbook]/bin/cook.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /bin/cook.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 65 by dpavlin, Wed May 13 18:31:33 2009 UTC revision 83 by dpavlin, Sun May 17 15:33:23 2009 UTC
# Line 6  test -e $1 || ( echo "usage: $0 recepise Line 6  test -e $1 || ( echo "usage: $0 recepise
6    
7  cat $1  cat $1
8    
9  grep '[a-z]*@[a-z]*:[^$#]*[$#]' $1 | cut -d\# -f 2 | xargs -i sh -x -c "{}"  ssh=''
10    if [ ! -z $2 ] ; then
11            ssh="ssh $2"
12    fi
13    
14    grep '[a-z]*@[a-z]*:[^$#]*[$#]' $1 | cut -d\# -f 2 | $ssh xargs -i sh -x -c "{}"
15    

Legend:
Removed from v.65  
changed lines
  Added in v.83

  ViewVC Help
Powered by ViewVC 1.1.26