sh 来自https://web.njit.edu/topics/HPC/basement/sge/SGE.html的Sun Grid Engine作业脚本示例

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 来自https://web.njit.edu/topics/HPC/basement/sge/SGE.html的Sun Grid Engine作业脚本示例相关的知识,希望对你有一定的参考价值。

#!/bin/sh
#
# Usage: sleeper.sh [time]]
#        default for time is 60 seconds

# -- our name ---
#$ -N Sleeper1
#$ -S /bin/sh
# Make sure that the .e and .o file arrive in the
# working directory
#$ -cwd
#Merge the standard out and standard error to one file
#$ -j y
/bin/echo Here I am: `hostname`. Sleeping now at: `date`
/bin/echo Running on host: `hostname`.
/bin/echo In directory: `pwd`
/bin/echo Starting on: `date`
# Send mail at submission and completion of script
#$ -m be
#$ -M deadline@kronos
time=60
if [ $# -ge 1 ]; then
   time=$1
fi
sleep $time

echo Now it is: `date`

以上是关于sh 来自https://web.njit.edu/topics/HPC/basement/sge/SGE.html的Sun Grid Engine作业脚本示例的主要内容,如果未能解决你的问题,请参考以下文章

sh 来自shell的cURL

sh 等待来自URL的200响应循环

sh 来自cacher

sh 来自env文件的Docker机密

sh 我的自卸车装载来自备份

sh 来自终端的快速提醒(bash)