Operating System - HP-UX
1832584 Members
3385 Online
110043 Solutions
New Discussion

Re: number of character per line

 
Diego Pavón
Advisor

number of character per line

Hi.

I want to run the following comand line:

${MYWS}/bin/batac_web_form -tNIVEL1 ${CE_CC_CECLA1501_DATA_DIR} ${CE_CC_CECLA1501_REPORTS_DIR} ${CE_CC_CECLA1501_DONE_DIR} ${CE_CC_CECLA1501_USER_CLARIFY} ${CE_CC_CECLA1501_PASSWORD_CLARIFY} ${CE_CC_CECLA1501_CLIENT_CLARIFY} ${CE_CC_CECLA1501_PASSAPP_CLARIFY}

but the number of character is 260 so I lost the last 4 characters.

Can I change the number of the character in the input line?

I could change the name of the variables but it is a lot of work because I have somethins like this in a lot of scripts, will be better if I could cange the number or the input characters


if I run the same line with other user in other environment I haven't problem. It this environment problem?,

4 REPLIES 4
Joaquin Gil de Vergara
Respected Contributor

Re: number of character per line

put the backslash (\) simbol at the end of line

it allows you split a command in some lines

Teach is the best way to learn
Diego Pavón
Advisor

Re: number of character per line

I know this method ( \ ) but I would like to know if exit other possibility because I have the same problem, chek a lot of files to change. And why one user can run this line and the other can't.

Stefan Farrelly
Honored Contributor

Re: number of character per line


Thats a very good question why one user can run and the other not. Normally this is a hard limit of 255 - set in /usr/include/limits.h

# define _POSIX_MAX_CANON 255 /* Max number of bytes in a terminal canonical input line */

Whats the difference between your 2 environments ? are they using different shells ? same version of HP-UX ? You need to investigate this.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Diego Pavón
Advisor

Re: number of character per line

the output of the line has all the correct values( the los of the program):

/cell-c/fase2/cc/bin/batac_web_form -tNIVEL1 /cell-c/fase2/cc/data/web_form/data /cell-c/fase2/cc/data/web_form/reports /cell-c/fase2/cc/data/web_form/done sa sa clarify clarify

this all value are correct but the last one must be the truncate value I can see all the data, so what happend with the last one. If I run the first line, the shell truncate the last variable but in the log I see all the values. If I run the line but with the correct values instead of $variable I haven't problem.