OK, I got this working. In order to get the correct linefeed characters for Unix, I had to open the output file in binary mode. Once I did that, everything worked fine. Pete
On Sun, Jan 8, 2012 at 11:00 PM, Pete <p...@mollysrevenge.com> wrote: > The command is in a variable, eg put shell(myCommand) into myResult. I'm > thinking it's something other than that though since even if I type the > command directly into Terminal with the stdin redirection, no output is > produced. > > sqlite3 has a .echo command which prints all the commands to stdin. If I > put that into the stdin file, what gets displayed is portions of each > command with no line breaks between them. It sure feels like some sort of > carriage return problem! > > Pete > > On Sun, Jan 8, 2012 at 7:31 PM, Mark Wieder <mwie...@ahsoftware.net>wrote: > >> Pete- >> >> Sunday, January 8, 2012, 6:54:44 PM, you wrote: >> >> > Those commands all work fine when typed into the program by me but >> nothing >> > is written to the output file if I redirect stdin to a file that >> contains >> > them. >> >> Ah. In that case, are you putting quotes around the shell command? >> Works here for me. >> >> put shell("myprog < /Users/Pete/myfile.txt") into myResult >> >> -- >> -Mark Wieder >> mwie...@ahsoftware.net >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > > > -- > Pete > Molly's Revenge <http://www.mollysrevenge.com> > > > -- Pete Molly's Revenge <http://www.mollysrevenge.com> _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode