linux - save output to file instead of screen for nested script -


i have script calls several functions. these functions contain print commands (to screen). how can save output of script file without printing screen , without changing code of functions.

best, wouter

you can use script command stores on file written screen:

script -c "myscript arguments ..." /tmp/myscript.log 

that @ least allow output /dev/tty called functions, however, there no simple way prevent output go on screen too.


Comments

Popular posts from this blog

python 3 IndexError: list index out of range -

android - How to save instance state of selected radiobutton on menu -

IF statement in MySQL trigger -