Search Results

Search: Posts Made By: srilinux09
1,808
Posted By srilinux09
updated url
URL2="https://url"
sent=`cat url.txt | grep sent | awk -F"=" {'print $2'}`
appresult=$(wget --no-check-certificate -S $URL 2>&1>/dev/null | grep -c "HTTP/1.1 401")
if [ "$appresult" -gt "0" ];...
1,808
Posted By srilinux09
Url check creating child process and generating false alerts
Hi All

Below code is working as expected but creating too many child processes when the url is not up and every minute that process is sending false email alerts

any help with the logic not to...
1,266
Posted By srilinux09
Solved
HI All

Thanks for looking at this .

I have solved this by using the following format

#!/bin/sh

dbname="test"
username="test"
psql $dbname $username << EOF
SELECT * FROM test;
EOF
1,266
Posted By srilinux09
Shell script with sql script error
Hi All

when I execute from psql prompt, I get the result, when I try to automate
using a shell script, the query is not working

# `/usr/bin/psql -U postgres -d coba1 -c "select name from...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 03:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy