[Python-de] Systemkommandos in der Python-Shell
Gerson Kurz
Gerson.Kurz at t-online.de
Sat Jul 13 21:18:59 EDT 2002
Hallo,
Ich hatte folgende Schnappsidee
- schreibe ein modul, das z.B. eine Funktion ls() exportiert mit argumenten
- mache ls() der Python-Shell als Befehl bekannt
- eine Eingabe "ls -a" wird umgelenkt in ls("-a")
Step 2 ist notwendig, damit "ls -a" nicht als "ls minus a" interpretiert
wird.
Machbar, und wenn ja - Lesetips ?
Hätte den Vorteil, daß man noch einfacher im Filesystem mit Python
rumfuhrwerkeln kann :=)
Ciao, Gerson
More information about the Python-de
mailing list