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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -