Thread Shell-Error durchs benutzen von `` (36 answers)
Opened by FlorianL at 2008-01-21 15:12

FlorianL
 2008-01-23 08:13
#105036 #105036
User since
2007-05-18
142 Artikel
BenutzerIn
[default_avatar]
Ich versteh das nich :(

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
chomp(my $day = $ARGV[1]);

chomp(my $month = `date +%m`);
chomp(my $premonth = $month--);
if ($month == 01) {
$premonth = 12;
}

chomp(my $year = `date +%y`);
print ("year-1: $year\n");
chomp(my $preyear = $year--);
print ("year-2: $year\n");

my $file = "$filespath\SizeCheck-$year\-$month\-$day\.dat";

print ("File: $file\n");


Ausgabe:

Code: (dl )
1
2
3
4
xtest11 # ./checksize.pl /home 11
year-1: 08
year-2: 7
File: /home/re17830/chksize/checksize_db/SizeCheck-7-0-11.dat

View full thread Shell-Error durchs benutzen von ``