一起学习网 一起学习网


win下调用putty执行命令脚本分享

网络编程 win下调用putty执行命令脚本分享 06-21


@echo off
echo ===============================
echo Production server
echo ===============================
echo please input "y" to continue......
set /p input=
if "%input%"=="y" (
"putty.exe" -pw serverPassword -m script.txt username@IP
echo reboot server command executed.
) else echo Does not execute any command
pause

linux安装php扩展脚本分享
测试环境:ubuntu12.04php5.3.x#!/bin/bash#Program:#Accomplishtoexpandthespecifiedfunctiononlyonekey#History:#2013/11/15pankai530911044@qq.comfirstreleasetest!-f./ext_skel&&echo"Theshellscriptof'ext_

通过shell进行数学运算的多种方式
在Bash中,bash的数学运算有点别扭,很难适应和记住,只好写个博文,方便以后翻翻看.有四种方式可以进行数学运算:一、let命令#/bin/bashnum1=13num2=14letsum=

监控服务器swap并重启php的Shell脚本
折中一下,写个脚本监控swap吧,放在crontab里面,2小时执行一次,世界安静了,再也没有烦人的报警短信了#!/bin/bashfunctionusage{echo"Usage:$0"echo"e.g.$01500"exit


编辑:一起学习网

标签:脚本,数学,翻翻看,方式,放在