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
Post a Comment