Ich musste mein Acc wechseln da der Gast acc und mein richtiger als Spam eingestuft wurden. Warum auch immer
Okey danke euch beiden nur habe ich nun folgendes Problem:
wenn ich das ganze so mache:
my $abfrage = 'rsh \$ARGV[0] export SEMAPHOREN_PATH=\$remote_sem_path && env | grep SEMA && \$net_post_path . "/netposts" \$ARGV[1] ls -lisa SEMAPHOREN_PATH && ipcs -s -a';
sagt er: name $ARGV[0] NOT FOUND
wenn ich es mit den einfachen Anführungszeichen mache:
my $abfrage = 'rsh '\$ARGV[0]' export SEMAPHOREN_PATH='\$remote_sem_path' && env | grep SEMA && '\$net_post_path' . "/netposts" '\$ARGV[1]' ls -lisa SEMAPHOREN_PATH && ipcs -s -a';
kommt eine Kolone an Fehlermeldungen:
QuoteBackslash found where operator expected at test.pl line 23, near "'rsh '\"
(Missing operator before \?)
String found where operator expected at test.pl line 23, near "]' export SEMAPHOREN_PATH='"
(Missing operator before ' export SEMAPHOREN_PATH='?)
Backslash found where operator expected at test.pl line 23, near "' export SEMAPHOREN_PATH='\"
(Missing operator before \?)
String found where operator expected at test.pl line 23, near "$remote_sem_path' && env | grep SEMA && '"
(Missing operator before ' && env | grep SEMA && '?)
Backslash found where operator expected at test.pl line 23, near "' && env | grep SEMA && '\"
(Missing operator before \?)
String found where operator expected at test.pl line 23, near "$net_post_path' . "/netposts" '"
(Missing operator before ' . "/netposts" '?)
Backslash found where operator expected at test.pl line 23, near "' . "/netposts" '\"
(Missing operator before \?)
String found where operator expected at test.pl line 23, near "]' ls -lisa SEMAPHOREN_PATH && ipcs -s -a'"
(Missing operator before ' ls -lisa SEMAPHOREN_PATH && ipcs -s -a'?)
syntax error at test.pl line 23, near "'rsh '\"
Execution of test.pl aborted due to compilation errors.