05-08-2009
delete to end of formatted warnings using sed or cut...
Thanks Jim, there's some progress -- however the 'libxcb' warning have just moved further down -- i.e., the install progress further before the warnings appear... any ideas...?
previously,
*******************
Press any key to continue.
awk: cmd. line:6: warning: escape sequence `\.' treated as plain `.'
libxcb: WARNING! Program tries to unlock a connection without having acquired
a lock first, which indicates a programming error.
There will be no further warnings about this issue.
libxcb: WARNING! Program tries to lock an already locked connection,
which indicates a programming error.
There will be no further warnings about this issue.
with latest changes,
********************
Press any key to continue.
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
awk: cmd. line:6: warning: escape sequence `\.' treated as plain `.'
Launching installer...
libxcb: WARNING! Program tries to unlock a connection without having acquired
a lock first, which indicates a programming error.
There will be no further warnings about this issue.
libxcb: WARNING! Program tries to lock an already locked connection,
which indicates a programming error.
There will be no further warnings about this issue.
*********************
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have the following line(s) of text in a file:
Card: H'00f2 Elapsed Time (day - h:m:s): 0 - 21:14:18.5
I basically want to search for "Elapsed Time", then delete this and everything else to the end of the line. I've tried a lot of different things, but cannot seem to get rid of... (1 Reply)
Discussion started by: rtstanley
1 Replies
2. Shell Programming and Scripting
HI,
I want to cut end string from line.
e.g. i have following input line
/users/home/test.txt
I want to get end string 'test.txt' from above line and length of that end string will change and it always start after '/'.
Thanks,
Visu (7 Replies)
Discussion started by: visu
7 Replies
3. Shell Programming and Scripting
Hi
I have the input file as below
***TEST10067
00567GROSZ 099
00567CTCTSDS90
***TEST20081
08233GROZWEWE
00782GWERW899
***TEST30088
08233GROZWEWE
00782GWERW899
I am finding the lines starting with *** and outputing as below
TEST10067
TEST20081
TEST30088
I need a space between TEST1... (9 Replies)
Discussion started by: dhanamurthy
9 Replies
4. Shell Programming and Scripting
Hi All,
I have a string like "9633C01302_2". I need to extract the number(02) after "13" and before "_" and the number coming after "13" and before "_" is not constant, it keeps on changing...
Can some one plz help me wth the command..
i tried this echo "9633C01302_2" | cut -d'_' -f1 ..But... (2 Replies)
Discussion started by: grajesh_955
2 Replies
5. Shell Programming and Scripting
I have a file with a bunch of similar lines in which I want to extract a phrase delimited by the first occurance of a '>' at the beginning and the first occurance of a '<' at the end (you might have guessed these are beginning/end of HTML tags). Using Sed I have managed to delete up to and... (7 Replies)
Discussion started by: coldcanuck
7 Replies
6. Shell Programming and Scripting
Hi,
I need help with using an awk or sed filter on the below line
ALTER TABLE "ACCOUNT" ADD CONSTRAINT "ACCOUNT_PK" PRIMARY KEY ("ACCT_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "WMC_DATA" LOGGING ENABLE
Look for... (2 Replies)
Discussion started by: rajan_san
2 Replies
7. UNIX for Advanced & Expert Users
Hi,
I need help with using an awk or sed filter on the below line
ALTER TABLE "ACCOUNT" ADD CONSTRAINT "ACCOUNT_PK" PRIMARY KEY ("ACCT_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "WMC_DATA" LOGGING ENABLE
Look for... (1 Reply)
Discussion started by: rajan_san
1 Replies
8. Shell Programming and Scripting
Can someone please tell me how to do this...
input file - /etc/group:
wheel:*:0:root,timber
daemon:*:1:
mysql:*:88:
...etc...
giants:*:1001:dalton,bandit
dalton:*:1002:
bandit:*:1003:
output file (my goal):
giants:*:1001:
dalton:*:1002:
bandit:*:1003:I've come up with this:
... (3 Replies)
Discussion started by: Lewcifer
3 Replies
9. Shell Programming and Scripting
Hello,
Please advise. Scoured this site, as well as google for answers. However if you do not know what to search for, it's a bit hard to find answers.
INPUT:
ACTASS=
802
BASECOS=
279
COSNCHG=
3
CUSCOS=
52
UPLDCOS=
2
DESIRED OUTPUT:
ACTASS=802
BASECOS=279 (13 Replies)
Discussion started by: abacus
13 Replies
10. Shell Programming and Scripting
could you please help me.
I have below autosys jobs
01_enable_input_hol_dtpz1b
01_abc_copy_ld_sat_xxxz1
01_abc_mavcd_yyyyyxxxz1
01_abcdef_oa_xxxxxz1
01_fdgte_symbol_ddddz1
01_fsdfsd_clean_mmmhhhfz1
01_fsdfd_create_mut_marchtz1
I want to remove name after last "_" underscore
so that... (6 Replies)
Discussion started by: sdosanjh
6 Replies
LEARN ABOUT CENTOS
dlm_unlock
DLM_UNLOCK(3) Library Functions Manual DLM_UNLOCK(3)
NAME
dlm_unlock - unlock a DLM lock
SYNOPSIS
#include <libdlm.h>
int dlm_unlock(uint32_t lkid,
uint32_t flags, struct dlm_lksb *lksb, void *astarg);
int dlm_unlock_wait(uint32_t lkid,
uint32_t flags, struct dlm_lksb *lksb);
DESCRIPTION
dlm_unlock() unlocks a lock previously acquired by dlm_lock and its variants.
Unless dlm_unlock_wait() is used unlocks are also asynchronous. The AST routine is called when the resource is successfully unlocked (see
below).
lkid Lock ID as returned in the lksb
flags flags affecting the unlock operation:
LKF_CANCEL Cancel a pending lock or conversion.
This returns the lock to it's previously
granted mode (in case of a conversion) or
unlocks it (in case of a waiting lock).
LKF_IVVALBLK Invalidate value block
LKF_FORCEUNLOCK Unlock the lock even if it's waiting.
lksb LKSB to return status and value block information.
astarg New parameter to be passed to the completion AST. The completion AST routine is the last completion AST routine specified in a
dlm_lock call. If dlm_lock_wait() was the last routine to issue a lock, dlm_unlock_wait() must be used to release the lock. If dlm_lock()
was the last routine to issue a lock then either dlm_unlock() or dlm_unlock_wait() may be called.
Return values
0 is returned if the call completed successfully. If not, -1 is returned and errno is set to one of the following:
EINVAL An invalid parameter was passed to the call (eg bad
lock mode or flag)
EINPROGRESS The lock is already being unlocked
EBUSY The lock is currently being locked or converted
ENOTEMPTY An attempt to made to unlock a parent lock that still has
child locks.
ECANCEL A lock conversion was successfully cancelled
EUNLOCK An unlock operation completed successfully
(sb_status only)
EFAULT The userland buffer could not be read/written by the
kernel
If an error is returned in the AST, then lksb.sb_status is set to the one of the above numbers instead of zero.
EXAMPLE
int status;
struct dlm_lksb lksb;
status = dlm_lock_wait(LKM_EXMODE,
&lksb,
LKF_NOQUEUE,
"MyLock",
strlen("MyLock"),
0, // Parent,
NULL, // bast arg
NULL, // bast routine,
NULL); // Range
if (status == 0)
dlm_unlock_wait(lksb.sb_lkid, 0, &lksb);
SEE ALSO
libdlm(3), dlm_lock(3), dlm_open_lockspace(3), dlm_create_lockspace(3), dlm_close_lockspace(3), dlm_release_lockspace(3)
libdlm functions July 5, 2007 DLM_UNLOCK(3)