You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just discovered clean_out_error.sh. It does what is expected, but the following could be improved at some point:
[probably easy!] change things so that users get an executable file when they pull it from github
[jypmce@ciclad-ng C-ESM-EP]$ ./clean_out_error.sh PMIP4_6kf3_ref
-bash: ./clean_out_error.sh: Permission denied
[jypmce@ciclad-ng C-ESM-EP]$ chmod +x clean_out_error.sh
[jypmce@ciclad-ng C-ESM-EP]$ ./clean_out_error.sh PMIP4_6kf3_ref
List of files for the cleanup =
[...]
[easy!] document the fact that you can optionally specify a comparison directory when cleaning files (very useful in my case, where I copy/clone existing comparisons) at the end of the C ESM EP in a nutshell page bash clean_out_error.sh [optional_comparison_directory]
or, if you have made the file executable ./clean_out_error.sh [optional_comparison_directory]
[requires some work for later!] you get errors when there are no files to clean, and the script asks you if you want to erase files even if there is nothing to erase. This can probably be dealt with later, possibly by using a python script rather than a shell script, but it can wait. Note that there is a nice way to implement the Linux find command in Python, by using os.path.walk (I must have an example usage somewhere, because it is not very intutive)
[jypmce@ciclad-ng C-ESM-EP]$ ./clean_out_error.sh PMIP4_6kf3_ref
List of files for the cleanup =
ls: cannot access PMIP4_6kf3_ref/*.log: No such file or directory
[...]
ls: cannot access PMIP4_6kf3_ref/*/ferret*.jnl*: No such file or directory
Do you want to remove those files? (y/n - o/n - yes/no - oui/non) =>
Your answer : no
We stop here
The text was updated successfully, but these errors were encountered:
I have just discovered
clean_out_error.sh
. It does what is expected, but the following could be improved at some point:bash clean_out_error.sh [optional_comparison_directory]
or, if you have made the file executable
./clean_out_error.sh [optional_comparison_directory]
find
command in Python, by usingos.path.walk
(I must have an example usage somewhere, because it is not very intutive)The text was updated successfully, but these errors were encountered: