![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Numeric or not? | harrisjl | Shell Programming and Scripting | 3 | 12-01-2008 12:48 AM |
| Numeric or not | harrisjl | Shell Programming and Scripting | 1 | 11-30-2008 11:54 PM |
| Perl code to differentiate numeric and non-numeric input | Raynon | Shell Programming and Scripting | 11 | 08-04-2007 11:32 AM |
| how do I make dynamic parameter names? Or get the value of a parameter evaluated twi | Awanka | Shell Programming and Scripting | 2 | 04-19-2007 10:37 PM |
| non-numeric argument | TiredOrangeCat | UNIX for Dummies Questions & Answers | 3 | 02-13-2007 02:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Under what sh `scaley 27` is a numeric-parameter ?
Hi,
this part of code comes from an example in dialog utility. Running it under /sh the following error is generated " Error: Expected a numeric-parameter for --begin. Use --help to list options. " Is this example is 6 years old only, I expect it to work finally. Jack ROWS="`cut $tempfile -f1 -d, | cut -f2 -d:`" COLS="`cut $tempfile -f2 -d,`" rm $tempfile # account for widest labels COLS=`expr $COLS - 30` # Takes an integer, multiplies it for COLS, divides for 132 scalex() { echo $[$1*$COLS/132] } scaley() { echo $[$1*$ROWS/60] } $DIALOG --backtitle "$TITLE" --no-shadow \ --begin `scaley 27` `scalex 98` |
|
||||
|
Quote:
Exactly, examples I test, are 5-10 years old, written for bash. Successfully I have both shells installed. Jack |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|