Search Results

Search: Posts Made By: annacreek
2,547
Posted By annacreek
Passing positioning array as whiptail -- menu option
I may have asked this before, so forgive OF.
Problem:
I can pass positioning array as -- menu option to whiptail, but it does not show in the whiptail form as an array - only single (first member...
Forum: What is on Your Mind? 09-04-2018
5,098
Posted By annacreek
CodeProject by far + Objective ...
CodeProject by far



+

Objective

Not sales oriented

Color blind AKA not prejudiced in any way - technically or grammatically
Best tutorials around +++


-
Needs some "SoC" ...
956
Posted By annacreek
Let me put it this way - I appreciate your code...
Let me put it this way - I appreciate your code reply.

It does the job.

Please - In future limit your replies to facts.
I do not discuss "what I am doing" unless it has a bearing on the...
956
Posted By annacreek
Sending an array member to file
This may be a dupe, but the problem is not complex,it is simple issue.

I can create an array of string(s) located in positioning parameters for further processing. Works as expected.

Now I...
5,007
Posted By annacreek
Thanks Bakunin. I need to restate my "primary...
Thanks Bakunin.
I need to restate my "primary objective" was and still is to modify existing bash script,
I started with 2000+ lines and now it is doubled!

I realize I am asking stupid and...
5,007
Posted By annacreek
So the bottom like is - I have to clean -up my...
So the bottom like is - I have to clean -up my own mess. O well...

------ Post updated at 11:14 AM -----




Right church wrong pew -

sorry I do not know how my NEW post got here.



...
4,792
Posted By annacreek
Adding these options -rs -n1 "falls" thru the...
Adding these options -rs -n1 "falls" thru the "Pause" function
without waiting for any key.
Which will be handy to "remove" all debugging "pause" later. Thanks
5,007
Posted By annacreek
Bash functions sequence ?
OK,

I know function has to be defined first - in sequence - before it can be used.

So the script has to be build "bottoms -up style, if you pardon my expression.

I am running into a...
4,792
Posted By annacreek
OK, but why it accepts only "enter" key to...
OK, but why it accepts only "enter" key to terminate?
4,792
Posted By annacreek
Bash read with -p option
I have this simple code to stop script execution.

I did not invent it, and it works.
It used to have fackEnterKey as option, but it works without it.



My curiosity question is -

the...
1,236
Posted By annacreek
thanks, I'll try your approach . I am...
thanks, I'll try your approach .



I am still trying to understand how bash code is executed.
Perhaps my perception of code line executing "left to right" is basically wrong.



Look at...
789
Posted By annacreek
Bash 101 - to (do) ; or not to (do) ; ?
I figured this forum needs some laughs , so I am posting this.

And if the answer is - it depends on bash version - do not reply.



This is from "manual"


while CONTROL-COMMAND; do...
1,236
Posted By annacreek
Maybe. Here is the debug output as code is...
Maybe.

Here is the debug output as code is being processed.

It looks to me that each pass add next string and than debug prints the whole file.

But it builds multiple "strings"and it...
867
Posted By annacreek
Very useful suggestion. I believe my "problem" is...
Very useful suggestion. I believe my "problem" is hacking "inherited" script. Since it is my first bash scrip I just "fix" what I need and most of the time do not spent much time to fully analyze /...
1,062
Posted By annacreek
Thanks, I think you answered my question. The...
Thanks, I think you answered my question.
The whiptail menu while read "searches" are indeed redirected and pause expect stdio.

It will take me a while to fix that after I'll take a harder...
1,062
Posted By annacreek
While read won't run keyboard function
I am using while read do/ done to retrieve menu item.

Works as advertised, no problem.

I am using this hack function "pause" to stop script execution and wait for keyboard "enter" key to...
867
Posted By annacreek
Thanks for replay and very comprehensive...
Thanks for replay and very comprehensive explanation of the "variable expansion" process.
Appreciate that very much.



Perhaps I need to find "bash dictionary of terms" to help Mrs Google to...
867
Posted By annacreek
Bash 101 - string assigment
I am embarrassed to ask this but I am at the end of my rope.
I am trying to assign one (string) variable to another.
I do understand that bash variables are "not typed", but still learning usage of...
1,236
Posted By annacreek
Sorry, but this post does not answer / address my...
Sorry, but this post does not answer / address my question.

I have no problem building the array manually, but I was just trying to use loop.

Actually I like to know if such operation is even...
1,236
Posted By annacreek
Putting strings into positioning array in loop
i need to add 2 string variables into a positioning array , repeatedly - in loop.

First string in $2, second to $3 then up to the desired count incrementing the "position".
Using set -- alone...
967
Posted By annacreek
I am sorry, that is not what I asked for. Maybe...
I am sorry, that is not what I asked for.
Maybe this will clarify my request.

Here is a sample of one of the command outputs currently send to terminal and to get back to my script I have to...
967
Posted By annacreek
Using commands within bash script
The purpose of enclosed script is to execute selected command and output success or failure in whiptail msgBox

Works as expected when command returns zero to msgBox.


I cannot figure out how...
4,256
Posted By annacreek
: <<"cut" syntax fixed it! ...
: <<"cut" syntax fixed it!

Thanks
4,256
Posted By annacreek
I have been struggling with bash for less than a...
I have been struggling with bash for less than a month now.

The idea was to use existing bash script and ADD some functionality to it.

When I do coding I like to keep my attempts in code so I...
4,256
Posted By annacreek
Yes, here is my working code ...
Yes, here is my working code


calc_wt_size
140 : <<cut
141 x=1
142 while [ $x -le 5 ]
143 do
144 echo "Welcome {${x}} times"
145 x=$(( $x + 1 ))
146 done
147 pause
148...
Showing results 1 to 25 of 59

 
All times are GMT -4. The time now is 06:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy