ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] Новыйскрипт
@ 2001-04-17 21:37 Sergei
  2001-04-17 22:58 ` Sergey Vlasov
  2001-04-18  1:21 ` [mdk-re] " Aleksandr Blohin
  0 siblings, 2 replies; 6+ messages in thread
From: Sergei @ 2001-04-17 21:37 UTC (permalink / raw)
  To: mandrake-russian

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

Достал тут себе (наконец-то) заветные диски Spring 2001, ну и решил 
проверить, все ли читается. И для этого сварганил небольшой скрипт. Прошу 
любить и жаловать :)))
Жду вашей реакции. Лучше мне лично.

-- 
С уважением, Епифанов Сергей

[-- Attachment #2: testcd --]
[-- Type: text/plain, Size: 442 bytes --]

#!/bin/sh
#Версия 0.2. Исправлен (смешной) баг с каталогами.
#Версия 0.1 от Епифанова Сергея
#Проверяет на чтение все файлы из каталога /mnt/cdrom (обычно - CDROM)
cd "/mnt/cdrom${1}"
for i in *;
do
    if [ -d $i ];
    then
	echo "Dir=/mnt/cdrom${1}/$i"
	~/work/testcd "${1}/$i"
    elif [ -L $i ];
	echo -n
    else
	echo -n "File=$i"
	cat $i >/dev/null
	if [ $? -eq 0 ];
	then
	    echo " - Ok"
	else
	    echo " - ERROR!"
	fi
    fi
done

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-04-18 21:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-17 21:37 [mdk-re] Новыйскрипт Sergei
2001-04-17 22:58 ` Sergey Vlasov
2001-04-18  1:08   ` Sergei
2001-04-18  1:21 ` [mdk-re] " Aleksandr Blohin
2001-04-18 17:04   ` [mdk-re] Re: [mdk-re] îÏ×ÙÊÓËÒÉÐÔ ëÁÒÐÅÎËÏ× óÅÒÇÅÊ
2001-04-18 21:39     ` [mdk-re] Re: [mdk-re] Новыйскрипт Sergei

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git