You're viewing a comment by Dhval and its responses.

Dhval Permalink
January 09, 2015, 11:24

su - user -c 'sh -s' <<EOF
#!/bin/bash
echo "Testing"
DATA="$(who)"

EOF

when i run above script it says "stdin is not a tty" how do i solve this IN MY SCRIPT?

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "floppy_329": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.