http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html
There are 3 file descriptors, stdin, stdout and stderr (std=standard).
Basically you can:
- redirect stdout to a file
- redirect stderr to a file
- redirect stdout to a stderr
- redirect stderr to a stdout
- redirect stderr and stdout to a file
- redirect stderr and stdout to stdout
- redirect stderr and stdout to stderr
I  stderr to a file. 
scrapy crawl XXX 2> nohup.txt
or 
scrapy crawl XXX 2>> nohup.txt
">>"  means append. 
 
 
 
No comments:
Post a Comment