What is the Maximum number of characters that i can store in a variable?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users What is the Maximum number of characters that i can store in a variable?
# 8  
Old 08-09-2004
Quote:
I store a list of mail ids in a .lis file
If you are using sendmail, then you can create a mail alias which includes this file. See man aliases for details.
# 9  
Old 08-10-2004
Thanks

Thanks Ygor, but am using mailx command.

Let me try to modify the program with your help....

beilstwh, thanks to you too...

but the mail ids may grow larger and larger... so i can not predict the number of characters...

Anyhow, i will try to use the work around suggested by you (perl).

Regards,

Shan
# 10  
Old 08-11-2004
I could be mistaken here, but this sounds like you're after the kernel ARG_MAX value.

From /etc/conf/cf.d/mtune:

* General Kernel Parameters ------------------
ARG_MAX 5120 1024 51200

Our /etc/conf/cf.d/stune has:

ARG_MAX 51200

Set your stune value and, as root, do an idbuild then reboot.

You'll have your [much] larger capacity
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Maximum number from input by user

I am trying to calculate the maximum number from four numbers input by the user. I have the following code, but it does not work. It says there's an error with the last line "done". Any help would be appreciated. max=0 echo "Please enter four numbers: " for i in 1 2 3 4 do read number... (17 Replies)
Discussion started by: itech4814
17 Replies

2. Shell Programming and Scripting

Maximum number of characters in a line.

Hi, Could any one please let me know what is the maximum number of characters that will fit into a single line of a flat file on a unix. Thanks. (1 Reply)
Discussion started by: Shivdatta
1 Replies

3. UNIX for Dummies Questions & Answers

Using GREP/AWK to extract a number and store it as a variable

Hello, I have a question regarding the awk command. Here is the line I need to grep: 1 F= -.13250138E+03 E0= -.13249556E+03 d E =-.174650E-01 mag= 35.2157 Instead of displaying the number in red I would like to store it as a variable such as X. Is there a way to do this? Thanks for any... (3 Replies)
Discussion started by: modey3
3 Replies

4. Shell Programming and Scripting

Capturing a number at the end of line and store it as variable

Hello, Would someone guide me on how to write a shell script the would search for a phone no using at the end text file using sed or awk and store it in a varaible or print it. The text file is in this form text or numbers in first line text or numbers in second line . . . Firsname... (6 Replies)
Discussion started by: amuthiga
6 Replies

5. UNIX for Dummies Questions & Answers

ls - maximum number of files

what is the maximum number ls can list down (6 Replies)
Discussion started by: karnan
6 Replies

6. UNIX for Dummies Questions & Answers

maximum number of arguments

Hi, What is the maximum number of arguments that could be passed to zsh ? To find out that I tried a simple script. And the maximum number of arguments that could be passed turned out to be 23394 #! /bin/zsh arg=1 i=1 subIndex=23000 while do arg=$arg" "$i i=$(($i + 1))... (9 Replies)
Discussion started by: matrixmadhan
9 Replies

7. UNIX and Linux Applications

handling maximum number characters in an input file

Hi, Can anyone help me? An input file has three lines. Each line should only be 2098 as number of characters however line 2 of the input file has more than the maximum number of characters, it exceeded up to 4098. What should I do so that could handle maximum number of characters? that it could... (1 Reply)
Discussion started by: chrysSty
1 Replies

8. Shell Programming and Scripting

Line with maximum no . of characters

Hey , I want to check the row in a file with maximum characters . the output sud contain that row number along with the no of characters. (4 Replies)
Discussion started by: mohapatra
4 Replies

9. UNIX for Advanced & Expert Users

Maximum number of threads per user

Anybody knows how to setup Maximum number of threads per user or some other value on Sun Solaris 8. (1 Reply)
Discussion started by: s_aamir
1 Replies
Login or Register to Ask a Question