Ubuntu查看电脑内存使用情况
|
1 |
free -m |
|
1 |
free -m |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
#!/bin/bash outdir=/home/files ip=${REMOTE_ADDR} dir=`date +%Y%m` time=`date +%Y%m%d%H%M%S` file=`date +%Y%m%d%H%M%S`_$ip.pdf file2=`date +%Y%m%d%H%M%S`_$ip.txt file3=`date +%Y%m%d%H%M%S`_$ip.raw mkdir -p $outdir/$dir cp $1 /tmp/file3 mv $1 $outdir/$dir/$file if [ "`file ${SPOOLFILE} | grep 'ostScript'`" ] ; then pdftotext $outdir/$dir/$file $outdir/$dir/$file2 else cp ${SPOOLFILE} $outdir/$dir/$file3 fi chmod -R 777 $outdir/$dir #cp ${SPOOLFILE} $outdir/$dir/$file3 mysql -uwater -p111111 water -e"insert into pdf set `file`='$dir/$file',`ip`=INET_ATON('$ip')" cp ${SPOOLFILE} /tmp/1.ps |
注: -uwater 是数据库用… 继续阅读 lims_cups_pdf.sh文件下内容
Linux下cups打印服务配置文件cups-pdf.conf [crayon-6a5425fd94… 继续阅读 Linux下cups打印服务配置文件cups-pdf.conf
第一步: 在服务器命令行执行: sudo apt-get install cups 第二步: 安装完… 继续阅读 在Linux服务器安装cups打印服务
基本的操作方法: 本文假设你的apahce安装目录为/usr/local/apache2,这些方法适… 继续阅读 linux 下 apache启动、停止、重启命令
1.useradd tom 添加一个tom用户 [crayon-6a5425fd95b2392709… 继续阅读 Linux用户和组管理
1.文件类型标志 普通文件(-) 目录(d) 符号连接( | ) 2.chmod 变更文件或目录的权… 继续阅读 Linux文件权限管理