[KLUG Members] calling functions from the shell
bill
members@kalamazoolinux.org
Mon, 09 Dec 2002 15:58:16 -0500
I intended to put it in a script. I'll probably throw in a fourth variable for
the password.
So, I'd include this file at the top of the script and then do:
CopyWinHost one two three four
CopyWinHost five six seven eight
etc., etc.
When that works, do a similar one for the Linux boxes.
I'm wondering if it's possible also to exclude the swap dir, changing
$WINCMD \\\\$REMOTE\\$SHARE 12345 -Tc -|gzip > $DEST
to
$WINCMD \\\\$REMOTE\\$SHARE 12345 -Tc -|gzip > $DEST -X *.swp
thanks,
bill
Adam Williams wrote:
> >> BACKDIR= /backup
> >> WINCMD= /usr/bin/smbclient
> >> function CopyWinHost(){
> >> . . .
> >> }
> >CopyWinHost one two three
>
> By "calling functions from the shell" do you mean from the CLI or in the
> (or a) script?
>
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
>