02-10-2009
Selva,
How exactly is the file coming to the server? Is it through FTP? If so, what mode are you using for transferring? ASCII or BINARY?
Note that if the FTP transfer mode is ASCII, then the files might have ^M characters or square boxes appended at the end of each line, which may result in the failure of your script. Hence, BINARY mode of FTP transfer is always preferred.
HTH,
Regards,
Praveen
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello everyone,
this question is probably simple for you ppl but i am jus a beginner and still learing. i was wondering if someone could tell me that how does unix identify different program codes in it's environment.
for example, unix recognises this C code in the body of any script. how... (2 Replies)
Discussion started by: a25khan
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
I have a IP address of the target machine.Is there is any way to find out whether it is a unix box or windows box without logging into it?.
Regs
Anand (5 Replies)
Discussion started by: u449064
5 Replies
3. UNIX for Dummies Questions & Answers
Like many UNIX users, there is a small team that is connected to UNIX (under the same UNIX user) via putty from a Windows PC.
Is there a way, once under UNIX, to know the address of the originating computer or anything that can differentiate initial users ? (7 Replies)
Discussion started by: popescu1954
7 Replies
4. Shell Programming and Scripting
I have high values (such as ÿÿÿÿ) in a text file contained in an Unix AIX server. I need to identify all the records
which are having these high values and also get the position/column number in the record structure if possible. Is there
any Unix command by which this can be done to :
1.... (5 Replies)
Discussion started by: devina
5 Replies
5. Programming
Hi,
We are accessing our remote webserver using libcurl.We are using GET method to post the request.The request is a simplified URL.We will receive XML Response for the URL request.
Problem
For Few Scenarios, response for the URL request is received & our component is killed abruptly. Can... (11 Replies)
Discussion started by: banus
11 Replies
6. UNIX for Dummies Questions & Answers
I am a newbie to unix and appeared for an interview and was asked this question.
If i was working for a company as a support person on an application and has to monitor the logs how would i determine if there was outage by checking the logs and where would i search for the issue initially. and... (2 Replies)
Discussion started by: praveenveerla
2 Replies
7. AIX
Hi All, Need an urgent help, I have a requirement to find long running unix processes.. I have tried the below commands, but not succeed. I need to arrange the unix processess in an order of elapsed time (high to low) that runs in a system.
For Eg:
Consider we have 3 processes,
Pid 1
pid 2... (5 Replies)
Discussion started by: mohamedirfan
5 Replies
8. Shell Programming and Scripting
Hi All,
I have the below scenario in my environment
Developers used to copy file from windows to Linux box. Some time on the copied file developers miss to run the dos2unix utility. Because of this script gets failed during the execution. Most of the failures are due to the dos2unix format... (7 Replies)
Discussion started by: kalpeer
7 Replies
9. Shell Programming and Scripting
hi,
The function
open(OUTPUT, ">$output_filename"); #opens the file in (DOS) windows mode.
how to open the output file in unix mode.
please suggest.
thanks. (10 Replies)
Discussion started by: Rashid Khan
10 Replies
10. Shell Programming and Scripting
Hi,
I have a huge unsorted text file. We wanted to identify the unique field values in a line and consider those fields as a primary key for a table in upstream system.
Basically, the process or script should fetch the values from each line that are unique compared to the rest of the lines in... (13 Replies)
Discussion started by: manikandan23
13 Replies
xferlog(5) File Formats Manual xferlog(5)
NAME
xferlog - FTP server logfile
SYNOPSIS
DESCRIPTION
The file contains logging information from the FTP server daemon, (see ftpd(1M)). This file is found in Each server entry is composed of a
single line of the following form, with all fields being separated by spaces.
current-time transfer-time remote-host file-size filename transfer-type special-action-flag direction access-mode username
service-name authentication-method authenticated-user-id completion-status
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, and YYYY is the year.
transfer-time The total time in seconds for the transfer.
remote-host The remote host name.
file-size The size of the transferred file in bytes.
filename The name of the transferred file.
transfer-type A single character indicating the type of transfer. Can be one of:
for an ascii transfer
for a binary transfer
special-action-flag One or more single character flags indicating any special action taken. Can be one or more of:
file was compressed
file was uncompressed
file was tar'ed
no action was taken
direction The direction of the transfer. Can be one of:
outgoing
incoming
access-mode The method by which the user is logged in. Can be one of:
(anonymous) is for an anonymous guest user.
(guest) is for an passworded guest user (see the
command in ftpaccess(4)).
(real) is for a local authenticated user.
username The local username, or if guest, the ID string given.
service-name The name of the service being invoked, usually FTP.
authentication-method
The method of authentication used. Can be one of:
none
RFC931 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 This is a single character indicating the status of the transfer. It can be one of:
complete transfer
incomplete transfer
FILES
AUTHOR
was developed by the Washington University, St. Louis, Missouri.
SEE ALSO
ftpd(1M), ftpaccess(4), syslog(3C).
xferlog(5)