Visit Our UNIX and Linux User Community


triggering utility


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers triggering utility
# 1  
Old 08-02-2002
triggering utility

gang,

I have a need for a utility that will 'watch' a directory and when a file pops into it, it will run a script on the file. More specifically, it will pgp decrypt the file that pops into the directory.

Our Security guys aren't comfortable with the 'normal' users on our system being able to run PGP decryption on the file (due to them also being able to export our private key if they had this ability) and what Security offered up was a cron job that will look in this directory every 5 minutes for files to decrypt-I just think there is a better way.

Any suggestions???
# 2  
Old 08-04-2002
I should think your security guys are probably right.

To have something constantly parsing a directory you have two options either a cron job....or a continually running script.

I guess either will work...the benefit in the constantly running script is that it will always change the file immediately. The cron tab will onyl do it at whatever interval you specify. However having a script running constantly can mean it gets missed on re-booting or if it fails for some reason you may not know for a while (although having said that you could put in a mail on error type loop).

You may find issues with specifying what files yuo want to decrypt...particularly knowing which one have already been decrypted and watching that other people havent' accessed a file before you change it.

I would suggest that you had one directory where the files 'pop' into...then your script decodes and moves then to a different directory where the users can access them. this will minimise your risk. Also go with cron on a shorter interval (i.e. every minute). It's tidier.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #799
Difficulty: Medium
In digital numeral systems, the radix is the number of unique digits minus 1.
True or False?

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Triggering a script using POSTFIX....

I have a mail server configured on my server (Postfix), I have a script which requires input to be provided to it. I would like to know if there is a possibility to trigger this script by sending mail to the server. This is what I am thinking: Once the mail arrives on server, the mail will... (6 Replies)
Discussion started by: davidbob
6 Replies

2. Shell Programming and Scripting

Cron job not triggering.

Hi, I have scheduled a job using cron but the job is not getting triggred because of the following error. line 5: /env/env_setup.sh: No such file or directory But the file env_setup.sh is there in that location. /scripts/env -rwxrwxrwx 1 mysql mysql 974 Oct 24 10:41 env_setup.sh... (5 Replies)
Discussion started by: arijitsaha
5 Replies

3. Solaris

Scheduling job not triggering

I am scheduling job using Datastage tool, which tool is installed on solaris server. I can able to schedule jobs/sequences, its not trigering at specified scheduling trigerring time. but at specified job not starting automatically. Till that specified schedule time, i can able to see that the job... (6 Replies)
Discussion started by: sridhardwh
6 Replies

4. UNIX for Dummies Questions & Answers

Cron is running,but my job is not triggering.

Hi, I have scheduled a job previously and was running fine,but due to some issue i have commented it.Now the issue was solved and i have scheduled as below in crontab. 30 2 * * * /u01/srcdata/CSA/holding/common/script/QPLR_RegValrao.sh PROD Cron is running,but my job is not triggering. ... (1 Reply)
Discussion started by: mvennakula
1 Replies

5. UNIX for Dummies Questions & Answers

Unix coding for triggering informatica

Hi, I have very little knowledge with unix and pmcmd. I need help with a issue. I have to see whether a file has been dropped in a particular location/path. If the file dropped I have to check the last modified time, which should be greater than 8pmEST the prior day. If the file has been... (4 Replies)
Discussion started by: redwolves
4 Replies

6. Shell Programming and Scripting

Best practice triggering a process?

Hi, Since I staterd working as Unix sysadmin (about 3 years ago) I always used to trigger a process evaluating the conditions needed to this process to be executed. Recently I've change the company where I work, and they usually create a trigger file to start a process or to stop a process while... (1 Reply)
Discussion started by: nefeli
1 Replies

7. Shell Programming and Scripting

How to Unzip a file using unzip utility for files zipped without zip utility ?

Hi, I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server. How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

8. Shell Programming and Scripting

Triggering my Unix script....

Hi All, i dont have any idea about perl scripting... i need some suggestion so that i can put my effort to find out the solution:D let me explain....one of my tedious task which will taken care by Unix shell script which i prepared. its a kind of routine work that i am running the... (4 Replies)
Discussion started by: Shahul
4 Replies

Featured Tech Videos