The 3 'x's in the "-rwxrwxrwx" string say that your file is executable by the file owner (first x), the members of the owner's group (second x), and the entire world (third x).

So your problem does not have to do with file permissions, but more probably by Windows not being able to recognize that it should launch the Perl interpreter when it sees your file in a command script. Maybe changing the file name to zerofill.pl and changing the command line launching it would be sufficient. Or changing the command line launching zerofill to "perl zerofill".

There is no real difference in the two ways to set the permissions, the "777" version is just faster to type.

And what is the difference between giving permission by numbers and giving by words?(ugoa+rwx & 777)

The difference is that not all systems support all options for the chmod command, but all systems support the octal-mode setting. The octal syntax is cleaner, shorter and works the same on all systems.

Going back to an earlier post you stated:

Quote

I run it in the Visual studio's command line using the follwing command: "perl ASRU.pl MyDiskGroupName"

Are you still running it that way, or are you running it under the cygwin environment (which is a bash shell)?

If you're not running it under cygwin, then trying to use the chmod command to make it executable is a big waste of time/effort.

If you're running the script from the Windows cmd prompt, then you can comment out the section of code that does the -x test (i.e., lines 590-594).

Let me repeat my previous warning. This script was written for Unix. FishMonger's suggestion will fix the current problem, but it is unlikely that this is the only problem you will encounter running it under windows. Good Luck, Bill

Now, I believe that you and FishMonger are right. Based on what I've explained from the beginning, that the hole story is about reclaiming an space which was used by Oracle in thin provisioning storage, after eliminating data, and tablespaces, considering that the only feasible solution is taking advantage of ASRU utility.

And again based on what is inside the "read me" file:

"This package contains three files other than the README namely ASRU, ASRU.pl and zerofill. All these files should be in same directory.

ASRU is a shell script wrapper for ASRU.pl. It calls ASRU.pl with appropriate arguements.

ASRU.pl has the code that does the necessary actions to reclaim the allocated but unused space. It calls the zerofill script with appropriate arguements appended.

zerofill script takes the power, name of the disks and ranges to be zeroed as arguements. It writes zeroes using the 'dd' command. This script can be customized."

Considering this fact that unfortunately I'm forced to use Windows as the OS for the Oracle database...

As the last question for now, do you guys want to tell me that there is no way out to run and execute these codes in Windows?

As the last question for now, do you guys want to tell me that there is no way out to run and execute these codes in Windows?

Is it what you are trying to conclude?

No, that's not what we're saying.

We're saying that you have 2 options if you want to us a Windows system.

1) Modify the script(s) so that they can run on Windows (i.e., make them platform independent).

2) Run the scripts as they are currently designed but run them under the cygwin bash environment.

You still may need to make some minor adjustments if you choose option 2, but not as many as would be needed if you choose option 1.

I have not looked at them in depth, but my initial analysis is that they are using some questionable coding practices and if I were in charge of implementing their use, I would rewrite them from scratch.

As the last question for now, do you guys want to tell me that there is no way out to run and execute these codes in Windows?

Is it what you are trying to conclude?

The short answer is probably yes, from your own description of what it does, this code is very very unlikely to run under Windows. At least not without significant changes to the code. And making these changes is probably fairly difficult.