Leser: 2
6 Einträge, 1 Seite |
1 2
$cmd = "g_rms -f " . $f1 ." -s " . $f2 . " << Ende\n 1 << 1 << Ende"; system $cmd;
1 2
$cmd = "make_ndx -f " . $f1 . " << Ende\n r ".$alpha1HelixStart. "-" .$alpha1HelixEnd. " << r " . $alpha2HelixStart . "-" . $alpha2HelixEnd." << q << Ende"; system $cmd;
lordy2008+2008-11-10 16:09:04--Code (perl): (dl )1 2$cmd = "g_rms -f " . $f1 ." -s " . $f2 . " << Ende\n 1 << 1 << Ende"; system $cmd;
system("cat <<ENDE - \n1 << 1 << ENDE")
1 << 1 << ENDE
system("cat <<ENDE - \n1\n1\nENDE")
1 2
$cmd = "g_rms -f $f1 -s $f2 << Ende\n1\n1\nEnde"; system $cmd ==0 or die "Fehler ($?)\n";
lordy2008+2008-11-10 16:09:04--Code (perl): (dl )1 2$cmd = "make_ndx -f " . $f1 . " << Ende\n r ".$alpha1HelixStart. "-" .$alpha1HelixEnd. " << r " . $alpha2HelixStart . "-" . $alpha2HelixEnd." << q << Ende"; system $cmd;
1 2 3 4 5 6
$cmd = "make_ndx -f $f1 << Ende\n". "r ${alpha1HelixStart}-${alpha1HelixEnd}\n". "r ${alpha2HelixStart}-${alpha2HelixEnd}\n". "q\n". "Ende"; system $cmd ==0 or die "Fehler ($?)\n";
1 2 3 4 5
open(my $cmd, "| make_ndx -f $f1") or die "Fehler: $!"; print $cmd "r ${alpha1HelixStart}-${alpha1HelixEnd}\n"; print $cmd "r ${alpha2HelixStart}-${alpha2HelixEnd}\n"; print $cmd "q\n"; close($cmd) or die "Fehler: $!\n";
1 2 3 4 5
$cmd = "make_ndx -f $f1 << Ende\n". "r ${alpha1HelixStart}-${alpha1HelixEnd}\n". "r ${alpha2HelixStart}-${alpha2HelixEnd}\n". "q\n". "Ende";
system $cmd ==0 or die "Fehler ($?)\n";
1 2 3 4
#!/usr/bin/perl -w use strict; my $cmd = "pwd"; system $cmd == 0 or die "error ($?)\n";
1
2
Argument "pwd" isn't numeric in numeric eq (==) at ./test.pl line 7.
Can't exec "1": Datei oder Verzeichnis nicht gefunden at ./test.pl line 7.
1 2 3 4
#!/usr/bin/perl -w use strict; my $cmd = "pwd"; (system $cmd) == 0 or die "error ($?)\n";
6 Einträge, 1 Seite |