Hi all,
I'm trying to make a script that will help me a lof on some configuration,
what this should do is to check the files if they exist ,if not the script will send me a mail to notify me that the files does not exist,
but when i call the script to test it,like this
it says to many arguments ,
and it checks only for the first date format,and skips the other,
how can this be done to check al the date formats and to send me a single mail not 5 mail?
any suggestions are very welcome
thanks in advance.
Thanks you very much,
very useful this method and super fast,
i was calling my first script with the date pattern at the and of the file like this
but will definitively use your suggestion,
thanks again.
Neither * nor -e nor or work that way. You can't cram more than one file into -e, it won't work. By 'or' you probably meant '||'.
I'd try a loop instead of a huge or-statement, and put the files found into the $1 $2 ... list, then check if the first exists.
As a useful side-effect, the files being looked for will end up individually in $1, $2, ...
Hi Corona688,
i tried to make some test with your suggestion,and it works when the file exists,
but the problem is when it doesn't exist,
because if the file doesn't exist the script is sending the mail to me with the latest file date format available, it is not sending the correct file date of the file,any ideas on how can i come around this?
Hello Everyone,
First of all, I highly appreciate all Linux forum members and whole Linux community. http://forums.linuxmint.com/images/smilies/icon_wink.gif. I wish you the best for all of you !
I will try to be short and concise: I am using Linux Mint 10 for 2 months on 2 ws, and all went... (3 Replies)
Hello,
I have a problem with package and name space.
require "/Mehran/DSGateEngineLib/general.pl";
use strict;
sub System_Status_Main_Service_Status_Intrusion_Prevention
{
my %idpstatus;
my @result;
&General_ReadHash("/var/dsg/idp/settings",\%idpstatus);
#print... (4 Replies)
Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?
Thanks
Muru (2 Replies)
Hi All,
I have a situation here that's very fun...
I have a system with AIX and iPlanet (sunOne) installed, when occurs an unknown event on the network the WebServer shows a thousand of CLOSE_WAIT connections and this number grows and grows until the webserver crashs.
I read some documents... (2 Replies)
I am just beginning to learn unix and I was wondering if there was a list of all the options somewhere on the net or hidden in the man pages?
Also do options always have - and then a letter, or can it be - and a number as well? Thanks! (1 Reply)