mineiro has asked for the wisdom of the Perl Monks concerning the following question:

I'm runing PERL in Windows 2000 Server env. My PERL app it was working perfect suddenly the application did not finish. Iīm put it running under debug mode and could see that the PERL stopped when tried to execute a print command. I changed sample print to print STDOUT put the error persisted, then put a comment and all prints and the sprintf command stopped. Looks like crazy but I donīt know what I can do.
Note: During the app running I could to observe that system messages stopped also. For example, my app execute the system command copy, normally the system respond "1 file copied", it also disappeared.
I thank an aid.
############# News ##################
Today I have more informations about my problem.
My PERL app is called from another app named HP SERVICE DESK (in JAVA).
The news are, when I run my PERL app through the DOS COMMAND LINE, it is working fine (PRINT and SPRINTF command work), but when my app is called from HP SERVICE DESK, print and sprintf stop.
I created a sample DOS BAT app, inside I codified only a ECHO HELLO WORD and a DIR command, amazingly, when I run the BAT from DOS COMMAND LINE the ECHO and result of DIR command showed, but the same way, when I forced the HP SERVICE DESK to call these BAT automatically, the ECHO and DIR didnīt show.
So my friends, I see my situation is quite focused, I donīt know if anybody will be able to help me, BUT GIVE A GOOD TRY PLEASE!
IMPORTANT: The regular Windows solutions have all been tried, that means we reinstalled Windows 2000 Server, reinstalled PERL, reinstalled HP SERVICE DESK.
VERY IMPORTANT2: This PERL app worked quite well for two months, believe it or not!
  • Comment on My print and sprintf functions are stopped

Replies are listed 'Best First'.
Re: My print and sprintf functions are stopped
by tachyon (Chancellor) on Sep 30, 2004 at 03:32 UTC

    Reboot.....the problem will probably be gone. With Win2k wierdness it is almost always a good idea to reboot the box before investigating.

    If not hope it is a Perl problem, not Win2k. Scan for viruses with latest definitions if you have not already.

    If system commands are working at a cmd.exe prompt blame Perl, remove Perl, reinstall Perl.

    If it looks like a Win2k issue because stuff like 1 file copied has gone try reapplying the latest service pack to fix any corrupt system files. Make backups first.

      Dear tachyon, thank you very much for your aid. I put more information in order to clarify my problem. I still need your help!
Re: My print and sprintf functions are stopped
by tachyon (Chancellor) on Oct 01, 2004 at 00:15 UTC

    Given that you say it worked, but now does not, and that you have tried a full reinstall and it still does not work you go back to the usual question *what changed*. You have almost certainly added something that is causing this issue, either a Win2k SP or Hotfix or an update to HP Service Desk.

    The fact that a simple .bat file executing shell commands does not work either really isolates it in the Java VM or HPSD software. I suppose there is a 1% chance it could be hardware so if a machine is available I would set up W2kS, Perl, and HPSD on another box an see if the issue is gone as a sanity check.

    cheers

    tachyon

Re: My print and sprintf functions are stopped
by TedPride (Priest) on Sep 29, 2004 at 23:13 UTC
    Have you tried testing all output methods by themselves to see if the problem is there or in the rest of your program? If not, go ahead and do that. It might also be good to give us the chunk of code leading up to the problem.
      Dear TedPride, thank you very much for your aid. I put more information in order to clarify my problem. I still need your help!