Leser: 2
![]() |
|< 1 2 >| | ![]() |
17 Einträge, 2 Seiten |
1 2 3 4 5
use IPC::Run qw(start pump finish); my $location = "./test.txt"; my @prog = "kate"; start \@prog, \$location;
Gast+2007-11-27 17:14:51--also bei start() hab ich aber noch ein kleines prob.
Ich kann die Datei, die er öffnen soll, irgendwie nicht übergeben.
Code (perl): (dl )1 2 3 4 5use IPC::Run qw(start pump finish); my $location = "./test.txt"; my @prog = "kate"; start \@prog, \$location;
wenn ich das mache, dann öffnet sich zwar kate, aber nur mit einem leeren Dokument und in der Konsole steht dann "QFile::open: No file name specified"
start( "kate", $location );
Gast+2007-11-27 15:35:00--Das steht in perldoc perlport unter system:@ptk: Wie bist du darauf gekommen system() mit einer 1 am Anfang ( Win32 ) aufzurufen?
Habs bei mir gerade mal ausprobiert, das funktioniert ja ausgezeichnet!
QuoteAs an optimization, may not call the command shell specified in
$ENV{PERL5SHELL}. "system(1, @args)" spawns an external
process and immediately returns its process designator, without
waiting for it to terminate. ... (Win32)
![]() |
|< 1 2 >| | ![]() |
17 Einträge, 2 Seiten |