Search Results

Search: Posts Made By: Vipin Batra
Forum: SuSE 04-02-2015
6,934
Posted By Vipin Batra
The execution gets stuck after first echo (which...
The execution gets stuck after first echo (which displays the string to be matched from the out file).
When the find command is executed on shell, it indeed returns the results (matching files) but...
Forum: SuSE 04-02-2015
6,934
Posted By Vipin Batra
Hi, Ok, so there is a confusion I believe....
Hi,

Ok, so there is a confusion I believe. What I meant is:- The pattern from the out file (searchstring.out) is displayed on console but the output from the find command (files found) is not...
Forum: SuSE 04-02-2015
6,934
Posted By Vipin Batra
Hi Walter, I am running this on HP-UX box (k...
Hi Walter,

I am running this on HP-UX box (k shell). It doesn't really work for me and I am not understanding why :(
Forum: SuSE 04-02-2015
6,934
Posted By Vipin Batra
Hi Walter, The last line is reading the...
Hi Walter,

The last line is reading the strings/pattern to find from the out file rather, hence its < - which is correct I believe.

Regards.
Forum: SuSE 04-02-2015
6,934
Posted By Vipin Batra
Find command doesn't pipe the output as required.
Hi,

I am using below code snippet to echo/display the files found
(matching a pattern from searchstring.out file) and the corresponding owner.

while read j
do
echo "Pattern to search is:-...
Forum: HP-UX 04-02-2015
5,273
Posted By Vipin Batra
Hi Sea, I added "\" after "|" but still I...
Hi Sea,

I added "\" after "|" but still I dont see "find" returning any output.

Can you please suggest if there should be any other change required?

Thanks.
Forum: HP-UX 04-01-2015
5,273
Posted By Vipin Batra
Hi Guys, Really need this to work by...
Hi Guys,

Really need this to work by tomorrow. Is there any fool proof method that you might be aware of which would help achieve this?

Please confirm and throw some light.

Thanks in...
Forum: HP-UX 04-01-2015
5,273
Posted By Vipin Batra
Thanks. This looks much cleaner now. But...
Thanks.

This looks much cleaner now. But when I try this, the search string is read from the output file correctly but seems the output from find is not piped to the second while loop. So, neither...
Forum: HP-UX 04-01-2015
5,273
Posted By Vipin Batra
Thanks, tried this. It doesn't help in writing...
Thanks, tried this. It doesn't help in writing the output from find to write to an output file however.
Forum: HP-UX 04-01-2015
5,273
Posted By Vipin Batra
Find command doesn't return in shell script.
Hi All,

I am using below snippet to search for a string (read from a file 'searchstring.out') in all locations (/) and then iterate over the files found to write the locations and the respective...
Forum: AIX 03-19-2015
1,806
Posted By Vipin Batra
Username and installed application on AIX.
Hi,

I am looking to get a list of applications and corresponding user who installed the same (owner) on AIX host.

Can anyone confirm how can this information be retrieved? We can use "rpm" to...
Forum: AIX 02-02-2015
14,761
Posted By Vipin Batra
How to grep PID and program name from netstat in AIX?
Hi All,

I am using netstat on AIX to grep info on all open connections. However, unlike on Linux(Centos), I do not get the PID and program name using netstat on AIX.
I need this info to be...
Forum: AIX 01-29-2015
49,188
Posted By Vipin Batra
List running services, Package name and status on AIX.
Hi,

How can I list running services, corresponding package name and status on the AIX host?
On Linux (Centos), I use the below code snippet:-

for i in `chkconfig --list | awk '{ print $1}'`;...
Forum: AIX 01-29-2015
2,731
Posted By Vipin Batra
Process, PID and total memory consumed on AIX.
Hi,

Below is the code snippet I use on Linux (Centos) to retrieve the Process Name, PID and memory consumed on Linux (Centos) host:-

top -b -n 1 | awk -v date="$tdydate" -v ip="$ip" 'NR>7...
Showing results 1 to 14 of 14

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