LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   bash shell scripting help! (https://www.linuxquestions.org/questions/programming-9/bash-shell-scripting-help-804533/)

computergeek7 04-27-2010 10:21 AM

bash shell scripting help!
 
I created a name pipe (file) in the my /group directory called chat.
I then have to write a script to read from the named pipe and save data into a file called chat.log until the words End of File are passed to the program.

What does the line you enter in the script using "End of File" suppose to look like?

#!/bin/bash

end=End of File

while read chat
read "$end" ???
do
chat >> chat.log
done

Thanks for the help!

grail 04-27-2010 10:32 AM

Putting the word "bash" at the fron of the exact same question when people are already trying to help you is really poor form :(
http://www.linuxquestions.org/questi...g-help-803549/

crabboy 04-27-2010 10:35 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 11:29 AM.