Skip to main content
13 events
when toggle format what by license comment
Jul 25, 2017 at 9:25 comment added Stéphane Chazelas script doesn't save the exit code, but you could add that exit code to your prompt (possibly only when non-zero, which is a very sensible thing to do in any case), so it would then be saved as part of the output.
Jul 25, 2017 at 7:31 history edited Guss CC BY-SA 3.0
edited title
Jul 25, 2017 at 7:31 answer added Guss timeline score: 0
Jul 25, 2017 at 6:35 comment added Ikaso Another downside of script is that if the user types TAB to autocomplete it puts special characters in the output file which I will have to clean up later.
Jul 25, 2017 at 6:04 comment added cas simplest method: type echo $? or similar after each command in script.
Jul 25, 2017 at 5:55 review Close votes
Jul 25, 2017 at 9:32
Jul 25, 2017 at 5:48 comment added Ikaso I need help in understanding how to combine the 3 requirements in 1 script.
Jul 25, 2017 at 5:46 history edited Ikaso CC BY-SA 3.0
added clarification
Jul 25, 2017 at 5:46 comment added heemayl Yeah, thats correct but didn't you need help for third point only now?
Jul 25, 2017 at 5:45 review First posts
Jul 25, 2017 at 6:38
Jul 25, 2017 at 5:44 comment added Ikaso script does not save the exit code of the command IIRC.
Jul 25, 2017 at 5:40 comment added heemayl Possible duplicate of Save all the terminal output to a file
Jul 25, 2017 at 5:39 history asked Ikaso CC BY-SA 3.0