in reply to system() in Windows 2008

Are you running your Perl script from within the same cmd.exe that you are running the commands in? Or are you doing something different such as double-clicking on an icon (or even just running it in a different cmd.exe)? If you are doing something different, then are you running the cmd.exe that it works in as adminsitrator or with some other form of elevated permissions? Have you checked the Event Logs? You might also want to turn security auditing on to see if anything shows up in the security Event Logs.

Elda Taluta; Sarks Sark; Ark Arks

Replies are listed 'Best First'.
Re^2: system() in Windows 2008
by AnjuShan (Initiate) on Jun 09, 2010 at 05:47 UTC
    Yes, I am using the same cmd.exe and it is running in administrative mode only. And I suspected the security settings and for testing I disabled firewall settings in order to allow nfs mount. I didnt check the event logs. Will check it.
      I think ikegami and I were both thinking more of local security policies (e.g. maybe perl.exe is being restricted in some way). If it was the firewall then wouldn't they wither both work or both fail?

      Elda Taluta; Sarks Sark; Ark Arks