Sponsored Content
Full Discussion: Memory/virtual space
Top Forums Shell Programming and Scripting Memory/virtual space Post 10781 by degwright on Wednesday 21st of November 2001 02:28:02 AM
Old 11-21-2001
Question LINE_MAX (limits)

Perderabo,
Thanks for the reply. I have obviously missed the point somewhere. The LINE_MAX setting here is 2048 chars. How does this figure relate to the 12,000 chars (plus cr's, linefeeds) that appears to be the restriction.
Below are some positive and negative examples. The closest wc value I have achieved so far is 11,810 (without a failure) and I know it fails when it hits 12,044.
Does your reply still stand, or have I missed something.
Unfortunately, source .c/.h filenames being what they are, can only be picked up by using the filename extension. Developers tend not select alphabetically ordered filenames, otherwise I would use a*.c etc.


Rgds David


ok
wright@w9054$ ls projects/$PROJECTPATH/*.[ch].met | wc
272 272 7840
wright@w9054$ pwd
/home/w9061disk/wright
----------------------------
ok
wright@w9054$ ls $PROJECTPATH/*.[ch].met | wc
272 272 7840
wright@w9054$ pwd
/home/w9061disk/wright
----------------------------
ok
wright@w9054$ PROJECTPATH=wright/projects/a318 ; export PROJECTPATH
wright@w9054$ ls $PROJECTPATH/*.[ch].met | wc
272 272 9744
wright@w9054$ pwd
/home/w9061disk
----------------------------
NICHT WAR
wright@w9054$ PROJECTPATH=w9061disk/wright/projects/a318 ; export PROJECTPATH
wright@w9054$ ls $PROJECTPATH/*.[ch].met | wc
/usr/bin/ksh: /usr/bin/ls: arg list too long
0 0 0
wright@w9054$ pwd
/home
wright@w9054$
------------------------------------------------------------------
OK
wright@w9054$ cd w9061disk/
wright@w9054$ PROJECTPATH=wright/projects/a318 ; export PROJECTPATH
wright@w9054$ ls $PROJECTPATH/*.[ch].met | wc
272 272 9744
wright@w9054$ pwd
/home/w9061disk
wright@w9054$
-----------------------------------
NICHT WAR
wright@w9054$ ls w9061disk/wright/projects/a318/*.[ch].met | wc
/usr/bin/ksh: /usr/bin/ls: arg list too long
0 0 0
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

virtual memory

Hi, can anyone explain me what virtual memory is ( for which we use vmstat commande line ) comparing with RAM ? many thanks before. (2 Replies)
Discussion started by: big123456
2 Replies

2. Programming

about virtual memory and memory leak

Hi, First of all I appreciate this group very much for its informative discussions and posts. Here is my question. I have one process whose virtual memory size increases linearly from 6MB to 12MB in 20 minutes. Does that mean my process has memory leaks? In what cases does the... (4 Replies)
Discussion started by: shriashishpatil
4 Replies

3. Programming

how allocate virtual memory

Hi Folks can any body suggest how to allocate virtual memory any function for that (2 Replies)
Discussion started by: munnu
2 Replies

4. HP-UX

Virtual Memory

Hi! I work with HP-UX and I have to monitorize the use of virtual memory for different processes. (java processes for Tibco Adapter) And if these processes exceed a limit send a message to the syslog. I donīt know how to monitorize this... Should I do a script? or use an aplication, for example... (3 Replies)
Discussion started by: Kurohana
3 Replies

5. AIX

ulimits max locked memory virtual memory

Hi, Would any one be so kind to explain me : are ulimits defined for each user seperately ? When ? Specialy what is the impact of : max locked memory and virtual memory on performance of applications for a user. Many thanks. PS : this is what I can see in MAN : ulimit ] ... (5 Replies)
Discussion started by: big123456
5 Replies

6. UNIX for Dummies Questions & Answers

cpu, memory and virtual memory usage

Hi All, Does anyone know what the best commands in the UNIX command line are for obtaining this info: current CPU usage memory usage virtual memory usage preferably with date and time parameters too? thanks ocelot (4 Replies)
Discussion started by: ocelot
4 Replies

7. UNIX for Dummies Questions & Answers

Virtual Memory

Hi, Can anyone please help me workout how much virtual memory I have running on a T2000 running Solaris 10. Thanks # df -h swap 3.5G 1.0M 3.5G 1% /etc/svc/volatile swap 3.5G 208K 3.5G 1% /tmp swap 3.5G 56K ... (2 Replies)
Discussion started by: jamba1
2 Replies

8. UNIX for Advanced & Expert Users

Virtual file or memory?

Hi Experts I encountered a situation recently. I wanted to discuss here and understand the reason behind this. My scenario is something like this: yes > temp & The above command keeps writing the output to the file temp. And this file keeps growing every second. And in the every... (4 Replies)
Discussion started by: guruprasadpr
4 Replies

9. Solaris

Virtual Memory explanation

Hi All, Please explain me about Virtual Memory. Regards, SKumar (1 Reply)
Discussion started by: nskumar
1 Replies

10. UNIX for Beginners Questions & Answers

Virtual Memory in UNIX

So, I would ask you a piece of advice about which books or titles could give me comprehensive information about virtual memory in UNIX. Especially, I would found out that virtual address translation corresponds structures of kernel! Thanks! (2 Replies)
Discussion started by: Fadedfate
2 Replies
getusershell(3C)					   Standard C Library Functions 					  getusershell(3C)

NAME
getusershell, setusershell, endusershell - get legal user shells SYNOPSIS
#include <unistd.h> char *getusershell(void); void setusershell(void); void endusershell(void); DESCRIPTION
The getusershell() function returns a pointer to a legal user shell as defined by the system manager in the file /etc/shells. If /etc/shells does not exist, the following locations of the standard system shells are used in its place: /bin/bash /bin/csh /bin/jsh /bin/ksh /bin/pfcsh /bin/pfksh /bin/pfsh /bin/sh /bin/tcsh /bin/zsh /sbin/jsh /sbin/pfsh /sbin/sh /usr/bin/bash /usr/bin/csh /usr/bin/jsh /usr/bin/ksh /usr/bin/pfcsh /usr/bin/pfksh /usr/bin/pfsh /usr/bin/sh /usr/bin/tcsh /usr/bin/zsh /usr/xpg4/bin/sh The getusershell() function opens the file /etc/shells, if it exists, and returns the next entry in the list of shells. The setusershell() function rewinds the file or the list. The endusershell() function closes the file, frees any memory used by getusershell() and setusershell(), and rewinds the file /etc/shells. RETURN VALUES
The getusershell() function returns a null pointer on EOF. BUGS
All information is contained in memory that may be freed with a call to endusershell(), so it must be copied if it is to be saved. SunOS 5.10 30 Aug 2004 getusershell(3C)
All times are GMT -4. The time now is 07:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy