分类: 脚本语言
thumbnail

简单的时间同步脚本---ntpdate

由于ntpdate使用时,存在时间没有更新成功的情况。而做了计划任务之后,无法得知是否更新成功,所以写了以下脚本 Shell #!/usr/bin/en……
thumbnail

网站脚本备份并记录日志

前段时间安装了百度云盘的python版,现在通过脚本实现文件上传及备份完成将日志发送到邮箱,及时获取备份情况。 注:必须安装百度云盘python版及mutt 根据具体……
thumbnail

利用百度网盘python客户端实现自动化备份

百度网盘Python客户端安装方式:http://blog.wlzs.cn/%E7%99%BE%E5%BA%A6%E4%BA%91%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98python%E5%AE%A2%E6%88%B7%E7%AB%AF/ ……
thumbnail

百度云/百度网盘Python客户端

地址:https://github.com/houtianze/bypy 注:需要python 2.7的环境 这是一个百度云/百度网盘的Python客户端。主要的目的就是在Linux环境下(命令行)使用百……
thumbnail

Linux自动化备份--上传到百度网盘

今天将网站移植到另外的一台服务器上,因为不是自己管理的网络,不能便捷的直接操作ssh界面。所以想办法实现自动化脚本备份。 想法: 利用shell脚本将网站及数……
thumbnail
bat

利用bat重启services服务

Shell @echo off ::关闭回显 sc query |find /i "w32time" >nul2 >nul ::通过sc query 查询服务是否存在 if %errorlevel%……
thumbnail
c

C/C++各种类型int、long、double表示范围(最大最小值)

  在vs 2013 中代码如下: Shell // ConsoleApplication2.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #……
thumbnail
c

vs2013 程序暂停代码

方法一: Shell // ConsoleApplication1.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #define PRICE 30;……
thumbnail
c

c++ 打开资源管理器

Shell #include "stdafx.h" #include <process.h> #include <Windows.h> #include <tchar.h> #pragma comment……
thumbnail
c

c语言中实现数字倒计时功能

Shell include<stdio.h> include<windows.h> int main() { int i; for (i=9;i>=0;i--) { printf ("%d",……