home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!sun-barr!ames!pacbell.com!iggy.GW.Vitalink.COM!nocsun.NOC.Vitalink.COM!wetware!ditka!eagercon!eagercon!eager
- From: eager@eagercon.com (Michael J. Eager)
- Subject: Re: Mail Call
- Message-ID: <1992Nov19.170927.13995@eagercon.com>
- Sender: root@eagercon.com (Operator)
- Reply-To: eager@eagercon.com
- Organization: Eager Consulting
- References: <1992Nov18.075408.722@ualr.edu>
- Date: Thu, 19 Nov 1992 17:09:27 GMT
- Lines: 22
-
- In article 722@ualr.edu, lindstrom@acs.harding.edu () writes:
- >Greetings-
- > Can someone tell me how to get a C program to make a system
- >call (SunOS Unix, using the bundled compiler). I would like
- >to have a program send me a mail message every time it is
- >called (it is living on another, less secure machine.. I want to
- >keep track of its usage).
-
-
- Try putting the following in your code:
-
- system("mail myself@mymachine");
- or maybe
- system("mail myself@mymachine < /etc/hostname.xx0");
-
-
-
- ---
- Michael J. Eager Michael.Eager@eagercon.com
- Eager Consulting (415) 325-8077
- 1960 Park Boulevard, Palo Alto, CA 94306-1141
-
-