#include "stdio.h" #include "astring.h" #include "string.h" #include "stdlib.h" void main(int argc, char *argv[]) { char filein[100], line[80], fileout[80], *result; char command[200]; FILE *fpout; if (argc < 2) { printf("Enter filename to convert : "); gets(filein); } else { strcpy(filein, argv[1]); } fpout = fopen("/export/data1/ganglu/mags/tempfiles/norbtoa.temp.input","w"); fprintf(fpout,"%s\n",filein); fprintf(fpout,"tempfi.new\n"); fclose(fpout); printf("norbtoa %s\n",filein); strcpy(command,"norbtoa "); strcat(command,"< "); strcat(command,"/export/data1/ganglu/mags/tempfiles/norbtoa.temp.input"); system(command); strcpy(command,"/bin/rm "); strcat(command,"/export/data1/ganglu/mags/tempfiles/norbtoa.temp.input"); system(command); strcpy(command,"pnor tempfi.new"); system(command); strcpy(command,"/bin/rm tempfi.*"); system(command); }