#37 easy way to log output and user selections

open
wishlist (20)
5
2010-05-07
2010-05-05
No

Hi

I would like an easy way to log output and user selections to a file for bugreporting. It would save much time and ensure that the messages a correct.

Greetings

Rechner-Tester

Discussion

  • Steven Shiau

    Steven Shiau - 2010-05-07
    • assigned_to: nobody --> steven_shiau
     
  • Rechner-Tester

    Rechner-Tester - 2010-05-07

    Yes, I know about the green command. But If a error occure after this point the command is gone. Anyway I still have to write the command and the error messages down by hand.
    Do you know about tee?
    <http://ss64.com/bash/tee.html>
    <http://www.linuxquestions.org/questions/programming-9/shell-scripting-print-output-to-logfile-error-to-logfile-and-screen-338154/>

    I have know idea how tee works with TUI, but maybe text only output would be okay for debugging.

    If you already considered tee excuse me :-)

    Greetings

    Rechner-Tester

     
  • Rechner-Tester

    Rechner-Tester - 2010-05-07

    Yes, I know about the green command. But If an error occure after this point the command is gone. Anyway I still have to write the command and the error messages down by hand.
    Do you know about tee?
    <http://ss64.com/bash/tee.html>
    <http://www.linuxquestions.org/questions/programming-9/shell-scripting-print-output-to-logfile-error-to-logfile-and-screen-338154/>

    I have no idea how tee works with TUI, but maybe text only output would be okay for debugging.

    If you already considered tee excuse me :-)

    Greetings

    Rechner-Tester

     
  • Darren Chambers

    Darren Chambers - 2010-06-22

    Why not create a directory under /home/partimag & create a log there ?
    Initial logs could be kept under /tmp & then copied to the share once it becomes available.

    I created a custom script that does this. First I made a few small changes to prep-ocsroot so that it can automatically mount /home/partimag by accepting exported smb user/password variables - which the custom script reads from /proc/cmdline.

    I also enabled the script to send messages via wget to a web server.

     
  • Steven Shiau

    Steven Shiau - 2010-06-24

    That's true. We have to rewrite a lot of the programs to output the messages to the screen and the log file.
    BTW, if you can share your programs, maybe we can use part of them.
    Thanks.

    Steven.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks