tcsh hang while executing scripts which use pipes with backticks
Sunadham, Ajay Kumar
sajay@ptc.com
Mon Aug 27 15:01:00 GMT 2012
We are facing a similar problem as mentioned in the thread below.
http://cygwin.com/ml/cygwin/2012-07/msg00014.html
To reproduce the issue create 2 csh files in the same directory.
First file dotest.csh:
#!/bin/csh -f
set num=20
set par=10
set i=0
while ( $i < $par )
./checkspace.csh $num &
@ i++
end
wait
Second file checkspace.csh:
#!/bin/csh -f
set num=$1
set j=0
while ( $j < $num )
set fspace=`/usr/bin/df -P -k . | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
set free_space=`echo $fspace | tail -1 | awk '{print $4}' | tail -1`
echo "$j $free_space"
@ j++
end
When you run dotest.csh from a tcsh window, it will hang. It would be great if this issue can be fixed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 32419 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120827/28aaa03e/attachment.obj>
-------------- next part --------------
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list