由买买提看人间百态

topics

全部话题 - 话题: logfile
首页 上页 1 2 (共2页)
o*o
发帖数: 404
1
来自主题: Programming版 - 一个头痛的regular expression问题
这还要什么regular expression呀?
egrep '^send|^heartbeat' logfile
j*****a
发帖数: 436
2
来自主题: Programming版 - 一个头痛的regular expression问题
#!/usr/bin/perl
open FILE, "logfile" or die "Couldn't open file: $!";
my $string;
while () {
$string .= $_;
}
close FILE;
$string =~ s/(send.*\n)+[^heartbeat|^send].*\n([^send].*\n)*//g;
$string =~ s/\n[^heartbeat|^send].*\n/\n/g;
print $string;
s****c
发帖数: 299
3
来自主题: Programming版 - Python question
I was trying to write a large list to a file. But the file is always missing
a couple of lines at the bottom. If I print the list, every line is there.
It felt like the writelines method didn't get finished before the next
command got run. I inserted a sleep but still no help.
Could any one point out what is wrong with my code? Thanks.
file2=open(logfile, 'w')
file2.writelines(OS) #Always missing a couple of lines in the file
time.sleep(5)
print OS #But when i print it out
y*****n
发帖数: 11251
4
来自主题: Programming版 - IIS+PHP 如何debug???
查看iis的log wwwsvc什么的,确定client确实访问了页面
然后php没什么好的debug办法。就是用自己的logfile了。
T********i
发帖数: 2416
5
来自主题: Programming版 - SPECS
Goodbug提出的:
全国一盘棋。每天1000车次,每车次简化就20段,每车三种票,卧铺,硬座,站票,每
种1000张。上下铺什么的我就不跟你计较了。联票也是支持最多两张
就好,或者说一次转车。用户自选,也不用你算什么最短路径。但是每个车次的票号得
一样。
反正不能重票,错票。不能有票不出。高峰的时候必须能对99.9%的请求在30秒内作出
响应并出票。
qxc提出的协议
协议:
4 bytes transactionId
2 bytes trainId1
1 byte seatType
1 byte start1
1 byte end1
2 bytes trainId2
1 byte start2
1 byte end2
我的修改建议:
加上trainid2, start2, end2。因为goodbug要联票转车。
当然,联票转车要算出两张票才对。碰到联票,transaction算2个。
trainid是0表示不转车。
返回 {
4 bytes transactionId
1 byte isSuccess
}
那我们就上单机, 不断电, 只看看 perf.
我的增强版:
实时异步... 阅读全帖
q*c
发帖数: 9453
6
来自主题: Programming版 - SPECS
我来作活雷锋 (下面得要实现了, server/test code 不开源真是天大浪费)。
全国一盘棋。每天1000车次,每车次简化就20段,
每车三种票,卧铺,硬座,站票,每种1000张。
联票也是支持最多两张。 10% 联票, 不能换座位。(联票内每个车次的票号得一样。)
不能重票,错票。不能有票不出。高峰的时候必须能对99.9%的请求在30秒内作出
响应并出票。
联票算一个请求。 内部多少 transaction 不能管。(就 10% overhead, 老魏就别纠缠
了, 不是目标是 5MM 嘛!)
协议:
{
4 bytes transactionId
1 byte numberOfTickets ( 全家出门必须 aon )
1 byte seatType
2 bytes trainId1
1 byte start1
1 byte end1
2 bytes trainId2
1 byte start2
1 byte end2
}
不转车就没有 section 2.
返回
{
4 bytes transactionId
2 byte seatNumber (0 if f... 阅读全帖
g*****g
发帖数: 34805
7
来自主题: Programming版 - 12306仍然一塌糊涂
操,跟你说了是出错,长这样的。没有票跟出错是两码事。能用的话好好的我买个冷门
票何必加手续费到携程。
http://www.12306.cn/mormhweb/logFiles/error.html
j******a
发帖数: 100
8
不解释,自己看
Running MPI tests with 2 processes
logfile /opt/opa/src/mpi_apps/logs/.24Sep15175112
Running in MPIRUN mode (OpenMPI).
Running osu-micro-benchmarks-3.8-July12/mpi/pt2pt/osu_bw ...
Using hosts list: /opt/opa/src/mpi_apps/mpi_hosts
Hosts in run:
sut1
sut2
+ /usr/mpi/gcc/openmpi-1.8.2a1-hfi/bin/mpirun -np 2 --bynode --allow-run-as-
root -machinefile /opt/opa/src/mpi_apps/mpi_hosts -mca plm_rsh_no_tree_spawn
1 osu-micro-benchmarks-3.8-July12/mpi/pt2pt/osu_bw
---------------------------------... 阅读全帖
t*****f
发帖数: 25
9
来自主题: Security版 - 大家帮忙来看看
FWIN,2001/01/04,19:36:12 -5:00 GMT,166.90.30.50:0,24.28.207.103:0,ICMP
FWIN,2001/01/04,19:52:48 -5:00 GMT,165.121.117.20:2036,24.28.207.103:31337,UDP
FWIN,2001/01/04,20:05:30 -5:00 GMT,148.247.40.20:1744,24.28.207.103:21,TCP
FWIN,2001/01/04,21:15:48 -5:00 GMT,24.28.207.68:1084,24.28.207.103:5632,UDP
... ... ...
著是老夫ZoneAlarm的LOGFILE里的东东,
是有人在窥探偶的计算机吗?这么频繁?
好象好几个地址都是从偶附近过来的,MMD。
究竟是怎么回事???
s*****i
发帖数: 2
10
来自主题: Security版 - iis logfile
2002-04-12 19:18:47 194.78.202.36 - xxx.xxx.xxx.xx 80 GET /default.ida
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucb
d3%u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0000%u00
=a 200 -
200 success?!!
Does this record show that someone is t
s*****i
发帖数: 2
11
来自主题: Security版 - iis logfile
Ft...got virus
The traditional signature of Code Red in web server logs has been:
GET /default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN%u9090%u6858%ucbd3
%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801
%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff
%u0078%u0000%u00=a HTTP/1.0
S***y
发帖数: 106
12
周三要给学生上 Network Securities 的课, 原计划给他们秀一段 IIS 的 log file
(主要是 IT 的学生, 叫他们熟悉一下 server log 的模样和目录). 不想我的 server 上
周硬盘刚 fail, 还没来得及恢复. 哪位大虾若有 run IIS on Windows 的, 你的
Windows 系统目录下的 system32\Logfiles\W3SVC1 下的 LOG 文件随便 COPY 一个贴上
来好么? (最好是那种有 suspicious activity going on 的, 例如某个 IP 地址不断地
调用一个不存在的文件, 或是不断地企图执行一个 script).
非常感谢.
r********5
发帖数: 13
13
来自主题: Security版 - 求助!!!!! Sspyware can not be removed.
I have used ewido, can detect it in C:\WINDOWS\Cursors\utilvb.dll,tried to
clean it and said it is cleaned and quarantined, but it is actually still
there. Can not be removed.
Used Hijackthis, here is the log file:
Logfile of HijackThis v1.99.1
Scan saved at 11:01:09 AM, on 9/2/2005
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)
Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDO
y**y
发帖数: 43
14
来自主题: Security版 - 求救:中了木马
请高手指教怎么杀掉这个病毒,在program files里不停的生成一个netmeting文件夹,里
边有一个target.dll,每次删掉又出来,用norton可以检测到,但是无法删除。
hijackthis的logfile如下:


C:\WINDOWS\System32\smss.exe


C:\WINDOWS\system32\winlogon.exe
x******n
发帖数: 1
15
来自主题: Security版 - csrss 频繁出对话框, 求助。
csrss 频繁出对话框, 求助。
WinXP,开机不长时间,csrss就频繁跳出对话框,
'AM' is not a valid integer value.
搜索电脑csrss,发现
csrss.exe, C:program Files, 179 KB
CSRSS.EXE-03323C54.pf, C:windowsprefetch, 25 KB
CSRSS.EXE-35A6A30E.pf, C:windowsprefetch, 23 KB
csrss.exe, C:windowssystem32, 6kb
CSRSS.EX_, C:I386, 3KB
使用hijackthis, 发现以下内容,请各位大侠指正。
Logfile of HijackThis v1.99.1
Scan saved at 10:33:52 AM, on 12/24/2006
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)
Running processes:
C:WI
h****a
发帖数: 24
16
有一次电脑突然断电之后,ie就在也打不开了,总是直接link到http://go.microsoft.com/fwlink/?LinkId=74005
而且用查毒软件查到script的时候就中断掉了,无论如何也差不下去。
在网上看,有人说是中毒了,但是我不清除是什么原因造成的,希望达人给予指教,切
切。
多谢
Logfile of Trend Micro HijackThis v2.0.0 (BETA)
Scan saved at 13:53:46, on 2007-12-10
Platform: Windows XP SP2 (WinNT 5.01.2600)
Boot mode: Normal
Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\ibmpmsvc.exe
C:\WINDOWS\system32\
l**b
发帖数: 21
17
来自主题: Security版 - 电脑不知道中什么毒了
多谢。log如下
好像用了某些程序后就会出现问题,像打开影音文件
Logfile of Trend Micro HijackThis v2.0.2
Scan saved at 14:41:35, on 2008-12-15
Platform: Windows XP SP3 (WinNT 5.01.2600)
MSIE: Internet Explorer v7.00 (7.00.6000.16735)
Boot mode: Normal
Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\Program Files\Windows Defender\MsMpEng.exe
C:\WINDOWS\System32\svchost.exe
C:\WINDOWS\Explorer.EXE
C
a******n
发帖数: 166
18
来自主题: Security版 - 十多天未脱困境,恳请大侠相助
事情有点荒唐,上上个周五,本人和本人的电脑同时被病毒侵扰,至今身体未愈,电脑
也未脱困境。今到此地寻高人相助。
电脑中毒的起因可能是卡巴斯基授权文件失效,下载了新授权文件后,发现不能更新病
毒库。实际上可能把melware下载安装了。
首先的症状是,注册表被封锁修改,后藉360safe解困。另外还有隐藏文件不可显示,
文件夹选项消失,后来用google推荐的spyware doctore解除。
直到今天还没解决的问题是;1,google搜索结果被重定向,指到一些所谓的防病毒软件
网站,并自称自动扫描我的注册表,让我付费买他们的软件 2,防病毒软件不能更新
我下载过Melawarebytes 改名后可安装,但不能运行。
现在用了HijackThis, 大致删掉一些可以项目,但仍然未脱困境,将log file贴于此,
请达人出手想救,不胜感激!
Logfile of Trend Micro HijackThis v2.0.2
Scan saved at 6:02:34 PM, on 12/29/2008
Platform: Windows XP SP3 (WinNT 5.01.2600)
l***u
发帖数: 10
19
来自主题: Software版 - 被vista搞郁闷了
那个典型的C:\Windows\System32\LogFiles\WMI\RtBackup下的etl文件的问题
整了我一晚上
照着网上的参考,18班武艺全用了一遍也没搞定
最后只好在冲突的地方把那几个文件手动设了屏蔽....
NND, Vista的权限理念怎么这么混乱,居然还有独立于权限体系之外的文件.
真是受不了了!!!
权当复习了一遍常用windows系统维护方法@_@~~~
p******o
发帖数: 216
20
来自主题: Software版 - 被vista搞郁闷了
That's to secure system files won't be changed by virus. There's a new user
group named something like Installer in charge of this.

