Avatar of sunhux
sunhux
 asked on

Shell / Perl script to constantly comb a folder for new files & make copies of the new files

https://www.experts-exchange.com/questions/28922803/Windows-batch-powershell-VB-scripts-to-constantly-comb-a-folder-for-new-files-make-copies-of-the-new-files.html

Refer to above EE link.  I have a similar requirement for RHEL 5/6 & Solaris as well, so
will need Shell / Perl scripts or any other solutions
Shell ScriptingPerlScripting LanguagesLinux

Avatar of undefined
Last Comment
noci

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
arnold

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
sunhux

ASKER
The encryption software is from an AV product called qdecrypt which
encrypts infected files to make them harmless.

Yes, I'm looking at Qlemo scripts but just posted an update: if only
Qlemo's script track for the last date/time the script last stop/went
down, that will be perfect
arnold

You could add logging events that would write out to a file or a DB that the script ran, and finished......

In the above script echo $(date "%b-%d-%Y %H:%M:%s") started/stopped >> record_file

.....
sunhux

ASKER
Or is there something you could add to the script that
will detect an "exit" or the script being killed like
(in the days I was doing VMS DCL scripting):

on error perform ...
on fatal_error perform ...
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
SOLUTION
arnold

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
noci

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.