swissknife has asked for the wisdom of the Perl Monks concerning the following question:
Dear Experts,
I am writing a script to monitor the change in checksum of a file. idea is to get the checksum id and store it somewhere and then in next run compare it with previously stored value and if difference alert it to Admin.
A simple solution is using file handling but what if someone change the content of this file once the new checksum is created.
So i was wondering is there a way to store this value directly in memory or somewhere more secure and then read it for comparison.
Thank You.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: keeping something in memory after the end of script
by Corion (Patriarch) on Apr 15, 2016 at 10:41 UTC | |
|
Re: keeping something in memory after the end of script
by BrowserUk (Patriarch) on Apr 15, 2016 at 11:30 UTC | |
|
Re: keeping something in memory after the end of script
by clueless newbie (Curate) on Apr 15, 2016 at 10:58 UTC | |
|
Re: keeping something in memory after the end of script
by NetWallah (Canon) on Apr 15, 2016 at 17:46 UTC | |
by fullermd (Vicar) on Apr 15, 2016 at 18:38 UTC | |
by NetWallah (Canon) on Apr 16, 2016 at 00:32 UTC |