Sponsored Content
Top Forums UNIX for Dummies Questions & Answers FTP no errors but file ZERO SIZED! Post 302595508 by 300zxmuro on Friday 3rd of February 2012 10:37:19 AM
Old 02-03-2012
Let me show you:

The target path is /app/ARSystem/prdus1/conf
The user is arsystem

Code:
[root@uslzua0001wsrv app]# ls -l
total 28
drwxrwxr-x 5 arsystem arusers  4096 Feb  1 17:42 ARSystem
drwx------ 2 arsystem arusers 16384 May 26  2010 lost+found
drwxr-xr-x 4 arsystem arusers  4096 Oct  1  2010 product
drwxrwxr-x 2 arsystem arusers  4096 Jul 27  2011 software

[root@uslzua0001wsrv ARSystem]# ls -l
total 12
-rw-r--r--  1 arsystem arusers    0 Feb  1 17:00 ar.conf
drwxrwxr-x 11 arsystem arusers 4096 Nov 15 06:33 AtriumCore7603
drwxrwxr-x  9 arsystem arusers 4096 Oct  2  2010 BMCRemedyITSMSuite
drwxrwxr-x 25 arsystem arusers 4096 Oct  1  2010 prdus1

[root@uslzua0001wsrv ARSystem]# ls -l
total 12
-rw-r--r--  1 arsystem arusers    0 Feb  1 17:00 ar.conf
drwxrwxr-x 11 arsystem arusers 4096 Nov 15 06:33 AtriumCore7603
drwxrwxr-x  9 arsystem arusers 4096 Oct  2  2010 BMCRemedyITSMSuite
drwxrwxr-x 25 arsystem arusers 4096 Oct  1  2010 prdus1

[root@uslzua0001wsrv ARSystem]# cd prdus1
[root@uslzua0001wsrv prdus1]# ls -l
total 256
drwxr-xr-x  8 arsystem arusers  4096 Oct  1  2010 api
drwxrwxr-x  8 arsystem arusers  4096 Oct  1  2010 approval
drwxrwxr-x  2 arsystem arusers  4096 Oct  1  2010 ardbcldap
drwxrwxr-x  2 arsystem arusers  4096 Oct  1  2010 arealdap
drwxrwxr-x  6 arsystem arusers  4096 Feb  3 01:09 AREmail
drwxrwxr-x  2 arsystem arusers  4096 Oct  1  2010 arsystem
-rw-rw-rw-  1 arsystem arusers 41758 Oct  4  2010 ARSystemInstalledConfiguration.xml
drwxrwxr-x  6 arsystem arusers  4096 Oct  1  2010 assignmentengine
drwxr-xr-x  2 arsystem arusers 12288 Jul 25  2011 bin
drwxrwxr-x  7 arsystem arusers  4096 Oct  1  2010 BMCARSystemInstallJVM
drwxrwxr-x  3 arsystem arusers  4096 Feb  1 17:04 conf

Also the user belongs to the arusers group
Code:
[root@uslzua0001wsrv prdus1]# groups arsystem
arsystem : arusers root

---------- Post updated at 07:37 ---------- Previous update was at 07:29 ----------

Quote:
Originally Posted by methyl
Are you usin WinSCP or ftp ? They are quite different.

Maybe try logging in normally on the remote server as the remote user and see if that user can create files in the problem directory. While you are there, please post a "ls -lad" of the directory file (if the user cannot access the directory file, then use the "root" account).
Thanks for your answer. I am using WinSCP.

test is the file created
Code:
[arsystem@uslzua0001wsrv conf]$ ls
aeufix63c.txt  ar.conf           ar.conf.backup  arufix63c.txt  test
apufix63c.txt  ar.conf.1.backup  ar.conf.bak     snmp
[arsystem@uslzua0001wsrv conf]$ ls -lad
drwxrwxr-x 3 arsystem arusers 4096 Feb  3 09:35 .

I know he can create the file because when FTP is completed the file (ar.conf) it is there but with 0 bytes of size.

Last edited by Scott; 02-03-2012 at 02:12 PM.. Reason: Please use code tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

trapping errors while using FTP.

Hello, I have the following shell script to perform ftp: ftp -n $HOST<<EOD quote USER $USER quote PASS $PASS lcd $outputd cd $dir binary put *.zip quit EOD If any error is generated from this script then how to trap the error. For ex: let's say we entered wrong password then the... (5 Replies)
Discussion started by: radhika
5 Replies

2. Shell Programming and Scripting

How to find out Errors in FTP Scripts

Hi Please let me know is there any way through which I can find out errors & do debugging in FTP scripts. Thanks Sourabh TCS (1 Reply)
Discussion started by: sourabhshakya
1 Replies

3. UNIX for Dummies Questions & Answers

ftp errors

I'm no Unix expert (so please excuse any misuse of Unix vocabulary or terminology) and I have an issue that is bugging me. I basically have a scheduled task which uploads and then downloads some files for me using ftp. Everything was (mostly) working fine until last week. Suddenly it refuses... (1 Reply)
Discussion started by: Approx.Purified
1 Replies

4. UNIX for Advanced & Expert Users

Using FTP to check whether file is completely FTP... plz find the description below

Hi, We have some clients who will place huge files in to one of the remote server. And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients. My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies

5. Shell Programming and Scripting

Perl: varible-sized arrays?

How do you store strings in a variable-sized array? Background: I wrote a program earlier today to work with a very large text file. I chose Perl because it lets me do some nice formatting on the text I grab, instead of just using a shell script to con'cat'enate egrep results. The program... (2 Replies)
Discussion started by: CRGreathouse
2 Replies

6. Shell Programming and Scripting

Variable Sized Array Length Question

I need to implement the following logic and need some expert help from UNIX community. These are the steps in my Shell script. 1. Analyze a file. 2. Extract all the ID's in that file. 3. Use the ID's from #2 to run another filter on the file. I've implemented # 1 and 2 using... (3 Replies)
Discussion started by: katwala
3 Replies

7. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

8. Shell Programming and Scripting

Shell scripting errors for ftp process

Hi i am facing problem in shell scripting for ftp process getting following errors here is the script & result vi GtpTxnlogs_ftp.sh "GtpTxnlogs_ftp.sh" 40 lines, 921 characters #!/usr/bin/bash ###################################################################################### #... (4 Replies)
Discussion started by: Sarmistha
4 Replies

9. Shell Programming and Scripting

Systemd errors of missing file “No such file or directory” inspite of file being present

The contents of my service file srvtemplate-data-i4-s1.conf is Description=test service for users After=network.target local-fs.target Type=forking RemainAfterExit=no PIDFile=/data/i4/srvt.pid LimitCORE=infinity EnvironmentFile=%I . . . WantedBy=multi-user.target (0 Replies)
Discussion started by: rupeshkp728
0 Replies

10. What is on Your Mind?

The C64 is back, this time full-sized with a working keyboard for the dedicated retro home-computer

Retro Games has announced that the C64 is back, this time full-sized with a working keyboard for the dedicated retro home-computer fan, available December 2019. See also: CNN: Iconic 80s computer The Commodore 64 to return with fully-functional keyboard YouTube: The C64 | Trailer ... (2 Replies)
Discussion started by: Neo
2 Replies
All times are GMT -4. The time now is 10:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy