Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: -bash: log/training_log: Is a directory #3

Open
Ethanscuter opened this issue Jun 4, 2018 · 2 comments
Open

Error: -bash: log/training_log: Is a directory #3

Ethanscuter opened this issue Jun 4, 2018 · 2 comments

Comments

@Ethanscuter
Copy link

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.

@atulkum
Copy link
Owner

atulkum commented Jun 4, 2018

>& 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.

@dajuzi123
Copy link

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文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants