8 character limit for ipcs command , any way to increase # of chars ?


 
Thread Tools Search this Thread
Operating Systems Solaris 8 character limit for ipcs command , any way to increase # of chars ?
Prev   Next
# 1  
Old 08-29-2013
8 character limit for ipcs command , any way to increase # of chars ?

Hello All,

We have a working script which identifies and kills ipcs resources which havent been correctly killed during normal shutdowns.
It is working fine and dandy however there are some issues now.

Environment:

Code:
SunOS 5.10 Generic_148888-03 sun4u sparc SUNW,SPARC-Enterprise

Problem :

Our target search string has increased by 1 character from 8 chars to 9. What I am observing @ this point is the ipcs -a | grep (9 char string) is returning blank results. The increase in characters is due to new naming conventions. So while it may be easy to say , "simply use an 8 char database", in practicality it is over my head.


Desired Solution:

I need to find a way to get ipcs to be able to identify resources associated with a 9 char search string. From what I have read so far I havent dug up an environment var or quick fix for this issue. I have also dug through a few posts here in the forum in the hopes of finding a solution.

Code Example:

a) Working:

Code:
      ipcs -a | grep 1245678

b) Not working

Code:
       ipcs -a | grep 123456789

Anything you can offer is appreciated!

There are logic tweaks I can make to the script however out of curiosity I would like to learn more about ipcs on solaris. Constantly hungry for skills!

Thank you! Smilie

Last edited by Scott; 08-29-2013 at 08:00 PM.. Reason: Code tags
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to increase soft stack limit?

:wall:Dear Solaris 10 Specialists, I am having difficulty trying to increase the soft stack limit to 16384 for user george on this Solaris 10 SunFire Sparc server as follows: $ uname -a SunOS galactica 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5220 % id -p ... (3 Replies)
Discussion started by: gjackson123
3 Replies

2. Shell Programming and Scripting

Ignore the 255 character limit of command line

Hi I would just like to ask if there is a way for UNIX to ignore/overcome the 255 character limit of the command line? My problem is that I have a really long line of text from a file (300+ bytes) which i have to "echo" and process by adding commands like "sed" to the end of the line, like... (5 Replies)
Discussion started by: agentgrecko
5 Replies

3. UNIX for Advanced & Expert Users

Question on output of ipcs command

Hi, I read the ipcs man page and am still very confused. Basically, I just want to know whether the output from the ipcs command below means these are the current "TOTAL" memory usage in bytes on the server? Is this correct? Thanks in advance. ipcs command output below: # ipcs... (2 Replies)
Discussion started by: newbie_01
2 Replies

4. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

5. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

6. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

7. AIX

ipcs command with out output

hello i'm running on aix 5300-08-02-0822 hacmp 4 when i run ipcs command there is nio output. some one got this problem? best regards ariec (1 Reply)
Discussion started by: ariec
1 Replies

8. AIX

chfs increase /var limit at 512mb?

Is there a limit of 512Mb when doing a "chfs -a size=XXXXX /myfs" ? I managed to increase /var to 512MB fine, no issues, then i wanted to increase /usr to 2Gb, but when i enter: # chfs -a size=2260992 /usr chfs: 0506-908 Cannot reduce size... (5 Replies)
Discussion started by: craigp84
5 Replies

9. UNIX Desktop Questions & Answers

how do I increase the character size in the Unix Box

do anybody has knowledge how do i increase the character size in the UNIX box (1 Reply)
Discussion started by: subir23
1 Replies

10. UNIX for Dummies Questions & Answers

ipcs command

Does anyone know how to set the variables with the ipcs command? I need to set the following variables: Shared memory segments message queues semaphore arrays all of these (1 Reply)
Discussion started by: Deuce
1 Replies
Login or Register to Ask a Question