ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] notify from root (копирование с флешки из udev)
@ 2015-03-19 19:30 Денис Смирнов
  2015-03-19 21:26 ` Michael Shigorin
  0 siblings, 1 reply; 2+ messages in thread
From: Денис Смирнов @ 2015-03-19 19:30 UTC (permalink / raw)
  To: community

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

Решил облегчить себе жизнь -- сделал правило для udev + скрипт, которые
при втыкании диктофона переносят на комп все записи оттуда.

И тут возникло две проблемы:

1. Каким образом можно уведомить себя о том, что копирование завершено и
диктофон можно выдергивать?

2. У диктофона есть своя память и MicroSD. Соответственно копирование
запускается с обоих. Как при этом убедиться, что копирование завершено
именно с обоих разделов?

-- 
С уважением, Денис

http://mithraen.ru/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

* Re: [Comm] notify from root (копирование с флешки из udev)
  2015-03-19 19:30 [Comm] notify from root (копирование с флешки из udev) Денис Смирнов
@ 2015-03-19 21:26 ` Michael Shigorin
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Shigorin @ 2015-03-19 21:26 UTC (permalink / raw)
  To: community

On Thu, Mar 19, 2015 at 10:30:07PM +0300, Денис Смирнов wrote:
> 1. Каким образом можно уведомить себя о том, что копирование
> завершено и диктофон можно выдергивать?

aplay, например.  Если не факт -- рассказывай, на что реагируешь.

> 2. У диктофона есть своя память и MicroSD. Соответственно
> копирование запускается с обоих. Как при этом убедиться,
> что копирование завершено именно с обоих разделов?

Каждый процесс выставляет свой флажок и проверяет второй,
при наличии дёргает сигнализатор.

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


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

end of thread, other threads:[~2015-03-19 21:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-19 19:30 [Comm] notify from root (копирование с флешки из udev) Денис Смирнов
2015-03-19 21:26 ` Michael Shigorin

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