File: [local] / OpenXM / src / Macaulay2 / m2 / ox_m2.c (download)
Revision 1.1, Mon Oct 9 12:04:01 2000 UTC (23 years, 9 months ago) by takayama
Branch: MAIN
CVS Tags: maekawa-ipv6
I forgot to put ox_m2.c, which is a short program to bind
the file descriptor 0 to 3 and 1 to 4.
|
/* $OpenXM: OpenXM/src/Macaulay2/m2/ox_m2.c,v 1.1 2000/10/09 12:04:01 takayama Exp $ */
/* original code from */
/* $Id: ox_m2.c,v 1.2 2000/09/20 17:16:01 mike Exp $ */
#include <stdio.h>
#include <unistd.h>
#define OXDIR "/home/mike/M2stuff/takayama/rat/"
int main(int argc, char **argv)
{
dup2(3,0);
dup2(4,1);
/*execl("/usr/local/bin/M2", "M2", "-n", "oxcommon.m2",
"oxserver.m2", "-e\"OXserver()\"", NULL);
*/
execl("/usr/local/bin/M2", "M2", "-n", "-silent", OXDIR "oxcommon.m2",
OXDIR "oxserver.m2", NULL);
return 0;
}