#!/bin/bash -x

   server=$1
   service=$2
   password=$3

(
        #echo translate
	echo "print -"
	cat
) | /usr/local/samba/bin/smbclient "\\\\$server\\$service" $password -U $server -N -P

