We have a little program that runs an nmap against a few of our servers which is called testnmap.
We want to receive an alert if the service stops running.
Running the following gives the result …
I need a specific function just to calculate swap size as per ram like:
if ram < 2048 then swap should be 1.5 times
if ram > 2048 and ram < 16536 then swap size should be equal to ram
if ram > …
I need to parse http log file to return each line where specific field is identical
The field to catch is that one just after the GET and which end by jpg (The requested resource)
I am getting a value from my file name -- var1=`echo $f | cut -d "_" -f4` and passing this to my awk command
The file it uses is made of a number and a value
( ie.. 34567,1234
Is there a way to run a script in UNIX that opens 4 extra terminal windows and executes a specific script in each window?
Can you help me in creating one shell script with command ctmlog LIST yyyymmdd hhmm yyyymmdd hhmm
I want to execute this interval of 10 min.
command format is given above ( ( …
All my existing servers that are monitored in Nagios are Linux. I now need to add a windows server to the below script.
My server is called backup.future.com and the entry in the …
I have a script that we are converting to Autosys from a home grown scheduling tool.
The command that runs in the scheduling tool is:
If I run that in Autosys I get error:
sh: line 2:…
I have to rename some files as following
varnishSEO1-ddmmyyyy.log to varnishSEO2.log-yyyymmdd
Is there a rapid way to do this?
Thanks for your help
actually for all my script, on the code i import a csv file like that:
i need now to execute directly the script from powershell console and give the csv file name like this:
I need te nename some files from file.log-ddmmyyyy to file.log-yyyymmdd.
Is there a rapid way to do this (sed,awk ...?)
I need to split a big log file to some smallers logs files according to date in original log file.
I want to create one logfile by date an tar and zip it
each line from original …
I need to compare file name with the content of variable and do action if filename is different.
IS there a way to do this with if statement un bash shell ?
Thank you for your help
i'm running exchange 2013 / 365 hybrid
i need to be able to see what emails are being sent after working hours
so basically i need to choose a specific week and run a report to see who is sending …
I have a script that I am using to delete old files off of the system by modified date. Is there a wild card that can be used in the folder path?
If I run this on a specific …
i have shell script it run ok , now i want add one command it run every 1hour , how can i do it ?
my Code :
now i want JUST This command run between script every 1Hour :
I was looking for a powershell that would download all of my report objects.
I have something that will get the RDL files in a folder structure which is great.
I need something to get it all …
Using Linux, I would like to put the results of this:
in place of 'hello':
I have run an Excel macro with this code every day for years. Today I put it into a .vbs file, and it hangs. Any ideas what I am doing wrong?
I have a Proxy PAC file that occasionally has the final proxy in the file changed.
I am creating a simple batch script that needs to extract the current value from this file.
The current code …
I need a FTP unix script which can take a pipe delimited file and use the details to login to all the different logins and if there is any error then that is caught in a text fie and …
I have 2 files that I need to compare and merge. File1 has 3 fields: device_name, status, days_in_cur_status. File1 is the "master status" file.
File2 has 2 fields: device_name, status. File2 is …
I had this question after viewing modifying VBScript to VBA (https://www.experts-exchange.com/questions/29007038/modifying-VBScript-to-VBA.html).
i have this great master piece created by Bill and …
Iam new to shell scripting , Need an help . I have writen an shell script which will check for the file whether it was modified after it was created. If it is modified , then I need to …
Basically my issue is Autosys jobs keep tripping over each other. We can't have some jobs execute at same time. Currently there are 8 .bat scripts that execute via Autosys jobs. Let's call …