, :
run() {
email=example@gmail.com
rest="${@:1:($#-1)}"
nohup bash -c "$rest < /dev/null 2>&1 | mail -s \"$rest\" \"$email\"" &
}
nohup, /dev/null , , mail. ( ... ) , , nohup ( ... ) , bash -c "..." ( ${SHELL} -c " ..." , ). , , . , ( - - , ; |). rest=... run script.sh arg1 arg2, , , - ...