02-13-2019
Quote:
Originally Posted by
venkat918
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.
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
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to write a shell script to transfer files from Unix server to windows machine. This script will be scheduled on scheduler to run at specified intervals
#!/bin/ksh
ftp -n alaska <<End-Of-Session
user sss01 sample
cd /home/sss01
lcd D:/sample
mget *.txt
bye
when I executed the... (15 Replies)
Discussion started by: knag
15 Replies
2. Shell Programming and Scripting
Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies
3. UNIX and Linux Applications
I am developing an application that submits command line file transfers using ssh (Sun to Sun) and Tectia ssh (Sun to Windows Server) embedded in the code. Potentially many different trusted people will start the programs. Is there a way to have all the settings and keys localized so that there is... (0 Replies)
Discussion started by: PowersThatB
0 Replies
4. Shell Programming and Scripting
Hi
Before Posting my query in this forum, I have gone through various similar postings to get some idea on ftp and how to do that from unix shell script to windows server.
My question is related to FTP'ing from Unix to windows shared folder
My basic question is
1. Is it possible to do FTP... (4 Replies)
Discussion started by: shekharjchandra
4 Replies
5. Shell Programming and Scripting
Hi,
I am using Solaris 10 OS and trying to create shell script that can add input at certain location into a file.
The input that I am trying to put is new domain name
e.g
@newdomain.com
the file contains,
more test01.out
user/zzzz786@st.com/INBOX
user/zzzz@po.com/INBOX... (8 Replies)
Discussion started by: Mr_47
8 Replies
6. Shell Programming and Scripting
I have to transfer a file from unix to windows through Shell Script. I am using the below script, but it is not working. Please help. Please note --- I have to transfer the file from unix to windows. Not from windows to unix. I mean I don't have to use batch script.Only through unix shell script.... (1 Reply)
Discussion started by: vsachan
1 Replies
7. Shell Programming and Scripting
Hi all,
I'm trying to do a script to transfer file between my server and an external server via SFTP protocol. It doesn't use rsa key, but password.
When I run the script, it throw back a prompt that request me to put the password. How should I do for automatic login? Pleaes help :(
... (2 Replies)
Discussion started by: Kapom
2 Replies
8. Red Hat
I need to create a script which needs to transfer the "<filename>+yyyymmdd".dat file from a unix machine to a linux machine.. daily. we can use an active batch to schedule the script. however, the script needs to detect if the new file is present, if present, then transfer.
any help ?? (1 Reply)
Discussion started by: ravikodi
1 Replies
9. Shell Programming and Scripting
Hi All,
I want to transfer file from UNIX to shared locataion .
Shared location doesn't resides on my system.
Can somebody tell me is there any way i can transfer file from UNIX to shared location without using any tool WINSCP.
Thanks,
Amit (1 Reply)
Discussion started by: Amit786
1 Replies
10. Shell Programming and Scripting
Hello.
I want to to backup some "default:" values from a file do some other job and after restore that "default:" values back.
The problem is that the source and destination file has a lot of default: strings in it but with different values...
So..
Here is an example:
A part of my source... (6 Replies)
Discussion started by: ausdim
6 Replies
ZFTP(1) General Commands Manual ZFTP(1)
NAME
zftp - CERNLIB program to transfer ZEBRA formatted files over a network
SYNOPSIS
zftp [hostname]
DESCRIPTION
zftp is a file transfer program that supports the transfer of formatted, unformatted and ZEBRA RZ files. (If you have no idea what ZEBRA
files are, it is highly unlikely that you want to use this program instead of a standard FTP client.) Formatted files are typically KUIP
macros, command or EXEC files, source code or even FZ ALPHA exchange format files. Unformatted files may be FZ binary exchange format or
EPIO files or any other binary file with fixed length records.
zftp also provides LS, CD, PWD and RSHELL commands. It provides a common interface on all systems and the possibility of macros (via
KUIP). It avoids the problems of file format conversion that occur when transferring binary files between VMS and UNIX systems. zftp
comes with the traditional KUIP user interface, including a HELP function that describes the available commands.
Please note that, like many other FTP programs, zftp transfers unencrypted passwords over the network. It should therefore be used only
within a trusted LAN.
SEE ALSO
o zftp online HELP command
o ftp(1)
o zserv(8)
zftp is part of the CERNLIB CSPACK package, documented fully at http://wwwinfo.cern.ch/asdoc/psdir/cspack.ps.gz (PostScript) or
http://wwwinfo.cern.ch/asdoc/WWW/cspack/cspmain/cspmain.html (HTML).
AUTHOR
This manual page was written by Kevin McCarty <kmccarty@debian.org> for the Debian GNU/Linux system (but may be used by others).
February 3, 2003 ZFTP(1)