Redirect "screen" command window to file
Hi,
I'm running "screen ./script.sh" which has output messages that I can see only if the screen didn't terminate. Once it's terminated, all the output is gone somewhere (I guess). How can I redirect or copy/paste all the screen window to a file? I've tried the regular redirection '>', no use. The only thing I found in screen command is the Ctrl+a [ which stops the window from scrolling and then I can copy the parts I want, but this is no use if I logged out of the window and missed the part I want. Any ideas? Thank you Savanna |
@ Reply
Hi savanna3000,
Could you please paste the contents of the script so that we can understand what exactly this script does. Please paste the output of the following command: Code:
cat /script.sh |
Quote:
Have you tried using redirection in the bash shell? Example: "screen ./script.sh > filename 2>&1" would send both normal and error messages to 'filename'. Tom |
All times are GMT -5. The time now is 01:35 AM. |