Annotation of OpenXM/src/Macaulay2/m2/ox_m2.c, Revision 1.1
1.1 ! takayama 1: /* $OpenXM$ */
! 2: /* original code from */
! 3: /* $Id: ox_m2.c,v 1.2 2000/09/20 17:16:01 mike Exp $ */
! 4: #include <stdio.h>
! 5: #include <unistd.h>
! 6:
! 7: #define OXDIR "/home/mike/M2stuff/takayama/rat/"
! 8: int main(int argc, char **argv)
! 9: {
! 10: dup2(3,0);
! 11: dup2(4,1);
! 12: /*execl("/usr/local/bin/M2", "M2", "-n", "oxcommon.m2",
! 13: "oxserver.m2", "-e\"OXserver()\"", NULL);
! 14: */
! 15: execl("/usr/local/bin/M2", "M2", "-n", "-silent", OXDIR "oxcommon.m2",
! 16: OXDIR "oxserver.m2", NULL);
! 17: return 0;
! 18: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>