Thread Remote Shell Variablen (11 answers)
Opened by audacity363 at 2013-10-02 08:26

Eng1958
 2013-10-02 09:58
#170893 #170893
User since
2013-06-04
37 Artikel
BenutzerIn
[default_avatar]
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:
Code: (dl )
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:
Code: (dl )
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:
Quote
Backslash 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.

View full thread Remote Shell Variablen