[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-obsolete-packages] Pipe'ing with brackets and tee hangs
From: |
Frederic Leitenberger |
Subject: |
[bug-obsolete-packages] Pipe'ing with brackets and tee hangs |
Date: |
Mon, 16 Feb 2009 11:19:29 +0100 |
User-agent: |
Thunderbird 2.0.0.19 (Windows/20081209) |
Hello,
here is a script demonstrating the problem:
#!/bin/bash
echo "WORKING:"
echo "Start 1"
{
echo "Start 2"
sleep 100 &
echo "Done 2"
} > test.log
echo "Done 1"
echo
echo "NOT WORKING (hangs before leaving the '}'):"
echo "Start 3"
{
echo "Start 4"
sleep 100 &
echo "Done 4"
} | tee test.log # HANGS HERE UNTIL SLEEP FINISHES OR IS KILLED
echo "Done 3"
I tried several variations:
- nohup sleep 100 &
- sleep 100 & > /dev/null
- nohup sleep 100 & ; echo -e "\004" # EOT
Greetings Freddy;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-obsolete-packages] Pipe'ing with brackets and tee hangs,
Frederic Leitenberger <=