| | 1 | = Bash = |
| | 2 | The default version of bash on cypress is 4.1.2. To check the version you are using: |
| | 3 | |
| | 4 | {{{ |
| | 5 | [user@cypress2 ~]$ echo "${BASH_VERSION}" |
| | 6 | 4.1.2(1)-release |
| | 7 | }}} |
| | 8 | |
| | 9 | There are newer version of bash installed as modules on Cypress. |
| | 10 | {{{ |
| | 11 | [user@cypress2 bash]$ module av bash |
| | 12 | |
| | 13 | ---------------------------------------------------------------------------------- /share/apps/modulefiles ----------------------------------------------------------------------------------- |
| | 14 | bash/5.1.8 |
| | 15 | }}} |
| | 16 | |
| | 17 | To use this on the current command line session, |
| | 18 | {{{ |
| | 19 | [user@cypress2 bash]$ module load bash/5.1.8 |
| | 20 | [user@cypress2 bash]$ bash |
| | 21 | [user@cypress2 bash]$ echo "${BASH_VERSION}" |
| | 22 | 5.1.8(1)-release |
| | 23 | }}} |
| | 24 | |
| | 25 | To use this on batch script, |
| | 26 | {{{ |
| | 27 | #!/share/apps/bash/5.1.8/bin/bash |
| | 28 | #SBATCH --partition=defq # Partition |
| | 29 | #SBATCH --qos=normal # Quality of Service |
| | 30 | #SBATCH --job-name=test # Job Name |
| | 31 | #SBATCH --time=00:10:00 # WallTime |
| | 32 | #SBATCH --nodes=1 # Number of Nodes |
| | 33 | #SBATCH --ntasks-per-node=1 # Number of tasks (MPI presseces) |
| | 34 | #SBATCH --cpus-per-task=1 # Number of processors per task OpenMP threads() |
| | 35 | #SBATCH --gres=mic:0 # Number of Co-Processors |
| | 36 | |
| | 37 | date |
| | 38 | echo "${BASH_VERSION}" |
| | 39 | }}} |