File transfer from UNIX to shared location using shell script

Is there any possible way transfering the file from unix to shared location using shell script.
i had created the batch script to fetch the files from unix to shared location and it works fine. Due to some problem in windows unable to transfer the file to shared location automatically. can anyone please advise to transfer the file automatically through shell script.

Of course you can transfer a file using a shell script.

1 Like

It depends on what you have available on the UNIX side: the classical means of transferring files to/from UNIX are the file transferring utilities of TCP/IP, namely rcp and ftp . Both can be included in scripts but are less frequently used nowadays because they transfer files (and even the password authentication necessary) unencrypted over the network. If security is of no concern to you you could still use them.

The modern counterparts to these are scp and sftp . Basically they work the same way but adding encryption to the data transfer and the authentication process. These can be scripted too.

To get more than this generic answer you will need to tell us more about your system (OS? version? security concern yes/no? utilities available? ....) and ideall include the batch file you used up to now so that it can be translated into an analogous UNIX script.

I hope this helps.

bakunin