Search Results

Search: Posts Made By: d3xt3r
11,467
Posted By d3xt3r
hi zaxxon, finally i made it this script will...
hi zaxxon, finally i made it this script will send email once and does not resend it once it is done sending an email. I just want to share it with everybody.

#!/bin/bash
email_stat=stat.txt...
1,614
Posted By d3xt3r
Capture IP and command type in linux script
hi guys, is there any way to capture the ip address of users who log-in to linux then capture the command executed together with the time and date?

example output

192.1.1.1 : ls -ltr Aug 6...
6,663
Posted By d3xt3r
hi mcknz, here is a simple script. this will...
hi mcknz, here is a simple script. this will check if oracle database is running.

db_stat=`ps -ef|grep ${ORACLE_SID}|grep pmon|wc -l`
if [[ $db_stat = 1 ]] ;
then
echo "running"
else
echo...
19,685
Posted By d3xt3r
great it works! thanks itkamaraj...
great it works! thanks itkamaraj (https://www.unix.com/members/302077176.html).
I add the following line and specify only the specific script.

dbuser ALL=(appuser) NOPASSWD:...
19,685
Posted By d3xt3r
running a script using su - without prompting password
hi guys, is there any way to run a script using su - without prompting a password?
ex: su - $APPSUSERNAME/$APPSUSERPASSWORD stop_apps.sh

my purpose here is to run a script with current dbuser....
7,094
Posted By d3xt3r
hi can you try this one, this works fine on me. ...
hi can you try this one, this works fine on me.

nohup ./test.sh > /dev/null 2>&1 &
11,467
Posted By d3xt3r
hi zaxxon, thanks so much for the help it...
hi zaxxon, thanks so much for the help it works!:-)
11,467
Posted By d3xt3r
hi zaxxon, If I will add a sleep its give's...
hi zaxxon,
If I will add a sleep its give's the same result. If I let it sleep for 1hour then every 1hour I will be receiving an email. :-( I have this following pseudo code in mind is this...
11,467
Posted By d3xt3r
Help with shell script to send email once
Hi Guys,
I have this script which will monitor oracle db process if up or down.And I want it to send email if it's down and the time it's back to online. However my script just keep on sending...
Showing results 1 to 9 of 9

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