[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] Missing stdin in bash script.
From: |
Jin Li |
Subject: |
[Help-bash] Missing stdin in bash script. |
Date: |
Fri, 23 Oct 2015 17:58:57 -0500 |
Dear all,
I have one problem as below:
1. I have one script file, say 'test.sh':
#!/usr/bin/env bash
cat > xxx.txt
2. Running command as:
$ ./test.sh <<< aaa
Get the error:
cat: -: Stale file handle
3. Running like below works:
echo "aaa" | ./test.sh
Hope you guys can give me some clues about the error. Thanks.
Best regards,
Jin
- [Help-bash] Missing stdin in bash script.,
Jin Li <=