Ik heb een script dat automatisch een .log file maakt elke dag.
Maar ik wil dat ie die log ook automatisch chmod 777 doet als ie hem maakt.
Hoe moet dat?
stukje van script:
Maar ik wil dat ie die log ook automatisch chmod 777 doet als ie hem maakt.
Hoe moet dat?
stukje van script:
code:
1
2
3
4
5
6
7
8
9
10
| proc pub_log {nick uhost handle channel arg} {
global log_chans
if {![test_chan $channel]} { return; }
set stripped_arg [strip $arg]
set file [open $channel.[strftime %Y%m%d].log a]
set ttime "\\[[strftime %H:%M:%S]\]"
puts $file "$ttime <$nick> $stripped_arg"
close $file
} |