[Top][All Lists]

[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 '':

#!/usr/bin/env bash
cat > xxx.txt

2. Running command as:

$ ./ <<< aaa

Get the error:

cat: -: Stale file handle

3. Running like below works:

echo "aaa" | ./

Hope you guys can give me some clues about the error. Thanks.

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]