Hallo, nachdem ich es immer wieder leid bin, ewige Zeilen in den Rechner zu hacken, habe ich kleine Scripte geschrieben.
Dazu zählt auch: #!/bin/sh # # /usr/sbin/mac-mfd # mount floppy disk # mount -t msdos /dev/fd0 /floppy Dieses Script läuft einwandfrei auf meinem Server und Router, egal ob ich /bin/sh oder /bin/ash verwende !!! (die gleiche version habe ich auch für CD und ZIP) Das folgende Script hingegen nicht: router# /usr/sbin/mac-cconf /usr/sbin/mac-cconf: not found router# ae -~/usr/sbin/mac-cconf !/bin/sh -> : No such file or directorysh # # /usr/sbin/mac-cconf # Copy config files to floppy disk # mount -t msdos /dev/fd0 /floppy ifconfig -a > /floppy/ifconfig.txt route -n > /floppy/route.txt df > /floppy/df.txt du > /floppy/du.txt free > /floppy/free.txt mkdir /floppy/etc -> ´: Invalid argumentdirectory `/floppy/etc mkdir /floppy/var -> ´: Invalid argumentdirectory `/floppy/var mkdir /floppy/var/log -> ´: No such file or directory `/floppy/var/log # # /etc # cp /etc/exports /floppy/etc/ -> ´: No such file or directory... cp /etc/fstab /floppy/etc/ - " - cp /etc/gateways /floppy/etc/ - " - cp /etc/host.conf /floppy/etc/ - " - cp /etc/hostname /floppy/etc/ - " - cp /etc/hosts /floppy/etc/ - " - cp /etc/hosts.allow /floppy/etc/ - " - cp /etc/hoste.deny /floppy/etc/ - " - cp /etc/inetd.conf /floppy/etc/ - " - cp /etc/network.conf /floppy/etc/ -> cp: /etc/network.conf: No such.. cp /etc/network_direct.conf /floppy/etc/ -> cp: /etc/network_direct.conf: No. ... ... Ein original Script, das funktioniert, ist folgendes: #!/bin/sh # #lrmenu v0.0.1 .... # #Linux Router Project while [ 1 ]; do clear echo echo " Linux Router Project - configuration menu" ... ... Dieses Script befindet sich auf dem Router und ich verwende es häufig! Der Pfad ist folgender: router# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin/:sbin:bin Ich halte es nicht für eine Lösung, den Lattenzaun vor dem Ausrufezeichen wegzulassen, nur damit ein Script funktioniert. Ach ja, alle Scripts haben ein "chmod 755" Michelle ------------------------------------------------ Um sich aus der Liste auszutragen schicken Sie bitte eine E-Mail an [EMAIL PROTECTED] die im Body "unsubscribe debian-user-de <deine emailadresse>" enthaelt. Bei Problemen bitte eine Mail an: [EMAIL PROTECTED] ------------------------------------------------ Anzahl der eingetragenen Mitglieder: 732

