Results 1 to 3 of 3
Hi I want to know if somebody could assist me with the following: I need to push an ABC.txt file from a SUSE linux server to directory \TMS on a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-07-2010 #1
- Join Date
- Oct 2006
FTP and SFTP Automation for SUSE Linux
I want to know if somebody could assist me with the following:
I need to push an ABC.txt file from a SUSE linux server to directory \TMS on a Windows server.
This process needs to run automated & unattended each night at 1am. I am new to SUSE and have basic Redhat and Solaris experience.
Could somebody please assist me with the script/process/cron commands?
Your help would be appreciated!
- 10-08-2010 #2
I would think it would go something like this.
You would want a persistent mount to the Windows server. So, you should make sure the Samba client package is installed, and you should either use fstab or autofs (preferred) to mount the Windows share.
So, for the sake of simplicity:
# mkdir /mnt/windows # mount -t cifs //Windows/TMS /mnt/windows -ocredentials=/path/to/file/with/windows/creds,uid=crontabowner,gid=crontabowner
# crontab -e 0 1 * * * rsync -av /path/to/ABC.txt /mnt/windows
- 10-08-2010 #3
- Join Date
- Jun 2006
I have a script here you go, but aldo do not forget the cron entry:
quote user give id
quote pass give password
lcd the file directory
put the file