Hi Guys
I am new to scripting.Please forgive for asking basic questions.
I want to write a script to check whether the logs are getting updated in last 15 mins.
cat server
192.168.1.6
192.168.1.7
cat list
192.168.1.7 /logs/logpath1
192.168.1.7 /logs/logpath2
192.168.1.6 /logs/logpath3
192.168.1.6 /logs/logpath4
Sample log.0 file ##Present on above mentioned server and path
Hi,
I'm having problems with a script which some of you helped me with last week. It's a script to check the status of orders in an SQL database, and if the count(*) is zero, then the script stops.
Hi everyone,
I am trying to figure out a way to ssh to remote server and check if file exists, and if it doesn't I want to leave the script with an exit status of 5.
I have the following that I am attempting to use, but it is not returning anything:
Code:
check()
{
ssh ${SOURCE_SERV} "ls -l ${SOURCE_FOLDER/${FILE}"
if [ $0 -ne 0 ] ; then
&nbs
All,
I have to write a script to do the following requirement.
There is a file called BUSINESS_DATE.TXT.
This file get updated once the oracle partition created. In Oracle, Partition will be created every day. There is a seperate script scheduled to take care ORACLE partition creation.
The above file will have only one row.
So, I have been working on an upload script (code is below) that I have working on my windows machine, but on my Linux server it seems to fail with
Error: ENOENT, open 'uploads/da5ab67b48ea2deecd25127186017083'
I understand that the error is saying there is no path/file, but I do check to for file existence before I attempt the file rename.
Hi,
I want to create a script that will check the connectivity to a IP address & port using nc command & if there is a connectivity issue, it will send a SMS alert.
I have written a basic script which has IP address & port hard coded in it & it is working fine.
I want to read IP address & port from a text file so that every half an hour the script checks connectivity to m
Hi All,
Need urgent help with korn shell script, which monitors AIX WPARs Status. Basically WPARs run on a LPAR, So there is a Command "lswpar" which displays WPARs status. This script should be checking the WPARs Status and email support if WPAR is down or broken.
I have a "command" text file that issues a data file download command on each
line. I send the command file to bash. However, a small percentage of the downloads fail.
Hi guys today i have new situation to resolve.
I need to create a script that the first part it's already done but the problem appear when i run
other sart_script inside of it.
i need to check a log file until it stop after run the star script
when the log file stop write, then make a copy file
check again until log file stop write
So i copy again other files.
How can i make this works!