On Thu, Apr 18, 2002 at 11:02:12AM +1200, Tim Nicholas wrote: > I think he is saying that it should be somthing more like > system("mail [EMAIL PROTECTED] < /etc/passwd"); > > But since i dont really know c, you might not be able to use '<' in > system calls... it seems likey though. The previous version would > try to email user /etc/passwd.
For the record, system(3)'s manpage states: system() executes a command specified in string by calling /bin/sh -c string The string you pass to system() is given as a single argument to the shell, so you can do anything and everything. I think we all get the point :) -- #define X(x,y) x##y Peter Cordes ; e-mail: X([EMAIL PROTECTED] , ns.ca) "The gods confound the man who first found out how to distinguish the hours! Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BCE -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]