|< 1 2 >| | 17 Einträge, 2 Seiten |
1
2
3
my $directory = "smb://bioboss/shared/Hubert/versuch";
opendir(DIR, $directory) || die("Cannot open directory");
my @thefiles= readdir(DIR);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
my $npath = '//bioboss/shared/Hubert/versuch';
my $lpath = '/mnt';
system('/sbin/mount', '-t', 'smbfs', $npath, $lpath) == 0
or die "Cannot mount '$npath' to '$lpath': $?\n";
opendir my $dh, $lpath
or die "Cannot open directory '$lpath': $!\n";
my @thefiles = readdir $dh;
close $dh
or die "Cannot close directory '$lpath': $!\n";
system('/sbin/umount', $lpath) == 0
or die "Cannot unmount '$lpath': $?\n";
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
#!/usr/bin/perl
use strict;
use warnings;
use POSIX;
use Filesys::SmbClient;
my $smb = new Filesys::SmbClient(username => "Hubert");
my $fd = $smb->opendir("smb://bioboss/shared/Hubert/Blast");
my @thefiles = $smb->readdir($fd);
close($fd);
#foreach(@thefiles) {
#
#}
my $file;
my @raw_data;
my $count;
my @array;
print "Start entering foreach.....\n";
foreach $file (@thefiles)
{
#print $file;
open (DAT, $file) || die ("Could not open file");
@raw_data = <DAT>;
foreach my $wrestler (@raw_data)
{
#print "Hallo",@raw_data;
#print "opening example\n";
open (bigShot, ">>hello_Jesus.txt") || die ("Could not open file. $!");
print bigShot ($wrestler);
close (bigShot);
}
print "finished\n";
$count++;
}
print "finished reading all Files.....closing Directory\n";
print $count;
Could not open file at /home/Hubert/installed/eclipse/workspace/Database_Search/networkAccess.pl line 34.
open (DAT,"<",$file) || die ("Could not open file $file: $!");
Could not open file blast-20060121-02334734.txt: No such file or directory at /home/Hubert/installed/eclipse/workspace/Database_Search/networkAccess.pl line 34.
|< 1 2 >| | 17 Einträge, 2 Seiten |