mysql:8622
From: Kazuhiro Yoshida <Kazuhiro Yoshida <moriq@xxxxxxxxxx>>
Date: Mon, 19 Jan 2004 01:27:16 +0900
Subject: [mysql 08622] Re:
もりきゅうです。 <konet218@xxxxxxxxxx> wrote: > $a = "mysql -h $hostname -u $username -p $dbname < $filename"; > systems($a); > と、してみましたが何も起こりません。 system ですね。 #!/usr/bin/perl use strict; my $hostname = "localhost"; my $username = "root"; my $passwd = "password"; my $dbname = "test"; my $filename = "insert.sql"; my $a = "mysql -h $hostname -u $username -p$passwd $dbname < $filename"; system($a) == 0 or die "system failed: $?"; > # エラーメッセージさえ表示されません。 -w を付けましょう。 $ perl -w system.pl Undefined subroutine &main::systems called at system.pl line 9. ---- YOSHIDA Kazuhiro moriq@xxxxxxxxxx http://www.moriq.com/
8621 2004-01-19 00:48 [<konet218@xxxxxxxxxx] -> 8622 2004-01-19 01:27 ┗[Kazuhiro Yoshida <mo] 8623 2004-01-19 01:58 ┗[<konet218@xxxxxxxxxx] 8624 2004-01-19 02:05 ┗[Kazuhiro Yoshida <mo] 8625 2004-01-19 02:28 ┗[<konet218@xxxxxxxxxx] 8626 2004-01-19 03:40 ┗[Kazuhiro Yoshida <mo] 8627 2004-01-19 05:17 ┗[<konet218@xxxxxxxxxx] 8628 2004-01-19 06:03 ┣[mohri <mohri@xxxxxxx] 8629 2004-01-19 10:15 ┗["yuu@" <yuu@xxxxxxxx] 8630 2004-01-19 13:01 ┗[<konet218@xxxxxxxxxx]