May I suggest simply using something like printf "." instead of fiddling with a fancy progress bar then? You still show it's working, but its much simpler. So, either do something like :
Yes I saw that printf example, but my bash script has no terminal unless you call it from there... it's called from the desktop and uses GUI unless you are testing. Wget uses the [######...........] progress display but I'm piping that through yad too.
^^^ The spinning text pizza :D I wrote my own before seeing that for the systray indicator updated from bash... Mine has more lines of code though as I was still learning sigh
symbols=("|" "/" "-" "\\")
sleep 20 &
while [ -d /proc/$! ]; do for s in "${symbols[@]}"; do printf '\r%s' "$s"; sleep 0.3; done; done; echo ""
@WinEunuuchs2Unix Oh. Huh, OK. Well that should be more than enough. You'd be crazy to work with GB of data in a bash array. It will be slow as a glacier.
And bash (shell in general) is extremely useful and absolutely the right tool if your script's job is to run various other commands. All I'm saying is that it isn't the right tool when it comes to more complex programs where the real work is done by the program you are writing and not by external tools that it calls.
I very often start writing something in bash, then figure out it's more complex than anticipated and switch to another language.
@WinEunuuchs2Unix I agree with @terdon. It's good and important to learn bash... using it for quick tasks are good, but there is important programming functionality that comes with one of the other languages that is important to become familiar with.
Later you can add some of those concepts to your bash scripts.
Sorry... I didn't read the whole log. I was responding on the part where you suggested programming Languages, and I thought he said he would just sick to bash.
@L.D.James After becoming comfortable with bash I was planning on relearning C for application development in Linux. I know Python would be easier than C but that's my current long term plan.
It's good to have a favorite language and know it inside and out. By the way, one of my first languages was C... I'm quiet self taught... I have a little problems with C++... most of my C++ programs have lots of C, whereas it should be replaced with C++.
Well, ideally, you'd need all three. Many things are too complex to be worth the effort in bash yet too simple to be worth the effort of C. Those tend to be trivial or very easy in the mid-level dedicated scripting languages like perl, python, ruby etc, extremely hard or impossible in bash and perfectly possible but far more complex than necessary in C.
I see C (sorry for rhymes) as necessary for writing the libraries stuff like .GetCustomerName (...), AddRecord (...), .CheckWifi (...), etc. Then those libraries can be called from Python???
@L.D.James I don't really know either well enough to have an opinion. I do know that Linux itself is written in C and not C++ and that C is easier. It is also the one the rest are based on so I would guess C would be a better start point, but I really don't know.
@ThomasWard You're right about C++ being substantially easier than C once you understand the structure... which isn't hard to learn when you realize it different from C.
The strings and libraries are extremely powerful and easy to use.
@terdon it can do dynamic allocation like java and python do without needing to define memory constraints itself for variables and malloc and such. Part of the core IIRC but you can do it if you want to.
Some people preach against using and IDE... but I believe working without a good IDE is like trying to use a hammer and pliers for most of your jobs in handy man, rather than acquiring a good set of tools.
My favorite IDE (even for Bash) is Eclipse... what do some of you use?
Anyway I sharpened my teeth on IBM JCL (Job Control Language), IBM OS/400 and IBM DOS batch files and I just think BASH is wonderful in comparison. BASH is also light years ahead!
malloc is always important... your job needs to gracefully exit from memory full situations too before DOOM kills your app in a way that corrupts stuff.
The Eclipse markdown preview in my Eclipse settings has one annoyance... I can't figure out how to make the Markdown Live Preview automatically update without switching from the editor where I'm typing. I've been meaning to get around to ask some of the Guru's on SE if it's possible.
I would like to use the SE flavor of markdown in my emacs. The default Markdown mode has some features (backticks and indentation mark code, # makes a header and > also changes the font) but I would also like to have:
* to make a list item, including indentation.
[foo](http://example.com) to sh...
Well, you could try making your CPU 64-bit compatable, but I wouldn't reccomend it as you are new to the system, and it may damage your CPU. If you have a samartphone or tablet, i think you should just play it on that... if not.... you really can't.
@lewis4u xorg is the display server. openbox is just a window manager that sits on top of the display server. xinit is several scripts that allow you to manually start xorg.
@ThomasWard Thanks. I usually don't either. Just on special occasions, especially if there are a number of topics going at the same time, or the original content has scrolled off the page. I referenced it just to acknowledge I found your meaning.
Here's the Output of the terminal, what can an User do about a GUI without the code? When you are doing a subtitle for a video you need to deal with the content so this proves they don't want us to produce content. So we cannot deal with public opinion. IS that a trouble or a solution?
user@ubun...
@KazWolfe OK, there's a "delete these three files" trick using the bundled JRE without a downgrade, it works fine and actually better. A few Python 2 regressions in pyCharm they're going to work on but eh
@BhargavRao I've had that unlocked for several months. Where the heck have you been that you don't know this lol
It took jos only 2yrs 2 months on site to become a mod on SO, took Undo 3 tries (was pulled in the 4th). (Andy is still to become, 3 tries as well). It needs some perseverance
There's still a self-beneficial perspective, there always is. Even if everyone in the interaction benefits, nobody instigates anything without some self-gain.
@Fabby thanks but it isn't actually my birthday. @jokerdino decided to randomly start wishing people a happy birthday for April Fool's day and I wanted to join in.
I'm on Ubuntu MATE 16.04.1 and I changed graphic card to GeForce 8600GT and now I can't enter LUKS password on boot after installing NVIDIA propriatary drivers (I tried 304.135 and 340.102). Keyboard does not work there, I only have such screen and I can't enter anything:
To boot my OS I need ...