From: Rob Lucas Date: 2007-11-28T19:44:34+09:00 Subject: Equivalent for unix "read" command in rake tasks? Hi, Perhaps I'm missing something, but I can't find information anywhere about adding any level of interaction with the user into rake tasks. What I want really is something equivalent to the unix/ linux command "read" so that the task can vary conditionally depending on responses from the user. The point would be to replace various shell scripts that I have with a single, more elegant Rakefile. Simply inserting the shell command... sh "read whatever_variable_name" ... into the Rakefile doesn't work- I get the following error: Command failed with status (127): [read whatever_variable_name...] I guess this is because Rake doesn't respond to the results of shell commands, but only executes them "blind". Any suggestions would be much appreciated. Thanks, Rob. -- Posted via http://www.ruby-forum.com/.