#!/bin/perl $bbproctab="bb-proctab"; $bbproctab_bkp="bb-proctab.bkp"; $dir="/export/home/bbuser/bb/etc"; $rcp="/bin/rcp"; $rsh="/bin/rsh"; @hosts = (host1,host2,host3); foreach $host(@hosts) { `$rsh $host mv $dir/$bbproctab $dir/$bbproctab_bkp`; `$rcp $bbproctab $host:$dir`; print "$rcp $bbproctab $host:$dir\n"; }
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |