Search Results

Search: Posts Made By: sravani25
6,099
Posted By sravani25
Hi Rudi, I am trying to set multiple...
Hi Rudi,

I am trying to set multiple environment variables using shell script.

I tried below commands to set the environment variables in the shell script(as example i shared one variable...
3,614
Posted By sravani25
Difference between bash and bourne shell scripts in UNIX
Hi Team,

I am writing shell scripts for both unix and linux .. but for unix server even though i am using bash shebang at the begining of the shell file.
still it's running the scripts in bourne...
6,099
Posted By sravani25
How to define multiple environment variables in a shell script?
Hi All,
I am running a shell script on centos 7 to get some variable values and want to declare them as environment variables so that i will use them in another shell script.

I am using below...
11,267
Posted By sravani25
Certificates location in AIX server
Hi All,


What is the default certs location in AIX 7 like /etc/ssl/certs in Linux ?.
9,260
Posted By sravani25
Comparing netstat command in Linux and Solaris
Hi All,


In Linux when i am using netstat -anlp i am getting below columns output.
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name


where as...
2,975
Posted By sravani25
How to read file line by line in shell script?
Hi Team,


I want to read a file line by line and print the data in multiple variables.


By using below script i am doing that but i want to increase the performance by using for loop Can...
3,016
Posted By sravani25
Thanks jim mcnamara...
Thanks jim mcnamara (https://www.unix.com/member_modal.php?u=32659&modal=1) for your reply,


But i am not sure about how many fields of data will be in description column. Is there any alternate...
3,016
Posted By sravani25
How to print last field ouput in Linux?
Hi All,

I am trying to print the dpkg -l command output each field using below script. But i am unable to print the entire data of the last column.
Can someone please help me in selecting the...
3,287
Posted By sravani25
Mutiple filesearch technique in Linux/UNIX
Hi Team,


I am searching for multiple files in total linux server using shell script, But find command generally searches for the entire server for the files.
which is taking more time for...
3,102
Posted By sravani25
How to ignore mutiple strings when using shell script?
Hi All,

I am trying to use below syntax to find ignore multiple locations while searching for a file.


find / -name "$serviceitem" ! -size 0 2>&1 |egrep -v...
7,776
Posted By sravani25
How to find whether Solaris installed on physical machine or on a VMware/KVM?
Hi All,
.
I am trying to find whether Solaris 11 installed on physical server or on VMware/KVM.


I tried uname -a but it's giving only whether i installed on X86 or sparc machine.


I tried...
2,879
Posted By sravani25
Thanks Chubler_XL...
Thanks Chubler_XL (https://www.unix.com/member_modal.php?u=302085178&modal=1)and Rudi C.


I am able to print the output now.


But when i use lowercase column names like name, version and...
2,879
Posted By sravani25
Shell script ouput conversion
Hi All,


I am trying to print all the packages info in solaris 11 using below script.


#!/usr/bin/env bash

pkginfo -l | egrep '(BASEDIR|NAME|VERSION)' | awk '{print}' > /tmp/cp1
...
3,804
Posted By sravani25
How to change the path location within the shell script?
Hi ALL,


I am trying to find the installed tomcat version and location of the server.xml file to get the tomcat port number.


Using below script to do that.


#!/usr/bin/env bash
...
4,597
Posted By sravani25
Hi rbatte1...
Hi rbatte1 (https://www.unix.com/member_modal.php?u=302025710&modal=1) and Rudi,


Thanks for the reply.

My intention is when ever I run the below command, if the output is successful then I...
4,597
Posted By sravani25
Hi Scrutinizer...
Hi Scrutinizer (https://www.unix.com/member_modal.php?u=302052697&modal=1),


Thanks for the reply.


if $abc executed successfully then only i want to print that output.
4,597
Posted By sravani25
Shell script to check a command executed sucessfully or not
Hi All,


I am trying to write a shell script to check if a command executed successfully or not in rhel 7 and finding the installed tomcat version.


I am using below script.


var4=$(find...
2,926
Posted By sravani25
Hi Rudi, i need to find exact/correct ...
Hi Rudi,


i need to find exact/correct port number from the process id.
2,926
Posted By sravani25
Getting correct port number from process id
Hi All,


i am trying to find the Jobss port number(either default port number or any other port number assigned) from the running process id.


But it's giving me multiple port numbers when...
5,321
Posted By sravani25
Printing df -h output in json format
Hi All,


i am trying to print the df -h ouput in json format. using below script.


#!/usr/bin/env bash

df -h > /tmp/sdf
nawk '{print " "$1" "$2" "$3" "$4" "$5" "$6" "}' /tmp/sdf >...
5,317
Posted By sravani25
Can you please explain the script which you...
Can you please explain the script which you wrote.


Thanks
5,317
Posted By sravani25
Filtering netstat command output
Hi All,


I am trying to collect the listen ports info from netstat command in centos 7

From that info i am trying to collect all the foreign address IP for those ports.


I am using below...
25,980
Posted By sravani25
How to find weblogic version in Linux?
Hi All,


I am able to find the weblogic version in Centos 7 by using below command
but i am not sure what is java -cp is doing in below command.


Can someone please help. unable to find...
8,340
Posted By sravani25
Is it hard to find the NIC card speed info as...
Is it hard to find the NIC card speed info as well on aws ec2 instance ?.
2,265
Posted By sravani25
the current post is different to...
the current post is different to https://www.unix.com/unix-for-beginn...-new-post.html (https://www.unix.com/unix-for-beginners-questions-and-answers/283202-ethtool-command-not-working-new-post.html).
Showing results 1 to 25 of 31

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