This worked for my Ubuntu 14.04 x64 Desktop with Teamviewer 9 Multiarch. Thanks for the solution.
Type: Posts; User: octius4u; Keyword(s):
This worked for my Ubuntu 14.04 x64 Desktop with Teamviewer 9 Multiarch. Thanks for the solution.
:guitar: Awesome! :guitar: It works great. Goal achieved! Thanks a whole lot!
Great! Thanks. I'll test it right away.
I'm sorry that I don't understand the "cake" metaphor/reference. After a bit of searching and reading I understand that a log function would write only the specific output that is echoed or printed...
Maybe it's important to know that the variable definitions such as the color codes are in a function and the Logging is called up its own function. Could the different function separations be...
ofnuts thanks for the advice, but doesn't work.
My original color code:
if [ -t 1 ]; then ## if stdout is a terminal then COLORS...
I have used the -t option to control the contents of the color variables that would otherwise remain empty. I do understand the condition being used, but the error logging is a continues output...
I have a script output in color going to a terminal emulators StdOUT.
However that standard output is copied into a Log File. Now when I
read that File it contains the color codes that are...
It's good to know one can count on Vaphell/UbuntuForums. Thanks for the explanation and for your offer.
However I am glad to inform that I've managed to solve my problem.
I guess a good nights...
Thanks for the info Vaphell. I will take some time to get more familiar with the subject.
And I will also have to find an different way to measure the windows width or column number.
Especially...
Before starting the script "tput col" does show the correct amount of columns,
but in the script it changes at the point of the first redirect. And after exiting
the script "tput col" shoes the...
Why is the "tput col" number changing while running bash script in terminal emulator?
I seem to have run into new situation and I'm hoping someone can explain this to me please.
I know it can...
I have verified the code in all VM's and it works properly. :D
Thanks.
I am still puzzled about why it worked on one system but not on an other, however the following modification seems to have solved the issue.
if ! [ "$(grep -x deb\...
Upon further trial and error I found that it's not the error trap that causes the the script to exit but the "set -e" command.
I noticed that if I comment out the "set -e" command the above code...
An additional thought would be, the application of a different method to accomplish the same thing.
I mean to add the partner repository. I don't know how the syntax of different bash versions has...
Well I'm testing the script by running it like this:
sudo bash MyScript.sh, that is when I wish it to have root previleges, otherwhise just bash MyScript.sh.
The script is written to respond...
Basically, all I wish to accomplish is to check if the canonical partner repository in not present and in that case to remove the # form the "# deb".
Greetings,
I've got a (for me) unusual problem, and I'm hoping someone kind enough could offer some clarification.
I have got some bash code that works fine under
XUbuntu 14.04 (Core i7 + 8gb...
Just wanted to say thanks. It worked very nicely. I consider this matter solved and closed. Thanks again.
That sounds great, thanks. As soon as I have a moment I'll run a test and try to understand it better, because the test command is new to me.
I just thought about using your solution as a condition towards $2 being the '>' or a pattern including '>' and the delimiter '/', when entering something like: "> $HOME/MySpecs.txt". That way I can...
This code is actually part of the script I was asking about on Thread 2220629. I am actually calling up the specs with a parameter to begin with, but it's still a great idea.
bash...
It seems remarkably smart and ease. As soon as I get around to try it I'll get back with the outcome.
Thanks a lot for the idea.
I am writing a script that shows some system specs.
Since the specs list is longer then a screen I am running
it through '| less -R'. A short version of the code looks
like this:
...