Assuming you have ssh-keys setup for password-less login between server A and server B you can use SFTP by creating batch files with the list of files to transfer:-
Im trying to transfers a file from one unix server to another , make some changes and then send it back to the original server. All this using modems.
I've been using "cu" and i can "get" the file but i can't "put" it. Besides I need to do this using a shell script. I can write a script to get... (4 Replies)
Hello Unix Gurus,
Help required from you.
My requirement is something like this
I want to create a concurrenct program in Oracle Applications using shell script to transfer files from Apps Server to destination FTP server.
I have created custom program, where I will extract all the... (4 Replies)
I need to transfer files from Windows to Hp-UX box with out any software(Filezilla ...., Fsecure file transfer)
Is it possible to transfer using command prompt ? (6 Replies)
Hi,
I am new to scripting, I need to write a script to transfer .TXT files from Server A (ftp) to Server B. Once the files in server B i need to transfer it to server C (sftp). (not transfer of files directly from server A to Server C )
Thanks!
Regards
Sendhil
---------- Post updated at... (3 Replies)
Hi All,
I have generated public and private pair to avoid to enter password manually while sending files through sftp.
But still I am facing issues and every-time prompt asking enter password.
Below are steps I fallowed to make ssh connection between two servers.
1. Generated public and... (5 Replies)
Discussion started by: renukeswar
5 Replies
LEARN ABOUT POSIX
fetchfile
SENDFILE(1) General Commands Manual SENDFILE(1)NAME
fetchfile - fetch file(s) via O-SAFT protocol
SYNOPSIS
fetchfile [ -46lakdPriqQvVI ] [ -f user ] [ -s [user@]server ] [ -C[wr]=conffile ] filename
fetchfile [ -lakdPriqQvVI ] [ -f user ] [ -s [user@]server ] [ -C[wr]=conffile ] -n filenumber
DESCRIPTION
fetchfile fetches files from a SAFT server to the local user spool.
In the SAFT server spool there must lay your sendfile public key to identify yourself. This key can be generated by the fetchfile -I com-
mand and has to be transfered to the SAFT server at the very first time. This prevents other people to steal your files.
You may list or fetch your files from the server. But remember, they are stored first in your local sendfile spool. You have to call
receive to really receive them to your current directory.
OPTIONS -4, -6 Explicitly force IPv4 or IPv6 connections. By default, the program will try to resolve the name given, and choose the appropriate
protocol automatically. If resolving a host name returns both IPv4 and IPv6 addresses, fetchfile will try to use the adresses in
the order they are returned by the resolver.
-l Only list the files on the server.
-a Fetch all files.
-k Keep files on server after fetching.
-d Delete files without receiving.
-n Specify the file number instead of the file name.
-r Call receive automaticly afterwards.
-f user Restrict file selection to this specifc user.
-V Show version information and exit.
-v Be verbose and show SAFT protocol messages.
-P Send files to stdout directly.
-i Ignore testing whether file has been already fetched.
-q Quiet mode 1: print no transfer messages.
-Q Quiet mode 2: print no transfer, information or warning messages.
-I Initialize fetchfile and the pgp key pair.
-s [user@]host
Specify an alternate saft server and/or alternate user.
-Cr=conffile
Read configuration file "config" or "restrictions" from server.
-Cw=conffile
Write configuration file "config" or "restrictions" to server.
ARGUMENTS
filename or filenumber
Specify the name of the file or its number (with option -n).
EXAMPLES
fetchfile -l
fetchfile -a
fetchfile -Cr=config -s saft.belwue.de
FILES
/var/spool/sendfile/$USER/
Your local spool directory.
$HOME/.sfspool/
Your local private spool directory if /var/spool/sendfile/$USER/ does not exist.
config, restrictions
Your configuration files for the server. See sendfile(1) for a description.
SEE ALSO receive(1), sendfile(1), fetchfile(7), sendfiled(8).
AUTHOR
Ulli Horlacher - framstag@rus.uni-stuttgart.de
3rd Berkeley DistributionSENDFILE(1)