1838263 Members
3619 Online
110125 Solutions
New Discussion

move files automatically

 
SOLVED
Go to solution
peterchu
Super Advisor

move files automatically

In my unix system , there are some fax files generated from the database , then these fax files need to be be moved to the windows fax server to fax out , now we do it manually , is there any good method / command ( except samba ) that can move the files from unix server to windows server automatically ? thx.
7 REPLIES 7
Mark Grant
Honored Contributor
Solution

Re: move files automatically

Two methods immediately come to mind.

The simplest is to have a cron job that moves the files on a regular basis.

The second is to use samba to share the fax directory between windows and unix. This way, when th eunix system writes the files, they will immediately available to windows.
Never preceed any demonstration with anything more predictive than "watch this"
peterchu
Super Advisor

Re: move files automatically

thx reply,

if use cron , what command is good for it ? thx
Mei Jiao
Respected Contributor

Re: move files automatically

You can write a script (or put it into crontab if the files are generated on regular basis), then run the script every time you want to move those files.

Besides, I think there's a FTP server for Windows, but is a purchaseable product from 3rd-party vendor. However, I think if you're running SAMBA or (CIFS) all along, you may tag to it as well.
Robert-Jan Goossens
Honored Contributor

Re: move files automatically

Hi,

You could create a ftp script and a cron entry to copy the file to a windows server.

ftp -n <open XXX.X.XX.XX
user name passwd
bi
lcd /dir
mput files
EOF

or you could install cifs (samba based) software on both servers.

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8724AA

Regards,
Robert-Jan
Robert-Jan Goossens
Honored Contributor

Re: move files automatically

Hi,

You could create a ftp script and a cron entry to copy the file to a windows server.

ftp -n <open XXX.X.XX.XX
user name passwd
bin
lcd /dir
mput files
EOF

or you could install cifs (samba based) software on both servers.

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8724AA

Regards,
Robert-Jan
peterchu
Super Advisor

Re: move files automatically

thx suggestions,

except ftp , is there any other command is good also ? is 'rcp' can do that ? Thx.

because ftp ask userid and password , I think it is not too good in my case , and I need to install the ftp server , so I don't want to use it .

Thx
Simon Hargrave
Honored Contributor

Re: move files automatically

Best way is probably rsync. That will let you keep the directory on UNIX and on NT in constant sync, without having to "poll" the directory frequently from cron.

Get HPUX rsync here: -

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-2.5.7/

The windows part can be gotten here: -

http://samba.anu.edu.au/rsync/