Mailinglist Archive: opensuse-de (4731 mails)
| < Previous | Next > |
Shell Skript : hier noch das derzeitige skript
- From: "Andreas Wahl" <linux@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 Jul 2001 16:12:22 +0200
- Message-id: <005801c11513$d2e3a220$fe78a8c0@xxxxxxxxxxxxxx>
Hi!
kann mir hier mal jemand den aufbau eines Shell Skriptes posten? bei mir
läuft das irgendwie nicht!
danke!
Fogendes Skript habe ich mit vi erstellt und anschließend mit chmod 777
cpfiles für alle ausführbar gemacht -rwxrwxrwx.
beim ausführen kommt die meldung:
bash: cpfiles: command not found
#!/bin/sh
mount -t vfat /dev/fd0 /floppy
mv /etc/squid.conf /etc/squid.conf.old
mv /etc/hosts /etc/hosts.old
cp /floppy/squid.conf /etc/squid.conf
cp /floppy/hosts /etc/hosts
chmod 644 /etc/squid.conf
chmod 644 /etc/hosts
umount /dev/fd0
kann mir hier mal jemand den aufbau eines Shell Skriptes posten? bei mir
läuft das irgendwie nicht!
danke!
Fogendes Skript habe ich mit vi erstellt und anschließend mit chmod 777
cpfiles für alle ausführbar gemacht -rwxrwxrwx.
beim ausführen kommt die meldung:
bash: cpfiles: command not found
#!/bin/sh
mount -t vfat /dev/fd0 /floppy
mv /etc/squid.conf /etc/squid.conf.old
mv /etc/hosts /etc/hosts.old
cp /floppy/squid.conf /etc/squid.conf
cp /floppy/hosts /etc/hosts
chmod 644 /etc/squid.conf
chmod 644 /etc/hosts
umount /dev/fd0
| < Previous | Next > |