I need help writing a simple SFTP shell script to transfer a few files. What I have is server info of the remote computer I will be sending the files to. Please help I am new to the shell/linux stuff.
Name of files I want to transfer: RED*
Where I want to drop the files: FOLDER_2017
Last edited by rbatte1; 07-31-2017 at 01:21 PM..
Reason: Removed (auto?) email tags and wrapped in CODE tags to preserve multiple spaces for indenting.
I have automated an ftp process that FTP's files from one UNIX box to another in the following format:
ftp -n -v $REMOTE_SERV << EOF
user $FTP_USER $FTP_PASS
cd $REMOTE_PATH
put $CUR_NAME $NEW_NAME
bye
But how can I accomplish this SFTPing from a UNIX box to a LINUX box?
I've seen... (4 Replies)
I need to write a batch script for file transfer from SFTP to Windows system. SFTP is on Linux system. I kept this code in batch file and executing it.. but not working.. Even i tried from Command prompt like this "open sftp.host.com" but getting error. Can anyone help with the code and tell me how... (15 Replies)
Hi,
we have a big problem,
history:
we migrated our companies ftp and sftp-server, which were vsftp and openssh, to one server, software is called JSCAPE ftp server professional edition
for the first time everything was great, but after one or two months, our uploads hang, 0 byte files are... (11 Replies)
Hi all,
Can anyone help ...on how to ensure that a file is locked .
thanks & regards,
Soodoo
----------------------------------------
Problem description: -
We usually use the mv command in scripts to make sure that a file is complete and not being written to by another process.
... (1 Reply)
Hi
the below two line in my sh work fine in Linux but when I run it in HP UX it throws error saying "No such file or directory (-)."
can anyone pleas let me know what is wrong. Any help is appreciated.
INPUTFILE="$(echo ls -1t | sftp -b- $SFTPSERVER:$SFTPDIR |grep ^LK| head -1)"
echo... (1 Reply)
Hi,
I am looking for a shell script to sftp to a file server and copy all the files from a directory after the script is run.
The server name should be a user input parameter and of-course the username/password as well. Rest all should be handled by the script.
I tried with below snippet:-
... (1 Reply)
Hi . We have customer users uploading sales data in excel format in a portal, once this file is uploaded a batch process will SFTP the file from here to a linux virtual machine and then to the mainframe . We are seeing that there are many cases where all the rows the user entered in excel file... (1 Reply)
Hi Everyone,
I am trying to send files from Linux to DataPower server using public key based authentication but it's not working as expected and every-time password expecting for sftp transfer.
Can someone please help on this?
Steps I fallowed:
Created keys pair at source server... (4 Replies)
I want to get a Linux Certification to start my Career in IT sector. My Qualification is MCS from a top university. Suggest me some Linux Certifications. (1 Reply)
Discussion started by: alexwatson1711
1 Replies
LEARN ABOUT OSF1
data
Data(4) Kernel Interfaces Manual Data(4)NAME
Data - Contains data to be sent to remote systems
SYNOPSIS
/usr/spool/uucp/LocalSystemName/D.SystemNamexxxx###
DESCRIPTION
Data (D.*) files contain the data to be sent to remote systems by the uucp uucico daemon. The full pathname of a data file is a form of
the following: /usr/spool/uucp/SystemName/D.SystemNamexxxx###
where the SystemName directory and the SystemName portion of the file name indicate the name of the remote system. The xxxx### notation is
the hexadecimal sequence number of the Command (C.*) file associated with that data file; for example, D.venus471afd8.
After a set period of time (specified by the uusched daemon), the uucico daemon transfers the data file to the designated system. It
places the original data file in a subdirectory of the uucp spooling directory named /usr/spool/uucp/SystemName, where the SystemName
directory is named for the computer that is transmitting the file, and creates a Temporary (TM.*) file to hold the original data file.
After receiving the entire file, the uucp program takes one of three actions: If the file was sent with the uucp command and there were no
transfer problems, the program immediately renames the TM.* file with the appropriate data filename, such as D.venus471afd8, and sends it
to the specified destination. If the file was sent with the uuto command, the uucp program also renames the temporary data file with the
appropriate D.* filename. It then places the data file in the public directory /usr/spool/uucppublic, where the user receives the data
file and handles it with one of the uupick command options. If there were transfer problems (such as a failed login or an unavailable
device), the temporary data file remains in the spooling subdirectory. The uudemon.cleanu command, a shell script, removes these files
automatically at specified intervals, or they can be removed manually.
FILES
Describes accessible remote systems Contains uucp command, data, and execute files Contain instructions for file transfers Store data files
temporarily after they have been transferred to a remote system Contain files that the uucp program has transferred
RELATED INFORMATION
Daemons: uucico(8), uusched(8), uuxqt
Commands: uucp(1), uupick(1), uuto(1), uux(1), uudemon(4) delim off
Data(4)