/**************************************************************************** * Copyright (C) 2003, Web Sailor Production, All Rights Reserved. * * MODULE NAME : perlproxy.c * DATE CREATED : 15Feb03 * * DESCRIPTION: * * HISTORY: * Date Initial Comment * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * 15Feb03 sailor Initial Creation. * This program converts the cygwin path to dos * path and invoke the perl program. * This is to solve the problem where bash shell * cannot execute Activestate perl. * % gcc -mno-cygwin perlproxy.c -o perl.exe * ****************************************************************************/ #include #include int main(int argc, char** argv) { char buf[1024]; char command[1024]; char *ptr; FILE *fp; int ix; int iy; int iz; int status; strcpy(command,"c:\\programs\\perl\\bin\\perl"); for(ix=1; ix