
NiaCo
Novice
Nov 27, 2013, 1:03 PM
Post #9 of 32
(16927 views)
|
Re: [FishMonger] ASM Reclamation Utility (ASRU)
[In reply to]
|
Can't Post
|
|
Hey FishMonger, I appreciate your willingness for helping me. the "zerofill" file does not have any extension such as ".pl" As I said the main file is "ASRU.pl" that I run it in the Visual studio's command line using the follwing command: "perl ASRU.pl MyDiskGroupName" Then it shows the progress, but at the middle of running it needs to call "zerofill" (NOT zerofill.pl) it will ask me that specify where the "zerofill" is located because of these lines of code: if( -e "$ENV{'PWD'}/zerofill") { $script = "$ENV{'PWD'}"; } else { print "Enter the path for the zerofill script: "; then it will take it: $script = <STDIN>; chomp($script); and then it will tell me that the file which I am indicating is not an executable script because of this: if(! -x $script) { print "\n $script is not executable\n"; return; } whereas, if everything was fine it was not supposed to ask anything or throw me this error, but also it is supposed to execute the "zerofill" (and other files) to accomplish the job automatically. I am not that much into programing or writing scripts, as my background is in storage, cloud computing, and network. So I can be seen as a novice in this area. But my problem needs to be solved by running this script. I read the script and I thought that it should be because of permission issues as I investigated in the switch in the script. "x" is used with "chmod" for making a file executable as I understood, and when according to my system's environment and configuration the script's trend is navigated to this switch it is set to warn me that the "zerofill" file is not executable. I tried to make the attribute of this file "executable" (or something like full permission for everyone). But very soon, I got to know that with windows permission can not modify the permission which is given to a file in a Linux or UNIX. Even I planned to change the permission of this file in Linux, and then bring it back to windows, but again I understood that you can do this, but again when the file come back to windows it will loos the execute permission permission as it could not keep execute permission when I took these scripts for the first time (though I did not try this way, and I just read about it). That's why I installed Cygwin to provide a Linux command line environment to be able to give the required permission (not for running the script, although after that I tried to use it to run the script inside, but bunch of errors appeared and I just forgot this idea). I don't know how silly that sound to you, but that is my challenge and I've to find a way for that. Then I tried this one: "chmod ugoa+rwx zerofill" and so many other chmod, but whenever I used "ls -l zerofill", I could see that no change is applied to the file. I don't know what to do and I don't really know whether the problem is with permission or not. I'll be happy if you or anyone else share their idea about this with me. Again I want to emphasize that the "zerofill" does not have any extension like ".pl", and my question is that, can it be because of that or not. Regards.
|