Skip to content

Instantly share code, notes, and snippets.

@hrlai
Created February 23, 2023 00:40
Show Gist options
  • Save hrlai/4e78afc4e5e895ff3cf2dde6fea1dfe6 to your computer and use it in GitHub Desktop.
Save hrlai/4e78afc4e5e895ff3cf2dde6fea1dfe6 to your computer and use it in GitHub Desktop.
##!/bin/bash
PATH=/share/apps/R/R-3.6.2/bin/:/share/apps/gcc-8.3/bin:$PATH
LD_LIBRARY_PATH=/share/apps/gcc-8.3/lib64:/home/hrl23/lib:$LD_LIBRARY_PATH
###############################
# SGE settings Here
# Basically, if a line starts with "#$", then you can enter any
# qsub command line flags . See the qsub(1) man page.
# Redirect the STDOUT and STDERR files to the ~/jobs directory
# replace username with yours
#$ -o /home/username/jobs/
#$ -e /home/username/jobs/
# Specify that this script is in bash
#$ -S /bin/bash
# Do some validation checking, and bail on errors
##$ -w e
# Operate in the current directory
#$ -cwd
# End SGE Settings
###############################
# put your scripts below
# replace filename with yours
# append folder name if it is in a subdirectory
/share/apps/R/R-3.6.2/bin/Rscript my_script.R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment