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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -