[LCP] C programming

Bill Rausch brausch at owt.com
Tue Jan 21 03:40:21 EST 2014


Read the man page on "system()". You can call any script that way. For 
example:

int i = system( "cat myfilename | mailx -s 'my subject' recip at mail.com");
if( i != 0 ) ... //handle the error




On 1/20/14, 4:59 AM, PV Juliet wrote:
> Hi All,
>   I am  writing some information to fie using fprintf .how can i send 
> this as alert to some users in mail? Can i do it from c program ? or 
> is if possible to use some scripting to do this ? which scripting will 
> be good?
>
> Thanks and Regards
> Juliet
>
>
> _______________________________________________
> This is the Linux C Programming List
> :  http://lists.linux.org.au/listinfo/linuxcprogramming List

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/linuxcprogramming/attachments/20140120/29890ba3/attachment.htm 


More information about the linuxCprogramming mailing list