Skip to content
View script.sh
#!/bin/bash
## the next line selects the partition/queue
#SBATCH -p short1
## the next line selects the number of nodes
#SBATCH -N 1
## the next line selects the number of CPUs
#SBATCH -n 1
View script.sh
#!/bin/bash
## the next line selects the partition/queue
#SBATCH -p pool1
## the next line selects the number of nodes
#SBATCH -N 1
## the next line selects the number of CPUs
#SBATCH -n 1
View script.sh
#!/bin/bash
## the next line selects the partition/queue
#SBATCH -p pool1
## the next line selects the number of nodes
#SBATCH -N 1
## the next line selects the number of CPUs
#SBATCH -n 1
View script.sh
#!/bin/bash
## the next line selects the partition/queue
#SBATCH -p pool1
## the next line selects the number of nodes
#SBATCH -N 1
## the next line selects the number of CPUs
#SBATCH -n 1
View script.sh
# example_interactive-session0001.sh
#
# These are some of the options you can use when requesting an interactive session
# -p, --partition=partition --> partition requested (the current public partitions include short1 and interactive)
# -N, --nodes=N --> number of nodes on which to run (N = min[-max])
# --ntasks-per-node --> number of tasks per node
# --mem=MB --> minimum amount of real memory
# -c, --cpus-per-task=ncpus --> number of cpus required per task
# --pty --> run task zero in pseudo terminal
View script.sh
#this script extracts frames for all movies (.mov) in the current folder.
# one image per frame per second saved to disk
for MOVIE in *.mov
do
if [ -f "$MOVIE" ]; then
FILENAME="${MOVIE%.*}"
echo $FILENAME
if [ ! -d "$FILENAME" ]; then
mkdir "$FILENAME"
View script.sh
# These are some of the options you can use when requesting an interactive session
# -p, --partition=partition --> partition requested (the current public partitions include short1 and interactive)
# -N, --nodes=N --> number of nodes on which to run (N = min[-max])
# --ntasks-per-node --> number of tasks per node
# -c, --cpus-per-task=ncpus --> number of cpus required per task
# --pty --> run task zero in pseudo terminal
#request a session on short1
srun --partition=short1 --nodes=1 --cpus-per-task=1 --ntasks-per-node=1 --pty bash
View script.sh
for MOVIE in *.mov
do
if [ -f "$MOVIE" ]; then
FILENAME="${MOVIE%.*}"
echo $FILENAME
if [ ! -d "$FILENAME" ]; then
mkdir "$FILENAME"
fi
#extracts one frame per second. modify fps as needed
View script.sh
#!/bin/bash
# Generates a word cloud from Little Women by Louisa May Alcott
if [ ! -d little_women ]; then
mkdir little_women
fi
cd little_women
virtualenv --system-site-packages .
View script.sh
#!/bin/bash
wget -nc http://cellorganizer.org/Downloads/v2.0/cellorganizer_v2.2.zip
wget -nc http://cellorganizer.org/mmbios/2015/bafilModelsForMMBIOS.zip
wget -nc http://cellorganizer.org/mmbios/2015/cell1.xml
if [ -f cellorganizer_v2.2.zip ]; then
unzip -o cellorganizer_v2.2.zip
Something went wrong with that request. Please try again.