Yes, script-tools and TUI are both my 'children', so i cant go anywhere (else) and ask for help/bugfixes as i need to write them myself.
However i do need help to understand error messages at times (or get hints what else might cause them), so here we go:
Since my new computer is using UEFI, i finaly figured the following command to be useless without some slight modifications.
Anyhow, arguments are finaly parsed properly again, and when bash told me fileXY:line##, the error was there.
But not this one, see yourself: (lines starting with '# | ' are the 'TUI' interface, and tui-str-ask was (3 months ago) renamed to tui-bol-yesno which is a file (command) and not just a function...
Just to prove its not the file 'update':
Actualy, what irritates me the most is:
1) it seems to be caused by root
2) the file /usr/share/script-tools/functions/system.isQuestions doesnt even contain the string 'tui-str-ask'.
So even when calling the program without any args it applies, depending upon root/user-level..
Reports simply that each entry was not a file (note that i had used this code just a few minutes earlier to find other bugs - which are solved now).
rofl? :doh:
It seems 'disabling' the ask function in system.isQuestion solved it...
Just figured i try this, since script-tools' - 'ask' is replaced by tui-bol-yes, i could remove it from script-tools source code...
Weird, i would have expected a diffrent error text.. (but then again, i wouldnt know what)
Hi Experts
I would like to ask if there is a way to validate if the variable passed is in this kind of sample format "06-10" or "10-01". It was really a challenge to me on how to start and echnically the "6-10" stands for "June 10" and "10-01" stands as "October 1", overall it needs to have ... (3 Replies)
I have a bash that downloads a list and if that list has data in it then a new main directory is created (with the date) with several subdirectories (example1, example2, example3). My question is in that list there are portion of specific file types (.vcf.gz) - identifier towards the end that have... (0 Replies)
Error Message: dm2_oraver: 9xdm2_oraver2: LT11/w_standard/gold_wh/install/dm2_updatetns.ksh: 11MAR13: 0403-009 The spe
cified number is not valid for this command.
if means the line number in the ksh, it is ((CntNew=Cnt+1)).
Please let me know the best way to debug and find it out. I am... (4 Replies)
Hi,
Am using a if condition to match a pattern but I get the following error..
if
then
echo "The value is $hidType"
return 0
elseif -a ]
echo "The value is $hidType"
return 0
fi
I get the following error
+ echo The value is mode
The value is mode
+
./a2: mode:... (2 Replies)
1. The problem statement, all variables and given/known data:
The script usage will be as follows:
library.third source_directory
- Your script will display an appropriate error message and exit with status 3 if no parameters are given
- Your script will display an appropriate error... (2 Replies)
Hello,
Getting error "A test command parameter is not valid" when trying to run the code below under /sbin/sh
AA = "12:00"
CHK=$(date +"%H:%M")
if
then
print "Yes"
fi
Getting 2 errors:
1) "AA: not found"
2) "Specify a parameter with this command"
Thanks,
IS
Please... (5 Replies)
Trying to run the following awk command :
export com.mics.ara.server.tools.sch_reports.Runner.num_threads=`awk -F= '!/^#/ && /com.mics.ara.server.tools.sch_reports.Runner.num_threads/{print $2}' $BKUPDIR/env.properties`
-bash: export:... (6 Replies)
I am trying to write a bash script. I am able to do simple things like pass arguments, assign variables and echo the results. However, when I try to declare and array or anything a little more complicated I get
': not a valid identifier
Here is my code so far:
#!/bin/bash
echo start t... (7 Replies)
Probably a very straight forward question but please be easy on me, I am v. new to UNIX!
A script that I have runs the line
tmp=`pwd -H`
It works fine, but I needed to make a couple of other changes to the script, nowhere near this line but now this line reports:
pwd: A specified flag... (2 Replies)