Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Sftp transfer doing as single row Post 302949813 by TioTony on Thursday 16th of July 2015 10:22:59 AM
Old 07-16-2015
Hi Arun,
You could use the solution noted in this post once the file is transferred:

Need to remove ^M charecters from all files

Thanks,
Tony
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

sftp command for file transfer

hi, I need to sftp a file from one unix system to another unix system. eg: filename is test.txt servername : abc@xyz please give me the sftp command for that. thanks in advance.. mohan.p (2 Replies)
Discussion started by: mohanpadamata
2 Replies

2. Shell Programming and Scripting

sftp file transfer

hi i am trying to login to remote server using SFTP Protocol and trying to upload a file butit is asking for the password. Note: I am trying to connect to FrontEnd server sftp SFTREGUP1@14.71.26.6 Connecting to 14.71.26.6... Password Authentication Password: Please help (14 Replies)
Discussion started by: Satyak
14 Replies

3. Shell Programming and Scripting

SFTP with ASCII file transfer

Hello - I have text file and need to load the data in Oracle through sqlloader. I need to move this file to unix server and load into oracle. When i SFTP(unfortunately i do not have FTP) to unix box, each line is appended with ControlM character... since it is transferring in BINARY... (4 Replies)
Discussion started by: govindts
4 Replies

4. UNIX for Dummies Questions & Answers

SFTP transfer does not complete

I am able to connect to a site and start a file transfer via SFTP, but when the file reaches "100%" -- the file does not complete and "stop". The 100% transfer status does not change (obviously), but the timer for SFTP keeps going and will not complete. This also happens when I try to get a file.... (2 Replies)
Discussion started by: loganban
2 Replies

5. Shell Programming and Scripting

Subtracting each row from the first row in a single column file using awk

Hi Friends, I have a single column data like below. 1 2 3 4 5 I need the output like below. 0 1 2 3 4 where each row (including first row) subtracting from first row and the result should print below like the way shown in output file. Thanks Sid (11 Replies)
Discussion started by: ks_reddy
11 Replies

6. Shell Programming and Scripting

Sftp : not able to print the echo statements after the sftp transfer

I had the below sftp script working perfectly but the problem is I am not able to send the echo statements . #!/bin/sh echo "Starting to sftp..." sftp admin@myip << END_SCRIPT cd /remotepath/ lcd /localpath/ mget myfiles*.csv bye END_SCRIPT echo "Sftp successfully." echo echo... (11 Replies)
Discussion started by: scriptscript
11 Replies

7. Shell Programming and Scripting

Passwordless file transfer using sftp

Hello all, I have a requirement, in which we need to stage a package to Unix remote server in an automation (we cant use ssh key generation) , do u have any idea how we can transfer the package to remote server using sftp .if you have any script plz share it to me (4 Replies)
Discussion started by: Ramji Sundaram
4 Replies

8. Shell Programming and Scripting

File transfer using SFTP

Hi, I want to a transfer file from remote machine to a local machine using SFTP where both my local and remote machines are Ubuntu machines.So i wanted to write a unix bash script which uses SFTP command to transfer the file from remote to local machine. My remote server is 178.28.30.106. ... (14 Replies)
Discussion started by: shree11
14 Replies

9. Shell Programming and Scripting

Splitting single row into multiple rows based on for every 10 digits of last field of the row

Hi ALL, We have requirement in a file, i have multiple rows. Example below: Input file rows 01,1,102319,0,0,70,26,U,1,331,000000113200000011920000001212 01,1,102319,0,1,80,20,U,1,241,00000059420000006021 I need my output file should be as mentioned below. Last field should split for... (4 Replies)
Discussion started by: kotra
4 Replies

10. UNIX for Beginners Questions & Answers

Execute a script after SFTP transfer

Hi All, I am having an issue with the script execution. I am having a SFTP process that send files to a location . I want to execute a script once it transfer the file to that location. Right now I am leveraging autosys file watcher to do that. Is there any way like MFT PPA that can execute... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies
xferlog(4)							   File Formats 							xferlog(4)

NAME
xferlog - FTP Server transfer log file SYNOPSIS
/var/log/xferlog DESCRIPTION
The xferlog file contains transfer logging information from the FTP Server, in.ftpd(1M). You can use the logfile capability to change the location of the log file. See ftpaccess(4). By default, each server entry is composed of a single line of the following form. All fields are separated by spaces. current-time transfer-time remote-host bytes-transferred filename transfer-type special-action-flag direction access-mode username service-name authentication-method authenticated-user-id completion-status The xferlog format capability can be used to customize the transfer log file format used. In addition to those in the default format, it also supports chroot-filename, file-size, and restart-offset fields. See ftpaccess(4). The fields are defined as follows: current-time The current local time in the form DDD MMM dd hh:mm:ss YYYY, where: DDD Is the day of the week MMM Is the month dd Is the day of the month hh Is the hour mm Is the minutes ss Is the seconds YYYY Is the year transfer-time The total time in seconds for the transfer remote-host The remote host name bytes-transferred The number of bytes transferred filename The absolute pathname of the transferred file transfer-type A single character indicating the type of transfer: a Indicates an ascii transfer b Indicates a binary transfer special-action-flag One or more single character flags that indicate any special action taken. The special-action-flag can have one of more of the following values: C File was compressed U File was uncompressed T File was archived, for example, by using tar(1) _ (underbar) No action was taken. direction The direction of the transfer. direction can have one of the following values: o Outgoing i Incoming access-mode The method by which the user is logged in. access-mode can have one of the following values: a For an anonymous user. g For a passworded guest user. See the description of the guestgroup capability in ftpaccess(4). r For a real, locally authenticated user username The local username, or if anonymous, the ID string given service-name The name of the service invoked, usually ftp authentication-method The method of authentication used. authentication-method can have one of the following values: 0 None 1 RFC 931 authentication authenticated-user-id The user ID returned by the authentication method. A * is used if an authenticated user ID is not available. completion-status A single character indicating the status of the transfer. completion-status can have one of the following values: c Indicates complete transfer i Indicates incomplete transfer chroot-filename The pathname of the transferred file relative to the chroot point. This will differ from the filename field for anonymous and guest users. file-size The size, in bytes, of the file on the server. restart-offset The offset, in bytes, at which the file transfer was restarted (0 when no restart offset was specified). FILES
/var/log/xferlog ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWftpr | +-----------------------------+-----------------------------+ |Interface Stability |External | +-----------------------------+-----------------------------+ SEE ALSO
tar(1), in.ftpd(1M), ftpaccess(4), ftpconversions(4), attributes(5) StJohns, Mike. RFC 931, Authentication Server. Network Working Group. January 1985. SunOS 5.11 25 Apr 2003 xferlog(4)
All times are GMT -4. The time now is 09:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy