Search:

Type: Posts; User: octius4u; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.06 seconds.

  1. Replies
    3
    Views
    3,646

    [SOLVED] Re: Teamviewer settings not saved

    This worked for my Ubuntu 14.04 x64 Desktop with Teamviewer 9 Multiarch. Thanks for the solution.
  2. Replies
    10
    Views
    2,784

    [SOLVED] Re: Filter color codes from LOG File redirect

    :guitar: Awesome! :guitar: It works great. Goal achieved! Thanks a whole lot!
  3. Replies
    10
    Views
    2,784

    [SOLVED] Re: Filter color codes from LOG File redirect

    Great! Thanks. I'll test it right away.
  4. Replies
    10
    Views
    2,784

    [SOLVED] Re: Filter color codes from LOG File redirect

    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...
  5. Replies
    10
    Views
    2,784

    [SOLVED] Re: Filter color codes from LOG File redirect

    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...
  6. Replies
    10
    Views
    2,784

    [SOLVED] Re: Filter color codes from LOG File redirect

    ofnuts thanks for the advice, but doesn't work.

    My original color code:


    if [ -t 1 ]; then ## if stdout is a terminal then COLORS...
  7. Replies
    10
    Views
    2,784

    [SOLVED] Re: Filter color codes from LOG File redirect

    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...
  8. Replies
    10
    Views
    2,784

    [SOLVED] Filter color codes from LOG File redirect

    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...
  9. Replies
    6
    Views
    740

    [SOLVED] Re: 'tput col' number changes in bash script

    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...
  10. Replies
    6
    Views
    740

    [SOLVED] Re: 'tput col' number changes in bash script

    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...
  11. Replies
    6
    Views
    740

    [SOLVED] Re: 'tput col' number changes in bash script

    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...
  12. Replies
    6
    Views
    740

    [SOLVED] 'tput col' number changes in bash script

    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...
  13. [SOLVED] Re: Bash Code works properly in XUbuntu but not [K/L]Ubuntu (VM)

    I have verified the code in all VM's and it works properly. :D
    Thanks.
  14. [SOLVED] Re: Bash Code works properly in XUbuntu but not [K/L]Ubuntu (VM)

    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\...
  15. [SOLVED] Re: Bash Code works properly in XUbuntu but not [K/L]Ubuntu (VM)

    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...
  16. [SOLVED] Re: Bash Code works properly in XUbuntu but not [K/L]Ubuntu (VM)

    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...
  17. [SOLVED] Re: Bash Code works properly in XUbuntu but not [K/L]Ubuntu (VM)

    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...
  18. [SOLVED] Re: Bash Code works properly in XUbuntu but not [K/L]Ubuntu (VM)

    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".
  19. [SOLVED] Bash Code works properly in XUbuntu but not [K/L]Ubuntu (VM)

    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...
  20. [SOLVED] Re: Filtering color codes from echo redirect to text file.

    Just wanted to say thanks. It worked very nicely. I consider this matter solved and closed. Thanks again.
  21. [SOLVED] Re: Filtering color codes from echo redirect to text file.

    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.
  22. [SOLVED] Re: Filtering color codes from echo redirect to text file.

    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...
  23. [SOLVED] Re: Filtering color codes from echo redirect to text file.

    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...
  24. [SOLVED] Re: Filtering color codes from echo redirect to text file.

    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.
  25. [SOLVED] Filtering color codes from echo redirect to text file.

    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:

    ...
Results 1 to 25 of 40
Page 1 of 2 1 2