List of filenames in folder of share drive to unix


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers List of filenames in folder of share drive to unix
# 1  
Old 08-25-2012
List of filenames in folder of share drive to unix

I am trying to get the names of files present in the particular folder to a text file and store that file to a unix location.

For that I am using the ftp command .

now all the code till the accessing te share drive is working (cd share drive location), but after that I am using a command-
Code:
cd 'directory share drive
put 'ls > /data209/abc/abc.txt(unix location)'

but this is not working and I am not able to get the names in a text file at unix location.

Please help

Last edited by radoulov; 08-25-2012 at 12:44 PM.. Reason: Code tags.
# 2  
Old 08-27-2012
Please remember to post the Operating System and version of all computers involved and to post what Shell you are running.
It is really difficult to work out what you are trying to do from faulty code.

If this is a Shared Drive, why do you need ftp?
Code:
# Example command based on sketchy information
ls '/directory share drive' > /data209/abc/abc.txt

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to copy files with the same filenames as those in another folder to that same folder?

Hello All A similar question like this was asked before but I need to change part of the question. I've two folders, Folder A contains some image files in 150 subfolders; Folder B contains text files in 350 subfolders. All image files in Folder A have the same filename as the text... (5 Replies)
Discussion started by: chlade
5 Replies

2. Solaris

Share Tape drive between Solaris servers

Hi, I have two solaris servers running Oracle Applications. One is SPARC 5.9 and other one is SPARC 5.10 I want to share the tape drive attached to 5.10 with other machine so that i can enhance my backup strategy for backing up Oracle DB. I tried to share my tape drive by performing the... (2 Replies)
Discussion started by: Srinathkiru
2 Replies

3. Solaris

NFS- share drive question

Ok. Here is the situation, I have server A which need to access /tmp folder of server B. Can I mount NFS share (/tmp) from client (serverA)?please let me know (3 Replies)
Discussion started by: sam101
3 Replies

4. Shell Programming and Scripting

copy all files with the same filenames as those in another folder

Hi, all: I've got two folders, folder A contains some image files (say, 100 files) in .jpg format; folder B contains all description files (say, 500 files) in .txt format. All image files in folder A are able to find their corresponding description files in folder B. That is to say,... (3 Replies)
Discussion started by: jiapei100
3 Replies

5. Shell Programming and Scripting

Count matching filenames in a folder

Hi all, I have 4 files for example named abc01012009.txt abc02012009.txt abc03012009.txt abc04012009.txt in a folder. I would like to firstly backup the latest file available, in this case, the latest date available, abc04012009.txt to its subfolder named backup, and then rename the... (4 Replies)
Discussion started by: tententen
4 Replies

6. AIX

Mount drive to Win2003 share folder

Dear all, How can mount a drive from AIX 4.3 to Windows 2003 Server share folder ? Thank a lot. (1 Reply)
Discussion started by: sinopec
1 Replies

7. UNIX for Advanced & Expert Users

How to Mount a Unix share drive on Windows

We are trying to mount a Unix share drive on a Windows 2003 server to avoid transfering files accross the network using sftp. I can see shared drives on the Solaris server using the "share" command. How can I mount the drives on my Windows server so that I can read them directly. Do I need... (2 Replies)
Discussion started by: rbdenham
2 Replies

8. UNIX for Dummies Questions & Answers

removing the extension from all filenames in a folder

Hi there, I'm pretty new to UNIX and have tried trawling through this forum to find an answer to what I want to try to do, which I'm sure is very simple but I don't know how to do it. What I have a a folder that contains multiple files that I have copied from Windows and I want to remove the... (5 Replies)
Discussion started by: johnmcclintock
5 Replies

9. HP-UX

How to Share out a folder in Hp UX 10.20 OS

Hi all, I'm new to UNIX and recently i just being assign to work with a HP UX 10.20 Operation Systems. So i wonder if i can share out some folder in the system as this UNIX is link to another Windows base PC. My purpose is to do some auto file maintenance where i can copy/delete files in UNIX... (1 Reply)
Discussion started by: sim2004
1 Replies

10. Linux

how i can share from fc5 folder

hai friends i am using fc5 i configured samba and i can access windows files and folders in my network of linux. but in windows(xp.2000) i can not access my fc5 folder. pls x-xplain me anybody what i need to do in gui of fc5 for to enable to share my files and folders to windows(my samba... (0 Replies)
Discussion started by: sadiquep
0 Replies
Login or Register to Ask a Question