I am wanting to check the date of all files in a directory and if they are not today's date, send an alert ( email, log, etc. )
If I run:
find . -type f -mtime +1
in my directory where the files are, I get files that are 1 day old. This will work, but I was just wondering if there was a...
I am trying to look at files in a directory and compare that list of files with a list I have in file.
So compare ls -1 output with a file called allfiles.lst and tell me if any are missing from the ls -1 listing. I just run ls -1 > current then compare current with allfiles.lst.
I've tried...
I thought AIX did some time creep/slew so that at 2am, it was just 2am and it didn't slam it back to 1am, then hit 2am again.
Does anyone have a link to a doc explaining this?
I have downloaded and compiled tripwire on my dev machine. Now i want to push this out to other systems as-is. I don't want to have to install gcc and compile a dozen other systems. We like to keep those systems 'clean' if you know what I mean.
I compiled and tar'd up the dir, then ftp'd it...
Looking for a way to track file level movement/changes, etc. I've heard about accounting on unix systems, but that it's a hog.
How does this work on AIX? What about any open-source alternatives?
Trying to do a simple ls in a directory and I'm getting:
ls: 0653-340 There is not enough memory available now.
Is there a way to format a find command to say show me files that are 6-months or 12-months old? That might allow me to get some of what's in there.
We send login information from some systems to an MySQL server. I am requested to do an audit for specific id's. How can I select where name = mscroot ?
I'm using Mysqlcc. So I click on the table, then click SQL and get
SELECT *
FROM `login_sessions`
The column name I want to match mscroot...
This is on AIX, so I don't have GNU grep. I need to search for differing application versions. Application name is on one line, version is on the next. Something like:
aa This is an application to do stuff
aix Version: 11.22.33.44
There is some unique data on the application...
I have a script I want to run on a many servers. It essentially is cleaning up some old files from an old application.
It's designed to run locally on the server itself. It has a few functions within...kill necessary processes associated with cleanup, check if filesystem exists, if so, remove...
Not sure if this is the right forum, but here goes...I have a unix script that polls some servers for failed backups, then writes that data to a file as well as email the file out.
Is there a way for me to send this file or email to a webserver for publishing?
I guess the simplest would be to...
I have two files. One file has all the servers with my software installed. The other file is a list of all servers that may or may not have one of my servers in the list.
I had considered a diff, but it would simply show me all the differences. What I would like is something like:
Do any of...
I have two columns of data. First is servername, second is issue found.
It so happens that the way I retrieved this data ( unix korn shell script ) will create a servername & issue for each issue found:
serv01 resolv.conf issue
serv01 no /tmp/echo file found
serv01 cannot ping...
Is there a grep equivalent to the following perl search/replace?
perl -pi -e 's{LTAPEDEV\s+/dev/infmx/log_tape_dev}{LTAPE /dummy}g' onconfig
Not necessarily the search/replace, but searching for something like:
LTAPEDEV /dev/infmx/log_tap_dev
LTAPEDEV /dev/infmx/log_tap_dev
So a...
I run a script that does some checks on many, many servers.
If an error condition exists, I write out to a file ERR: with the issue that was found. I'm wanting to be able to create some format from this that will go into a spreadsheet. Really just looking for ideas on what would be a good way...
This works fine...it searches onconfig and looks for
LTAPEDEV /dev/infmx/log_tape_dev
And replaces with
LTAPEDEV /dummy
perl -pi -e 's/LTAPEDEV \/dev\/infmx\/log_tape_dev/LTAPE \/dummy/g' onconfig
What can I do so that if there is extra spaces ( white space ) between LTAPEDEV and /dummy and...
What is the best way to import a CSV file into MySQL? Are there tools available to assist in this?
Once in there, is there anything similar to msaccess to run queries, generate reports, etc?
We were looking at bringing this into MSAccess, but I started thinking if we put it in MySQL, it would...
We have a script that retrieves server information, places it into a CSV file, then we bring it into Excel.
Since we have various model servers, I want to count how many of this type or that type, then translate a machine model to a common model name. So a 887766 might be a D15 model server...
I have a text file I've created with server info. I have a little over a hundred servers in this list. For each server, I put the data between asterisks *** so I have a file with the information shown below. What I want do now is put each block between the *** into it's own file called...
I have to telnet to a lot of hosts and was able to use the below script for automating a single telnet. How can I combine this with a loop of sorts to read through a list of hostnames and open a telnet to each host?
The "catch" is that I have to telnet to two boxes before I can telnet out to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.