pointer_summarizer
pointer_summarizer copied to clipboard
Error: -bash: log/training_log: Is a directory
In the start_train.sh, there is python training_ptr_gen/train.py >& log/training_log &
When I bash run start_train.sh, the terminal shows -bash: log/training_log: Is a directory.
So, I want to ask what's the meaning of >& log/training_log &
In your config.py. the log directory should exist in ptr_nw/log.
Thx.
>& log/training_log
simply redirect the output to the file 'log/training_log'
&
at the end is for running the program in background.
You might have training_log
directory created in log
directory. You can simply change >& log/training_log &
to >& log/training_log.txt &
and it will work if there is no other errors.
export PYTHONPATH=pwd
python training_ptr_gen/train.py >& ../log/training_log.txt &
我将train.sh文件中修改成这样后,运行 sh start_train.sh 报错:start_train.sh: 3: start_train.sh: Syntax error: Bad fd number 是什么出问题了吗? 我是自己在log目录下创建了一个txt文件