rkarivuraj / coderev

Automatically exported from code.google.com/p/coderev
GNU General Public License v2.0
0 stars 0 forks source link

coderev, run from at job - /dev/tty: No such device or address #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Run from a script that is run from an "at" job:
   coderev.sh -w80 -y \
   -m"text" -o "${LOCAL_WEB_DIR}" < ./diffs.txt > ${CODEREV_LOG}

What is the expected output? What do you see instead?

Expected: a clean run.

Got:
/usr/local/bin/coderev.sh: line 258: /dev/tty: No such device or address

What version of the product are you using? On what operating system?

coderev.sh 33 2009-10-12 03:00:51Z
OS: Redhat FC14

(it appears that svn rev #40 will have the same issue, based upon a quick 
review of the script)

Please provide any additional information below.

Thanks for providing this useful tool.

Original issue reported on code.google.com by gary.funck on 12 Jul 2011 at 5:58

GoogleCodeExporter commented 9 years ago
Run from at or cron job will not give it a tty so this will happen. I shall 
refine the logic as it does not really need tty since "-m" provided.

Workaround: use with gnu screen.
Example   : screen -d -m coderev.sh -w80 -y -m"text" -o "${LOCAL_WEB_DIR}" < 
./diffs.txt > ${CODEREV_LOG}

Original comment by matt...@gmail.com on 12 Jul 2011 at 7:42

GoogleCodeExporter commented 9 years ago
This tool is moved to github, this issue is fixed there.

https://github.com/ymattw/coderev/commit/eaa23b1745cfa1c6336626450119e12cc0845fd
f

Original comment by matt...@gmail.com on 12 Jan 2013 at 2:07