The cgi process (doing: system("perl ResetCCN.pl");) is running under the same logon account (and running the exact same code: ResetCCN.pl) as when ResetCCN.pl is run directly from a command-line window.
Can it be that a system/exec from a program initiated from a CGI-program (ie the IIS webserver) will pr. default start the process in the background? And how might that be tweaked to run the program with a proper UI ?