brainstorming automated response


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers brainstorming automated response
# 1  
Old 06-17-2008
brainstorming automated response

I am managing a database of files for which there is a drop-box and multiple users. what i would like to do is set a criteria for files coming into the drop-box based on file structure. (they must be like this W*/image/W*-1234/0-999.tif) If the files do not match the criteria i want them to be rejected and an automated message to be sent defining the criteria and the reason for the file rejection from the drop-box. If the files do match the specified criteria then i want a message to be sent warning the user that if they continue the files will be added to the database, and an ok or cancel option to either coninue or cancel the addition to the drop-box.

I am not sure where to start, or even how to go about this. I am not looking for someone to do it for me but Please respond with suggestions if you have any.

Thankyou
# 2  
Old 06-18-2008
earlier i have done something vaguely similar - using Perl

what i have done:
keep checking a particular directory for presence of files (this was a cron job running, say every few hour)
if files are found, check if they satisfy the criteria - based on filename
if the file satisfies the criteria, do something with it, then move it to archive directory, and send an e-mail to the concerned people
if the file fails to satify the criteria, move it to failed directory and send an e-mail to the concerned people

If you are planning to use Perl, module MIME::Lite is good for sending detailed e-mails (supports attachments). If you are looking for basic e-mail functionality, try module Mail::Send

if you don't want to run your program as a cron job, then another option is to make a daemon
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Red Hat

Response Times

Hello all. Let me qualify my question by saying that I am struggling with how to ask the question I am semi green but have no issue reading up if pointed in the right direction. Please be gentle! A RHEL server 6.2. Hosts a statistical application that has some web apps and batch programming... (0 Replies)
Discussion started by: rsheikh01
0 Replies

2. What is on Your Mind?

Speculative Shell Feature Brainstorming

Hi - little introductory post for this thread: The discussion started in the "What's your most useful shell?" poll thread and I think the discussion's gone on long enough that I don't want new posts related to that discussion to go there any more. It's a big discussion and it only gets bigger. ... (26 Replies)
Discussion started by: tetsujin
26 Replies

3. AIX

Ping response

:confused:Hi, In linux if ping to a system from a linux server it shows ping time=0.120ms how we can achive this in aix. i need this for a latency check. Thanks in advance. (5 Replies)
Discussion started by: vjm
5 Replies

4. IP Networking

Traceroute response

I have 20 servers I installed an application to that is returning message " wrong dispatcher or port " when starting agents. They all have the same dispatcher ip and going through the same port number. After verifying there are no application issues, we figured it was firewall related. The Firewall... (1 Reply)
Discussion started by: HFJ
1 Replies

5. UNIX for Dummies Questions & Answers

response of a for loop?!

Dear guys, I don't know the response of a for loop in this situation: suppose that file1 is an empty file. and i make a for loop as : for i in `cat file1` What will be the response of the for loop: 1- will an error message apear 2- or the for loop simply will not run,and it will escape... (2 Replies)
Discussion started by: marwan
2 Replies

6. SCO

Slow cd response

Hi All We have one SCO Server here and it never gives us any trouble. Until Now!! Well its not earth shattering but we have one user who is complaining of a very slow response time when changing to his Home Directory. Other users who have similar profiles are OK. I have su'd to this user and I can... (0 Replies)
Discussion started by: JohnOB
0 Replies
Login or Register to Ask a Question