[Linux-programlama] küçük bir betik sorunu

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Mustafa Aldemir (m_aldemir@yahoo.com)
Date: Mon 04 Jul 2005 - 15:18:56 EEST


Arkadaşlar merhaba,

aşağıdaki kodu yazıp bir dosya olarak kaydettim.
Çalıştırmak istediğimde hata veriyor. Yardım edebilir
misiniz?

# sh /home/musti/betikler/dosya_yedek.sh
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]

---------dosya_yedek.sh---------------
#!/bin/sh
BACKSDIR="/yedek/hosting"
DATE=`/bin/date "+%Y%m%d"`

mkdir -p ${BACKSDIR}/${DATE}
cd /home/

for i in `find /home/ -name *-web -type d`
do
tar -cvvf ${BACKSDIR}/${DATE}/${i}.tar ${i}
done

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.