My script reading parameters from a parameter file using stanzaget. (runs on ksh).
One of the paramter is collection of unique numbers separated by comma and it is lengthy.
Parameter file looks as below,
wc -c gives result 6000 (1000 5 digit stores separated by comma and a space in beginning)
In script, below expression is executed, wc -c gives result of 1000
My question are,
Why only 1000 characters?
What limits the parameter length reading from a file?
What is the maximum length of string constant?
Which limit i can refer in getconf?
Please suggest what is the better way to read complete store numbers from parameter file.
Thanks,
Gajendra
Last edited by Don Cragun; 03-22-2015 at 03:35 AM..
Reason: Add CODE and ICODE tags.
Hi!
I have some shell scripts receiving in input lots of parameters and I need to select the ones having a particular value in one parameter.
A typical shell command line is:
PROMPT > shell_name.ksh -avalue_a -bvalue_b -cvalue_c -dvalue_d ...
I used a combinaton of ps and grep commands... (1 Reply)
Hi!
I have some shell scripts receiving in input lots of parameters and I need to select the ones having a particular value in one parameter.
A typical shell command line is:
PROMPT > shell_name.ksh -avalue_a -bvalue_b -cvalue_c -dvalue_d ...
I used a combinaton of ps and grep commands... (5 Replies)
Hi
Problem of ps on Solaris 8 and 9
Perhaps a silly question but I can't find a solution.
the output of the command ps -ef is truncated.
I've tried to change the terminal settings with stty putting
a big number of colums: no change.
Following the man page of ps i have set the variable... (8 Replies)
OK, I'm stumped.
I have a shell script that reads a list, and for every item in the list performs a lookup in our Active Directory. Now, it seems that when I pipe the results into grep, the complete results are not there (truncated?). I'm not sure if this is a limit of the pipe, grep, shell... (1 Reply)
Hi Guys,
I have a master script file.
That calls the other script files. The sub script files append some of the data to the log file.
Once the master script completes one sub script execution and returns to execute other sub script that appends to the same log file. the log file gets... (2 Replies)
can u tell me as what the following code does:
x="$(/u/bin/stanzaget $GDS_CONFIG_DIR/runaway_check.cfg $1 $2)"
if ; then
RET_VAL=$x
thanks in advance! (2 Replies)
Hi,
Can anyone tell me what does the following code actually does??
$x = `u\bin\stanzaget u\bin\store.cfg store site`; chomp $x;
Thanks,
Sur (0 Replies)
Hi,
I have Solaris-10 server. /usr/ucb/ps auxww is showing full path if I am running it from root. But if I run it from non-root user, its output is truncated. I don't want to use any other alternate command.
Please suggest, what can be its solution.
Terminal is set to term. (21 Replies)
Hi All,
here is an output of my command and the problem is that my output string is truncated, I want to exact the full string, I am on BASH shell, please help me out.
Regards
Rahul
command with Output :
lonss05903:cmdsvc01 /home/cmdsvc01 > ps -aef|grep 'Copy'
cmdsvc01 2642 8675 ... (7 Replies)