那个典型的C:\Windows\System32\LogFiles\WMI\RtBackup下的etl文件的问题
整了我一晚上
照着网上的参考,18班武艺全用了一遍也没搞定
最后只好在冲突的地方把那几个文件手动设了屏蔽....
NND, Vista的权限理念怎么这么混乱,居然还有独立于权限体系之外的文件.
真是受不了了!!!
权当复习了一遍常用windows系统维护方法@_@~~~
l*l
发帖数: 225
21
任何的程序都是在一定的环境下运行的, 因此如果你要设置环境
变量, 在相应的CGI程序里设置. 我举的例子是利用UNCGI, 一种
UNIX SHELL CGI,可以这么设置, 同样道理, 用C++写的CGI也
可以采用相应的方法.
不过你说的要设置一个通用的的环境变量, 由余NOBODY没有SHELL因此
比较困难, 你可以尝试更改或者自己写一个受限的SHELL给NOBODY用, 这个
SHELL的环境设置以后就永远起作用. 不管你写什么样的CGI,但是无疑
会大大降低系统的安全性.
下面是我的一个简短的SHELL CGI的开头, 和通常的SHELL一样:
http://people.physics.tamu.edu/llu/ 远程字典和在线画图)
#!/bin/sh
PATH="/bin:/usr/bin:/usr/local/bin:/home/people/llu/bin:."
export PATH
HOME=/www/people/llu/cgi-bin/tmp
export HOME
cd $HOME
rm -rf temp.*
LOGfile=$HOME/log
e
c********e
发帖数: 417
22
来自主题: Unix版 - A question about awk
用 awk 是不是只能读文件内容,而不能修改文件内容?
我用awk来实现把 backuptimes 加 1 的功能.我是这样写的:
awk '/backuptimes/{$2+=1;print}' logfile
print的结果是加 1 后的,但是文件的内容并没有改变,也就是没有加 1 .
难道awk不能改文件?
T***B
发帖数: 137
23
sort largeFile > & logfile &
The above command will be core dumped when sorting a large file (30G). I want
to see the error message at the time it is dumped. The problem is that I have
to run the command in background.
The command I tried above doesn't work. It didn't catch the error message
during dumping. Any suggestions? Thanks a lot.
p******f
发帖数: 162
24

