I checked the faq and searched the archives, but haven't found a clear answer. - and I'm very new at this so type slowly when you answer....
In a Linux OS using gcc
I've written a function that accepts arguments passed from keyboard input. It outputs correctly to the screen right now, but I'd like to redirect the output of the FUNCTION to a file. (Ultimately I'd like to inject it into smtp - but for now if I can get it to a file I can get it into smtp via a perl script)
I've tried :
thefunction > newfile
which I didn'nt think would work - and it doesn't
any clues would be greatly appreciated,