#!/bin/bash
#SBATCH --partition=batch               # Specify the partition (queue)
#SBATCH --nodes=1                       # Number of nodes
#SBATCH --ntasks-per-node=1             # Tasks per node (equivalent to ppn)
#SBATCH --error=%x-%j.err               # Redirect error to file (%x = job name, %j = job ID)
#SBATCH --output=%x-%j.out              # Redirect output to file
#SBATCH --job-name=my_job               # Job name

cd $SLURM_SUBMIT_DIR                    # Change to the directory where the job was submitted

chmod +x job.sh                         # Ensure the job script is executable

./job.sh                                # Execute the script






# POKRETANJE             sbatch job.slurm
# PROVERA STANJA         squeue
