#!/bin/sh # # This script syncronices a given path from equivalent one at remote machine
the_dir=`echo $1 | head -1 | sed 's//\?/g'`
curpath=`echo $NAUTILUS_SCRIPT_CURRENT_URI | sed 's/file\:\/\///'`
THE_DIR="$curpath/$the_dir"
if test -d $THE_DIR; then EXCLUDES="--exclude *.o --exclude lib*.a" #xmessage "rsync -e ssh -auvzH $EXCLUDES rap:$THE_DIR/ $THE_DIR/" gnome-terminal -t "GET transfer:$THE_DIR" -e "rsync -e ssh -auvzH $EXCLUDES transfer:$THE_DIR/ $THE_DIR/" fi
De hecho tengo varios "send_to" y "get_from" para distintas máquinas, organizados en subcarpetas en el lugar de los scripts de Nautilus (cada subcarpeta aparece como un submenú en el menú contextual).
Re:Mi línea de comando
(Puntos:2)( http://barrapunto.com/ | Última bitácora: Lunes, 24 Noviembre de 2008, 09:35h )
_____________
Un espresso? \____