发信人: williamlong() 
整理人: simonshium(1999-06-26 12:57:20), 站内信件
 | 
 
 
【 以下文字转载自 BM 讨论区 】 【 原文由 蓝色月光 所发表 】 这里是上海交大BBS那里的3个主要的UNIX SHELL程序 , 稍加修改应该就可以用在网易的BBS系统上 。
  #maketar.sh #------------------- #!/bin/tcsh set date=`/usr/bin/date +%m-%d-%H:%M` cd /pub/bbs2/0Announce /usr/local/bin/n2h.sh > /pub/bbs2/log/$date.log /usr/local/bin/0antar.sh >> /pub/bbs2/log/$date.log
 
 
 
 
  #n2h.sh #--------------------
  ## this file is for names to html convert #!/bin/tcsh foreach file (*) if (-l $file) continue
  if (-d $file) then         echo convert dir $file         /pub/ygh/work/mytest/n2h $file > $file/index.html         (cd $file;/pub/ygh/work/mytest/name2html) else         echo . endif end
 
 
 
 
  #0antar.sh #------------------------ #!/bin/tcsh foreach file ( * ) if ( -l $file ) continue
  if ( -d $file) then         echo tar dir $file         /usr/local/bin/tar czvf /pub/ftp/pub/bbs/$file.tgz $file         (cd $file;/usr/local/bin/0antar.sh) endif end
 
 
  --                                                  ☆ 蓝色月光 ☆ [email protected]                                               
  ※ 来源:.网易 BBS bbs.netease.com.[FROM: bbs.szptt.net.cn] -- ※ 转载:.月光软件站 http://www.moon-soft.com.[FROM: bbs.szptt.net.c]
  | 
 
 
 |