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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's not easy to have an "easy" way to log the console mode. However, for the options which users have checked will be shown in the green command as this:
http://clonezilla.org/clonezilla-live/doc/01_Save_disk_image/images/ocs-10-img-save-command-prompt.png
Steven.
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
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
Did you notice the line after the green command?
http://clonezilla.org/clonezilla-live/doc/01_Save_disk_image/images/ocs-10-img-save-command-prompt.png
Actually the file under /tmp is written by tee.
Steven.
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.
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.