Scala: /** * Created by sunxu on 2015/9/30. */ import scala.sys.process._ import java.io.File //在相应目录执行shell命令,返回值赋值给变量 val exitValue = Process("hadoop jar pathread-analytics-0.0.1.jar com.duxiu.pathread.stcs.StcsByFieldJob /pathread/2015/10-08 /user…
#!/bin/bash read -p "input a dight:"echo $REPLY DATE=`date`echo "DATE is ${DATE}" USERS=`who |wc -l`echo "LOGIN in user is ${USERS}" UP=`date;uptime`echo "Uptime is ${UP}" #echo "HELLO World!" #echo "…