Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

linux - Cron compress files -


i introduce cron tak 'gzip' files following rule:

  1. locate files in folder name '/log' (can located anywhere in filesystem) and

  2. gzip files, older 2 days, have './log' in file name handle

i have written script below - not work - close? required make work? thanks.

/usr/bin/find ./logs -mtime +2 -name "*.log*"|xargs gzip

in crontab, call:

/usr/sbin/logrotate -s ~/.logrotate/status ~/.logrotate/logrotate.conf 

in ~/.logrotate/logrotate.conf:

# rotate log files weekly weekly  # keep 4 weeks worth of backlogs rotate 4  ## compression  # gzip(1) #compresscmd /usr/bin/gzip #compressoptions -9 #uncompresscmd /usr/bin/gunzip #compressext .gz  # xz(1) compresscmd /usr/bin/xz uncompresscmd /usr/bin/xzdec compressext .xz  /home/h3xx/.log/*.log /home/h3xx/.log/jack/*.log {     # copy , truncate original (for always-open file handles     # [read: tail -f])     copytruncate      # enable compression     compress }  /home/h3xx/.usage/*.db {     # databases     copy      # enable compression     compress } 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -