Shell Script Command not found ?!

Erks

Erfahrenes Mitglied
System: LINUX Ubuntu 13.04

Hallo,

ich habe ein Problem bei einem Shellscript: :eek:
Wenn ich das Script ausführen möchte, sagt mir das Terminal

...
step01_entpacken.sh: 11: step01_entpacken.sh: mkdir: not found
step01_entpacken.sh: 12: step01_entpacken.sh: mkdir: not found
step01_entpacken.sh: 14: step01_entpacken.sh: cp: not found
step01_entpacken.sh: 15: step01_entpacken.sh: cp: not found
step01_entpacken.sh: 17: cd: can't cd to system
step01_entpacken.sh: 20: step01_entpacken.sh: tar: not found
step01_entpacken.sh: 21: step01_entpacken.sh: bzip2: not found
step01_entpacken.sh: 23: step01_entpacken.sh: rm: not found
step01_entpacken.sh: 26: cd: can't cd to rootfs
step01_entpacken.sh: 27: step01_entpacken.sh: cp: not found
step01_entpacken.sh: 28: step01_entpacken.sh: tar: not found
step01_entpacken.sh: 29: step01_entpacken.sh: rm: not found
...

Wenn ich die Befehle allerdings außerhalb des Scripts aufrufe, d.h. normal im Terminal, dann kann ich z.B. mkdir problemlos ausführen.
Im Terminal rufe ich das Script mit dem Befehl

sh step01_entpacken.sh

auf und der Header im Script lautet


oder

 
Modifizierst du in dem Skript irgendwo die PATH-Variable und überschreibst sie vielleicht dabei?

Gruß
MCoder
 
Zurück