if you shell is like sh,
sort ... >logfile 2>errfile &
a***t
发帖数: 39
25

want
have
sort largefile > logfile 2>&1 &
c****j
发帖数: 258
26
redirect stderr(2) to stdout(1), then you can use more to see the output.
exec_file 2>&1 | more
pipe(|) just redirect stdout to stdin(0), not stderr
you can also put it into a file
exec_file 2>&1>logfile

我用f90编译一个model,但是错误太多,都看不到前面的。怎么办?
redirection > 不行!
| more 也不行!
谢谢各位!!!
D**e
发帖数: 10169
27
来自主题: Unix版 - Another simple question
如果LOGFILE不存在,摸摸它。
k******r
发帖数: 2300
28
来自主题: Unix版 - Another simple question
Thanks for replying. Why'd we need double bracket instead of single bracket
in[[! -s $LOGFILE ]]?
m***i
发帖数: 213
29
来自主题: Windows版 - Re: 被vista搞郁闷了
【 以下文字转载自 Software 讨论区 】
发信人: pipirooo (皮皮鼠), 信区: Software
标 题: Re: 被vista搞郁闷了
发信站: BBS 未名空间站 (Fri Feb 1 07:03:59 2008), 转信
That's to secure system files won't be changed by virus. There's a new user
group named something like Installer in charge of this.
那个典型的C:\Windows\System32\LogFiles\WMI\RtBackup下的etl文件的问题
整了我一晚上
照着网上的参考,18班武艺全用了一遍也没搞定
最后只好在冲突的地方把那几个文件手动设了屏蔽....
NND, Vista的权限理念怎么这么混乱,居然还有独立于权限体系之外的文件.
真是受不了了!!!
权当复习了一遍常用windows系统维护方法@_@~~~
s*r
发帖数: 2757
30
来自主题: Statistics版 - [help] a SAS probelm
run sas in command line use -log Nul or -log logfile.txt
d*******o
发帖数: 493
31
来自主题: Statistics版 - 收集面试题目
How to use AB testing
What is Accenture digital diagnostics
How to use account query (export API)
What is accounts
How to use AdSense linking to
What is AdWords linking to
How to use Google
What is Google Analytics
How to use initial configuration
What is multiple
How to use profiles and
... 阅读全帖
g**d
发帖数: 723
32
来自主题: _voip版 - Asterisk 1.4, GV call out problem
here is what I think important in logfiles. Let me know if other part is
needed:
<------------->
[Apr 2 20:11:04] --- (11 headers 0 lines) ---
[Apr 2 20:11:06] NOTICE[1640]: chan_sip.c:7462 sip_reregister: -- Re-
registration for S***[email protected]
[Apr 2 20:11:07] NOTICE[1640]: chan_sip.c:12558 handle_response_register:
Outbound Registration: Expiry for sipgate.com is 120 sec (Scheduling
reregistration in 105 s)
[Apr 2 20:11:07] -- Executing [8004664411@from-internal:9] Set("SIP/
1
P*x
发帖数: 1576
33
来自主题: _Xiyu版 - 查马甲的利器
$ ./analysor.pl -u riemann -f badminton.log
[+] riemann has used the following IP addresses to post:
XXX.XX.
OrgName: RIPE Network Coordination Centre
majia1 & Riemann
(This is from work)
XX.XX.
OrgName: Comcast Cable Communications, Inc.
Riemann & majia1
(This is from home)
hehe.下次有什么新马甲出来,直接拿这个跑一下就好了.
$ ./analysor.pl -h
Mitbbs User IP Log Analysor
Copyright by pix@mitbbs, 2006
Usage:
./analysor.pl -u userid -f logfil
u****u
发帖数: 2308
34
来自主题: _Xiyu版 - 硬工碰到软问题
IMHO 你的这个要求是unix programming所忌讳的。dumbird建议的tail -f $logfile才
是王道。
t*h
发帖数: 1629
35
来自主题: _Xiyu版 - 硬工碰到软问题
最简单的就是去掉那个logfile option.如果他们要save 下来,就用重定向。
用 > xxx.log
or | tee xxx.log
前者没有screen output
后者有
j****z
发帖数: 967
36
来自主题: _Xiyu版 - 网络一到晚上就经常断
reboot the router, maybe the logfile is getting too large for the memory.
had that prob b4 with AT
首页 上页 1 2 (共2页)