Search Results

Search: Posts Made By: Mathew_paul
1,522
Posted By Mathew_paul
Single quotes insert statement using awk
Hi,

Need help, using awk command to insert statement

awk -v q="'" '{ print "db2 connect to repolab > /dev/null; " "\n" "db2 -x \" select name from IBMPDQ.PROFILE where managed_database = " q...
2,402
Posted By Mathew_paul
Standard_in error
# echo '6.5 < 2.7 ' |bc
0
# echo '4.8.5 > 4.8.4' |bc
(standard_in) 1: syntax error
(standard_in) 1: syntax error

----------------------------------------------------------...
1,308
Posted By Mathew_paul
awk help
Hi All,

have a file with list of server information, using awk just generating command

need to print second command in next line
...
1,179
Posted By Mathew_paul
hi chubler, thanks for reply Actually i...
hi chubler,

thanks for reply

Actually i m passing the table name as variable in script

but the output of db2pd -db VATPROD -reorg only show part of table name

igiving full table name...
1,179
Posted By Mathew_paul
Grep string
Hi,

Need help to grep string, actually out of string in not complete while grep using -w its not able to capture



db2pd -db VATPROD -reorg

Table Reorg Stats:
Address ...
Forum: Red Hat 10-07-2016
10,891
Posted By Mathew_paul
List domain groups
Hi

Need to list all gid for particular domain user.

Actually in database getting error like one of the gid that user belongs is invalid.

please suggest.

thanks
Paul
905
Posted By Mathew_paul
Script help
Hi,


# su - db2inst1 -c 'db2 list db directory | awk -v RS='' '/Indirect/' ' | grep -i 'Database name' | awk ' { print "su - db2inst1 -c db2 activate db " $NF } '
su - db2inst1 -c db2...
1,367
Posted By Mathew_paul
liux001(db2inst1):QACC:/udb/db2inst1/dump_data/off...
liux001(db2inst1):QACC:/udb/db2inst1/dump_data/offshore/Tran_logs>int "gzip " " " $9 } ' | sh - <
ls: 0653-341 The file *.LOG does not exist....
1,367
Posted By Mathew_paul
hi vbe, This script is running fine for...
hi vbe,

This script is running fine for particular DB. If it fails i some of the command how will i shld get alert. I treid for return code 0, but if for example

ls -ltr *.LOG | awk ' { print...
1,367
Posted By Mathew_paul
Need exception handle for this script
Hi

This is script to move log files from one location to other which is working fine. I need to add exception handling in this new to scripting. Please help

#!/bin/ksh
DB=QACCABOP...
Showing results 1 to 10 of 10

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