>> 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?