The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how do I view a jpeg? dsstamps UNIX for Dummies Questions & Answers 0 05-14-2008 10:25 AM
Jpeg viewer on SunOS 5.8 wisher115 UNIX for Advanced & Expert Users 4 02-15-2008 07:42 PM
remove files other than selected freakygs Shell Programming and Scripting 22 11-28-2007 05:54 AM
flags to suppress column output, # of rows selected in db2 sql in UNIX jerardfjay Shell Programming and Scripting 1 11-02-2005 03:48 AM
Convert Jpeg to useable Unix Pics HSTheDuck UNIX for Dummies Questions & Answers 1 06-15-2005 01:31 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 12-12-2007
Registered User
 

Join Date: Jul 2005
Posts: 32
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.
Reply With Quote
Forum Sponsor
  #2  
Old 12-12-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by mhbd View Post
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?
Reply With Quote
  #3  
Old 12-13-2007
Registered User
 

Join Date: Jul 2005
Posts: 32
Quote:
Originally Posted by porter View Post
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.
Reply With Quote
  #4  
Old 12-13-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
No, use shell for manipulation, use SQL for database access and use FTP for transferring files.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0