Thread Problem mit Perl Script, welches alte Backupverzeichnisse löschen soll (8 answers)
Opened by Dominik at 2013-08-29 15:34

Gast Dominik
 2013-08-30 14:31
#169837 #169837
Vielen Dank.

Die Ursache der Fehlerquelle scheint zu sein, dass er das Datum falsch ausliest oder jedenfalls einen Fehler beim Datum auslesen geschieht.
Außerdem hat er die Ordner mehr als nur einmal eingelesen. Schau mal selbst.

more (11.4kb):
Code: (dl )
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-20
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-28
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-17
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-07-26
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-06
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-02
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: log.txt
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-23
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-07-31
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-27
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-12
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-18
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-07-28
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-07-29
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-05
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-07-24
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-09
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-24
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: del_log.txt
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-15
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-08
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-10
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-07-27
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-07-30
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-03
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-07
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-16
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-19
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-26
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-21
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-07-19
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-04
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-13
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-30
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-11
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-01
Use of uninitialized value $filetime in addition (+) at ./date_test.pl line 33.
Use of uninitialized value $filetime in concatenation (.) or string at ./date_test.pl line 35.
Zeit (System): 1377865278
Zeit (Datei): 604800 ( + 604800 )
Dateiname: 2013-08-29
Net::FTP=GLOB(0x8440770)>>> QUIT
Net::FTP=GLOB(0x8440770)<<< 221 Goodbye


So wie es für mich aussieht, übernimmt er einfach nur die vorgegebene Zahl 604800 aus dem Code Stück
Code: (dl )
1
2
my $filetime = ( stat $entry )[9];
my $checktime = $filetime + 604800;



Vielen Dank für deine Hilfe!


Mit freundlichen Grüßen

Dominik
Last edited: 2013-08-30 14:45:57 +0200 (CEST)

View full thread Problem mit Perl Script, welches alte Backupverzeichnisse löschen soll