bash - can not redirect output in a docker -


i try run series of scripts docker, of course in dockerfile specify entry script.

in scripts, use below codes redirect output dir below:

redirect_output() {     exec  > $log/stdout     exec 2> $log/stderr } 

the $log has declared below:

export log=/tmp/log 

but when run redirect_output, abort no error, use same image , run hand:

+ redirect_output + exec + exec 

i not know how fix it, wried.


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -