omrunon.sh
来自「OpenMosix工具」· Shell 代码 · 共 54 行
SH
54 行
#!/bin/sh -# runon.sh - Launch a task on a remote node on an OpenMosix cluster# Author: David Santo Orcero, irbis@orcero.org, http://www.orcero.org/irbis# (c) David Santo Orcero, all rights reserved.# OpenMosix is (c) of Moshe Bar http://www.openmosix.com# Each respective trademark is of its own owner# This software is distributed under GPL 2 or later#/* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTY IS ASSUMED. */#/* NO LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING */#/* FROM THE USE OF THIS SOFTWARE WILL BE ACCEPTED. IT CAN BURN */#/* YOUR HARD DISK, ERASE ALL YOUR DATA AND BROKE DOWN YOUR */#/* MICROWAVE OVEN. YOU ARE ADVISED. */case "$1" in [1-9]*) node=$1 shift ;; *) echo "runon.sh - Launch a task on a remote node on an OpenMosix cluster." echo "Incorrect syntaxis. Must provide a node." exit 1esaccase "$1" in -z) flag=-z shift case $# in 1) echo "runon.sh - Launch a task on a remote node on an OpenMosix cluster." echo "Incorrect syntaxis. Must provide an argument after '-z'." exit 1 esacesaccase $#,"$1" in *,-*|0,*) echo "runon.sh - Launch a task on a remote node on an OpenMosix cluster." echo "Incorrect syntaxis. Must provide a process." exit 1esacexec /bin/mosrun -"$node" $flag $*
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?