I have a Azure VM, and my personal computer is MAC OS
Predict.py
import os
os.chdir("PATH")
os.chdir("tensor")
os.system(". bin/activate")
os.system("tensorflow/bazel-bin/tensorflow/examples/label_image/label_image --input_layer=Mul --output_layer=final_result --labels=PATH --image=PATH --graph=PATH")
at MAC (Personal Com.)
python3 Predict.py make &> PATH
result
Not Commandline just write text file
but, Ubuntu(= Azure VM)
python3 Predict.py make &> PATH
result
python3 result in command line
I want to get same result. What should I do? plz Help me.
bash
where&> file
is a synonym for> file 2>&1
(i.e. redirected both stdout and stderr to file) whereas you have set your shell tosh
(ordash
) on Ubuntu where&> file
will result in backgrounding the process and writing nothing tofile