Shell question

Pete pete at mollysrevenge.com
Sun Jan 8 20:52:26 EST 2012


I suspect this is more of a Unix question than LC but here goes.

I'm issuing a shell command to run a program and redirect its stdin to a
file, so something like

put shell(myprog < /Users/Pete/myfile.txt) into myResult

The Stdin file contains 3 or 4 lines that are valid input to myProg, one of
which writes some output to another file.

When I execute the shell command from LC or type the command into Terminal,
the output file does not created, but I get no errors reported.  If I run
myProg from Terminal and type the commands individually, the output file is
created correctly.

I've checked the path to the stdin file over and over and I'm sure it's
correct.  The stdin file was created using TesxtEdit, read in to myLC
script, had a couple of things replaced in it and written out again from LC

I'm suspecting carriage return issues?


-- 
Pete
Molly's Revenge <http://www.mollysrevenge.com>



More information about the use-livecode mailing list