mlfedv
2006-07-24 08:18:56 UTC
Hi Developers,
i have a NetWare 6.5 Box with SP5a.
I'm running the following script:
____________________________Scriptstart
#!sys:/perl/bin/perl
$quelle = "EXT:\INBOUND";
$ziel = "DATA:\INBOUND\";
if (-d $quelle) {
$where = $quelle;
} else {
die("Verzeichnis $quelle existiert nicht!");
}
while (defined($next = <$where/*.txt>)) {
$datendatei = substr $next,0,(length $next)-4;
system "copy $datendatei $ziel -rm";
system "copy $next $ziel -rm";
system "nwmail $next ***@domain server from";
}
____________________________Scriptend
The script looks at a directory if there is one or more Files ending with
txt (we are getting data from outside, the .txt is simply a flag that the
datafile (same name without .txt) is completely copied).
If there is one(or more) .txt , it executes the copy command (from
toolbox).
When i look at the loggerscreen, i see that every command is executed
twice!
Where is my mistake?
Kind regards
Manfred Lapp-Friedrichs
MCNI
i have a NetWare 6.5 Box with SP5a.
I'm running the following script:
____________________________Scriptstart
#!sys:/perl/bin/perl
$quelle = "EXT:\INBOUND";
$ziel = "DATA:\INBOUND\";
if (-d $quelle) {
$where = $quelle;
} else {
die("Verzeichnis $quelle existiert nicht!");
}
while (defined($next = <$where/*.txt>)) {
$datendatei = substr $next,0,(length $next)-4;
system "copy $datendatei $ziel -rm";
system "copy $next $ziel -rm";
system "nwmail $next ***@domain server from";
}
____________________________Scriptend
The script looks at a directory if there is one or more Files ending with
txt (we are getting data from outside, the .txt is simply a flag that the
datafile (same name without .txt) is completely copied).
If there is one(or more) .txt , it executes the copy command (from
toolbox).
When i look at the loggerscreen, i see that every command is executed
twice!
Where is my mistake?
Kind regards
Manfred Lapp-Friedrichs
MCNI