> > I'm an ISP Administrator and I'm very interesting in solve a big
> > problem. If you have a few minutes, I would be very gratefull to you:
> >
> > I have to create an unix script which open a remote session in other
> > machine with sftp and then transfer files every nights automatically
> > between both machines.
> >
> > Ej: the name of the file to transfer is "Datos".
> >
> >     I have achived the following:
> >
> >     # !/bin/bash
> >     sftp -n gom@hostname<<EOT> >/dev/null 2&>1
> >     pass jt42  ??????????????
> >     lcd /home/gom
> >     put Datos
> >     <EOT>
> >
> >     I have to connect other 4 machines using sftp.
> >     the line ??????? is wrong and of course the script doesn�t run and
> > doesn`t transfer this file.
> >
> > Thank�s for your helping

Reply via email to