![]() |
![]() |
|
![]() |
![]() |
|
Programmierung Rat & Tat für Programmierer |
![]() |
|
Themen-Optionen | Ansicht |
![]() |
#1 |
Hero
![]() |
![]() Hi!
Ich versuche gerade, einen Bash-Befehl per Script zu automatisieren. Das Problem ist, daß ein Wert für einen Parameter aus 2 Worten besteht. In der Kommandozeile führt Linux den Befehl auch brav aus, wenn ich den Wert in Hochkommata setze. Wenn ich das ganze via Script ausführen lasse, kommt die Beschwerde über ein falsches Command-Line Argument. Any ideas, wie ich das Problem umschiffen kann? lg, Athropos
____________________________________
Einstein, Pascal and Newton are playing hide and seek. Einstein is \"it\" so he faces the wall, closes his eyes and counts to π. Pascal runs off like an idiot but Newton pulls out a piece of chalk and draws a 1m x 1m square on the ground and then stands in it\'s centre. Einstein\'s done counting and turns around and sees Newton, so he grabs him and screams \"I found Newton!\" Then Newton smirks and says, \"I\'m not Newton, I\'m Pascal\". |
![]() |
![]() |
![]() |
#2 |
Hero
![]() Registriert seit: 26.07.2001
Ort: Wien
Beiträge: 811
|
![]() bitte genauere infos... ich habe das ganze soeben erfolgreich getestet...
____________________________________
nobody is perfect |
![]() |
![]() |
![]() |
#3 |
Hero
![]() |
![]() also,ich versuche, ein Backupscript für Scalix zu schreiben
Der Befehl, eine Mailbox zu exportieren lautet Code:
omcpoutu -n name -f filename Tippe ich in die Kommandozeile Code:
omcpoutu -n "zweiter User" -f zweiterUser.backup Führe ich diese Zeile (konstruiert über Variablen) im Script aus, bekomme ich die Meldung: omcpoutu : Invalid command-line argument Den Befehl direkt im Script eingetippt, funktioniert es auch. Daß meine Zusammensetzung falsch ist, glaub ich nicht, da ich mir Debughalber den String mit dem Befehl auch ausgeben hab lassen.
____________________________________
Einstein, Pascal and Newton are playing hide and seek. Einstein is \"it\" so he faces the wall, closes his eyes and counts to π. Pascal runs off like an idiot but Newton pulls out a piece of chalk and draws a 1m x 1m square on the ground and then stands in it\'s centre. Einstein\'s done counting and turns around and sees Newton, so he grabs him and screams \"I found Newton!\" Then Newton smirks and says, \"I\'m not Newton, I\'m Pascal\". |
![]() |
![]() |
![]() |
#4 |
Hero
![]() Registriert seit: 26.07.2001
Ort: Wien
Beiträge: 811
|
![]() verwendest du
Code:
eval $variable
____________________________________
nobody is perfect |
![]() |
![]() |
![]() |
#5 |
Hero
![]() |
![]() nein, hab ich nicht verwendet
aber damit funktionierts gibts evtl. eine Erklärung, wieso? ich steh grad am schlauch... DANKE! Athropos
____________________________________
Einstein, Pascal and Newton are playing hide and seek. Einstein is \"it\" so he faces the wall, closes his eyes and counts to π. Pascal runs off like an idiot but Newton pulls out a piece of chalk and draws a 1m x 1m square on the ground and then stands in it\'s centre. Einstein\'s done counting and turns around and sees Newton, so he grabs him and screams \"I found Newton!\" Then Newton smirks and says, \"I\'m not Newton, I\'m Pascal\". |
![]() |
![]() |
![]() |
#6 |
Hero
![]() Registriert seit: 26.07.2001
Ort: Wien
Beiträge: 811
|
![]() vielleicht hilft dir dieser link...
____________________________________
nobody is perfect |
![]() |
![]() |
![]() |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|