ftp selected jpeg files from unix filesystem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ftp selected jpeg files from unix filesystem
# 1  
Old 12-13-2007
ftp selected jpeg files from unix filesystem

Hi All

We have hp-ux 11iv1 system running with oracle8i database.

We have around 350,000 users, each user uploaded their own signatures and are stored in unix filesystems department wise.

A database is maintained to keep their particulars with a path to link their signature files.

Now many users quit or replaced thus their account became inactive. New users added with new signatures. But old signatures are remaining in filesystems which are eating up lot of our precious disk spaces.

I am trying to write a ftp program which will first check database for the users status, if found inactive then ftp the corresponding signature files in the specified location.

Note that signature file names and user account number are identical.

I only managed to identify the signatures of the inactive users using a shell script but dont have any experience how to identify the inactive users and ftp their signatures from different folders in one go.

Thanks in advance for any help.
# 2  
Old 12-13-2007
Quote:
Originally Posted by mhbd
but dont have any experience how to identify the inactive users and ftp their signatures from different folders in one go.
Neither do I, so split the problem up into

(a) identifying the inactive users

(b) identifiying their signature files

(c) ftp'ing the files

(d) presumably deleting the originals?
# 3  
Old 12-13-2007
Quote:
Originally Posted by porter
Neither do I, so split the problem up into

(a) identifying the inactive users
How to identify the inactive users using ftp cmd? Is there any way i can write SQL cmd in ftp cmd? I know shell script can do that.
# 4  
Old 12-13-2007
No, use shell for manipulation, use SQL for database access and use FTP for transferring files.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

unix commands related to ftp of files..

Hi, I am new to unix , I was planning to write a script that will FTP files to destination folder. , Please guide me what are the various networking commands that unix will help in this ftp process..?:confused: (1 Reply)
Discussion started by: rahul125
1 Replies

2. Shell Programming and Scripting

cp RAW files if JPEG file present

hi guys and girls, i have a folder containing RAW and JPG images. eg... 001.jpg 003.jpg 005.jpg 001.raw 002.raw 003.raw 004.raw 005.raw I want to copy only RAW files that have a corresponding JPG file in to a new folder. the jpg files do not need to be copied. in this example i... (6 Replies)
Discussion started by: fxylxy
6 Replies

3. Shell Programming and Scripting

renaming jpeg files

Hi guys im currently trying to write a script which includes rename files and this is the part where i fail i have a list of files eg and i want to rename them so any help really would be appreciated Cheers dunryc (7 Replies)
Discussion started by: dunryc
7 Replies

4. Shell Programming and Scripting

trying to print selected fields of selected lines by AWK

I am trying to print 1st, 2nd, 13th and 14th fields of a file of line numbers from 29 to 10029. I dont know how to put this in one code. Currently I am removing the selected lines by awk 'NR==29,NR==10029' File1 > File2 and then doing awk '{print $1, $2, $13, $14}' File2 > File3 Can... (3 Replies)
Discussion started by: ananyob
3 Replies

5. Shell Programming and Scripting

Upload files from desktop to unix through FTP

Hi , I want to upload some files from my desktop to unix server through FTP . The list of files are in a text file .Please suggest how to do it through scrip . Thanks in advance .. Anupam (8 Replies)
Discussion started by: anupamhalder
8 Replies

6. Shell Programming and Scripting

copying files from UNIX to windows using FTP

Hi, I want to transfer the approx 10k files available on UNIX Server to Windows Server using FTP Command. is it possible? how ? Thanks in advance. Sachin. (1 Reply)
Discussion started by: ssachins
1 Replies

7. UNIX for Dummies Questions & Answers

Convert Jpeg to useable Unix Pics

I'm running a Sunblade 1500 with 2 XVR-100 video cards. I have Xinerama runing as well. Desktop is CDE. Can someone help me in converting Jpeg pictures so that I can use them as backdrops? Is there a way to make the picture come on both monitors instead of streaching it across both? Thanks. (1 Reply)
Discussion started by: HSTheDuck
1 Replies

8. Shell Programming and Scripting

transfer of files via ftp from windows to unix

I am currently looking to write a script to transfer files from a windows NT server to a unix server any ideas of how to go about this? (1 Reply)
Discussion started by: chambala5
1 Replies

9. UNIX for Dummies Questions & Answers

Batch files and FTP under Unix

Hey all, Does anyone know if Unix has an equivalent to a batch file? And if so, does it work the same way as a batch file under windows? AND, if you can answer that one, is it possible to run such a file under HP-UX and have it execute while in an FTP command line? What I need to do is... (4 Replies)
Discussion started by: ober5861
4 Replies
Login or Register to Ask a Question