#!/bin/bash
process=8
PWD=`pwd`
DAT=`date`
ftpip="192.168.1.1"
user="ftp_username"
password="ftp_password"
local_dir="/home/"
getlist()
{
ftp-n$ftpip<<EOF|awk‘{print$9}‘|sed‘/^$/d‘>$PWD/list
user$user$password
cdfile/
dir
bye
EOF
}
copy()
{
if[-f$P..
分类:
系统相关 时间:
2014-05-27 03:55:34
阅读次数:
378
mount-tcifs-ousername=administrator,password=123//$IP//mnt
{IMG_PATH}v9即wwwroot\statics\p_w_picpaths\v9{CSS_PATH}default_bule.css即wwwroot\statics\css\default_bule.cssm表示模块名wwwroot\phpcms\modules下的文件夹c表示控制器名phpcms/modules/模块/*.phpa表示事件名phpcms/modules/模块/*.php中方法名称
分类:
Web程序 时间:
2014-05-21 01:28:39
阅读次数:
365
cdpr命令:安装:yum-yinstallcdpr(安装epel库)[21:53:07root@localhost~]#cdpr-h
cdpr-CiscoDiscoveryProtocolReporter
Version2.4
Copyright(c)2002-2010-MonkeyMental.com
d:Specifydevicetouse(eth0,hme0,etc.)
h:Printthisusage
t:timeinsecondstoabortwaitingforapack..
分类:
系统相关 时间:
2014-05-21 00:08:27
阅读次数:
447
1.前期准备远程登录:开启ssh服务:/etc/init.d/sshdstart设置密码:passwd以便使用putty、sshclient远程登录上传stage等(有时在线下载很慢,而局域网上传很快)准备磁盘:分区:fdisk/dev/sda/dev/sda1:/boot100M(32-100M)设启动笔记-a/dev/sda2:/20G/dev/sda3:/home20G/dev/..
分类:
系统相关 时间:
2014-05-20 23:58:58
阅读次数:
677
最近一直在学习PHP开发,总想着随手把重点记录下来,有时候总是忘记记。我的免费空间的域名cysky.kuphp.net 在第一版的个人网站(只是几个小网页)使用了iframe嵌套网页功能,这个使用在相册和留言板方面还是有用的。使用方法如下:一、页面内加入<iframeheight="..
分类:
Web程序 时间:
2014-05-20 22:34:45
阅读次数:
429
linux系统使用arp-scan检查是否存在IP地址冲突 如果前期没有做好IP地址规划,即使有IP地址统一不小心也会犯错!推荐服务器IP地址使用要登记明细,上次机房批量部署服务器,就将已再用的IP又分配给另一台服务器,还好对业务没有造成大的影响。那么在给服务器配置IP的时候,怎么..
分类:
系统相关 时间:
2014-05-20 22:33:29
阅读次数:
409
1、卸载原有存储umount/home/weishaostore/2、查看iSCSIsession信息iscsiadm-msession3、设置InitiatorNamevim/etc/iscsi/initiatorname.iscsiInitiatorName=iqn.2014-05.com.ruijie.whistle:whistle-100.e7839d5100InitiatorName=iqn.2014-05.com.ruijie.whistle:whistle-150...
分类:
系统相关 时间:
2014-05-20 22:22:40
阅读次数:
492
编程:启动程序实现很简单的功能在屏幕中央;打印一行字符串(汇编+c+redhatlinux实现)汇编语言编写:boot.asm启动程序代码:;我们的启动程序实现很简单的功能在屏幕中央;打印一行字符串org07c00h;org指令明确告诉编译器我程序开始地址是07c00h,而不是;原来的00000;int汇编指..
分类:
系统相关 时间:
2014-05-20 19:24:33
阅读次数:
501
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<errno.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<arpa/inet.h>
#include<sys/ioct..
分类:
其他好文 时间:
2014-05-20 18:46:37
阅读次数:
260