I started chuckling when I read the cpp solution and half expected to see it followed by a "Why not 'grep ARG_MAX /usr/include/limits.h '?" post.
It's funny how sometimes we use the tools we are most used to - if we use a screwdriver every day, sometimes we'll use the handle end as a hammer.
However, "getconf" isn't always the right tool either because it doesn't necessarily have whatever it is you want. The man page explains what it will know about; and on recent Linuxes you can do "getconf -a". That can help when you aren't sure about whether or not to use a leading underscore or exactly what the constant is called - just
Hi All,
I didn't find any thread that match this question so I hope it's not redundant. I am totally new to Unix. I want to know what is the maximum length of the os-commandline in Unix. Will it cause any problem if I run any application whose total path length is much longer than 256... (2 Replies)
hi,
I am using solaris10. I have to write a bourne shell script, which copies files for the said destination path which is passed as an argument to the script.
it looks like this
myscript.sh /var/test -->destination path
now i would like to know what is the maximum length i can... (3 Replies)
Hi,
The problem I have is that I want to create a list of folders whose names are read from a text file but the file names are in decimal. Each letter consists of an octet and the end of the folder name is defined by the white space character (0032)
For example, we have in the text... (2 Replies)
Hi
My Unix sever is AIX 5.3. My Login shell ( using echo $SHELL) is /bin/sh implying it is a Bourne Shell. My Question is that i am still able to use Alias command to create/retrieve aliases. I have read in several sites on Unix online that the Bourne Shell does not support Aliases but... (12 Replies)
Is there a maximum length for a shell script command? How can I detect that in my OS?
For example, if I have something like:
command A | command B | command C | awk '{print $1 $2 $3 $4 $5}'
then can we break the commands and also the arguments inside awk ?
Thanks (11 Replies)
good friends days
I would love to know if I can help you know the length of a string
example:
cadena= "cual es mi largo"
echo "cadena : $cadena#
cadena :16 (7 Replies)
Discussion started by: tricampeon81
7 Replies
LEARN ABOUT ULTRIX
getconf
GETCONF(1) Debian GNU/Linux GETCONF(1)NAME
getconf - Query system configuration variables
SYNOPSIS
getconf -a
getconf [-v specification] system_var
getconf [-v specification] path_var pathname
DESCRIPTION -a
Displays all configuration variables for the current system
and their values.
-v
Indicate the specification and version for which to obtain
configuration variables.
system_var
A system configuration variable, as defined by sysconf(3) or
confstr(3).
path_var
A system configuration variable as defined by pathconf(3). This
must be used with a pathname.
AUTHOR
getconf was written by Roland McGrath for the GNU C Library
This man page was written by Ben Collins <bcollins@debian.org> for the Debian GNU/Linux system.
SEE ALSO sysconf(3), pathconf(3), confstr(3)3rd Berkeley Distribution squeeze GETCONF(1)