Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: venky.b5
5,917
Posted By venky.b5
HI, sed...
HI,

sed 's/pattern_to_be_replaced/New_pattern/g' file_name

Regard's
Venkat


Please use CODE tags as required by forum rules!
Forum: UNIX and Linux Applications 11-08-2016
2,965
Posted By venky.b5
Hi Corleone, Thanks for the Reply, I tried...
Hi Corleone,

Thanks for the Reply, I tried and it was working as per our requirements on Ubuntu.

---
- hosts: linux
tasks:
- name: "Install Softwares...
Forum: UNIX and Linux Applications 10-24-2016
2,965
Posted By venky.b5
Ansible Automation
Hi Gurus,

I am new to ansible automation, kindly suggest me whether i am going in right path.

I Want to automate deployment of apache,mysql-server on multiple Linux hosts.

ansible version i...
2,773
Posted By venky.b5
Hi masubram, 1. uname command will give the...
Hi masubram,

1. uname command will give the OS name.it is to check connectivity, variable HNAME is not empty means its connected to remote server.

2.its not mandatory, you can specify any path....
2,773
Posted By venky.b5
Hi, You can try Like HNAME=$(ssh -o...
Hi,

You can try Like

HNAME=$(ssh -o StrictHostKeyChecking=no username@Server_address "/bin/uname")
if [ -n "${HNAME}" ];then
echo "connection established successfully" > path/to/log/file...
3,857
Posted By venky.b5
Hi Gurus, Thanks for the support, sorry for...
Hi Gurus,

Thanks for the support, sorry for the late reply.

My issue got resolved as User venkat is not a member of database group to use lib's for oracle, and while am executing manually am...
3,857
Posted By venky.b5
Hi Rudic, here is the output in remote exec ...
Hi Rudic,

here is the output in remote exec

/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/venkat/bin

when manually


echo $PATH...
3,857
Posted By venky.b5
Hi Rudic, Sorry its a typo ssh -q...
Hi Rudic,

Sorry its a typo

ssh -q venkat@IP_ADDRESS "which sqlplus"

Regard's
Venky
3,857
Posted By venky.b5
Sqlplus not working through ssh
Hi Gurus,

I was trying to execute sqlplus command remotely like

ssh -q IP venkat@"which sqlplus"

am getting error as which: no sqlplus in (/usr/local/bin:/bin:/usr/bin)

if i connect...
2,011
Posted By venky.b5
Hi, Thanks Rudic,Ravinder Singh,rabattel,Don...
Hi,

Thanks Rudic,Ravinder Singh,rabattel,Don Cragun for enlightening me.

as i got the requirement to suppress -rf option for rm command to database user
i don't have sudo or root access so i...
2,011
Posted By venky.b5
Hi RudiC, AM trying to supress -rf argument...
Hi RudiC,

AM trying to supress -rf argument for rm command.

Regard's
Venkat
2,011
Posted By venky.b5
Function to silence rm -rf option for my user
Hi Gurus,

I am trying to silence or supress rm -rf option for a particular user(venkat).
for that am going to write a function in a script test_fun_ls.sh like below


#!/bin/bash
RM_FUNCTION...
744
Posted By venky.b5
Hi, Thanks for the response RudiC, yes,...
Hi,

Thanks for the response RudiC,

yes, may someone have better idea around
when am checking length of an array it displays 1
echo ${DB_INSTANCES }
so am following echo ${DB_INSTANCES }|wc...
744
Posted By venky.b5
Facing problem with Alias created through script.
Hi Guru's,

I am creating alias for db instance running on a server through script, am able to create them based on /etc/oratab entries and can use successfully with the below script.
...
1,662
Posted By venky.b5
Hi, Thanks for you replies Regard's, i...
Hi,

Thanks for you replies

Regard's, i got my issue resolved.

how can i make this tread to resolved status
Venkat
1,662
Posted By venky.b5
Hi Vbe, I actually trying to find equivalent...
Hi Vbe,

I actually trying to find equivalent to sudo -n on AIX.

As i have nearly 500 servers, some are REDHAT and some are AIX, requirement is to monitor whether a user(say VENKAT) is having...
1,662
Posted By venky.b5
SUDO command in script
hi,

can some one explain the sudo -n equivalent in AIX

Thanks
Venkat K
1,763
Posted By venky.b5
Hi, you missed if as peasent suggested ...
Hi,

you missed if as peasent suggested

ls -lrt | awk '{if(($6 == "Jun") && ($7 == "20")) print $0}'

Thanks
Venkat
Forum: What is on Your Mind? 06-26-2015
3,460
Posted By venky.b5
printf "\110\145\154\154\157\040\041\041\041\n" ...
printf "\110\145\154\154\157\040\041\041\041\n"
Hello !!!

venkat
1,890
Posted By venky.b5
Hi sorry if i misunderstood, what are...
Hi

sorry if i misunderstood,

what are you going to store string2?

Thanks
venkat
1,890
Posted By venky.b5
Hi Martin, you can find multiple patterns...
Hi Martin,

you can find multiple patterns using egrep
like
egrep 'string1|string2' $FILE

thanks

venkat
1,251
Posted By venky.b5
Hi, #!/bin/sh ...
Hi,

#!/bin/sh
HOM_DIR=/full/path/to/source/dir
i=$(head -1 $HOM_DIR/1.txt)
j=$(ls -ltr $HOM_DIR/dump* | wc -l)
if [ $j -gt $i ]
then
NEW=$(expr $j - $i)
...
2,366
Posted By venky.b5
Hi, you can try like #!/bin/ksh ...
Hi,

you can try like

#!/bin/ksh

MAIN_DIR=/home/user/pumela
FILE_LIST=/home/user/file_list.txt
find ${MAIN_DIR} -type f -name "*.txt" -mtime +2 > ${FILE_LIST}
tar -cvf...
744
Posted By venky.b5
Hi Scrutinizer, I am trying to understand...
Hi Scrutinizer,

I am trying to understand code for my learning purpose, can you please explain if possible.

awk -F, '{while (NF<5 && (getline n)>0) $0=$0 n}1'

why it is (getline n) >0
what...
3,487
Posted By venky.b5
hi , have you tried as suggested by Don ...
hi ,

have you tried as suggested by Don

#!/bin/bash
while read line
do
ssh -n $line "du -sh /tmp/* | awk '\$1 ~ /[0-9]G/{print \$0}'"
done < tmpsrv.txt

venky
Showing results 1 to 25 of 37

 

Featured Tech Videos

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