ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Глючит скрипт на баше...
@ 2009-11-18 20:49 Yury Aliaev
  2009-11-18 23:08 ` Alexey Gladkov
  0 siblings, 1 reply; 2+ messages in thread
From: Yury Aliaev @ 2009-11-18 20:49 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Приветствую всех!

Вроде всё элементарно, решил удовлетворить запрос repocopa, для чего 
написал скрипт:

#!/bin/sh
cat ~/list.txt | while read pkg; do
	echo $pkg
	ssh git.alt acl sisyphus "$pkg" add @qa
done

В ~/list.txt -- список пакетов. Но почему-то при запуске скрипта 
происходит выполнение только одного запроса:

[mutabor@Iron_Felix scripts]$ ./git-acl
firefox-fastdial
girar-acl: 1 command(s) queued
[mutabor@Iron_Felix scripts]$

Причём если закомментировать строку с ssh, то выводится полный список 
пакетов. Догадок, почему так происходит, нет.

Заранее спасибо за помощь.
Юрий


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

* Re: [devel] Глючит скрипт на баше...
  2009-11-18 20:49 [devel] Глючит скрипт на баше Yury Aliaev
@ 2009-11-18 23:08 ` Alexey Gladkov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Gladkov @ 2009-11-18 23:08 UTC (permalink / raw)
  To: devel

18.11.2009 23:49, Yury Aliaev wrote:
> Приветствую всех!
> 
> Вроде всё элементарно, решил удовлетворить запрос repocopa, для чего 
> написал скрипт:
> 
> #!/bin/sh
> cat ~/list.txt | while read pkg; do
> 	echo $pkg
> 	ssh git.alt acl sisyphus "$pkg" add @qa

ssh -n

> done
> 
> В ~/list.txt -- список пакетов. Но почему-то при запуске скрипта 
> происходит выполнение только одного запроса:
> 
> [mutabor@Iron_Felix scripts]$ ./git-acl
> firefox-fastdial
> girar-acl: 1 command(s) queued
> [mutabor@Iron_Felix scripts]$
> 
> Причём если закомментировать строку с ssh, то выводится полный список 
> пакетов. Догадок, почему так происходит, нет.

ssh читает весь вывод от cat.

-- 
Rgrds, legion



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

end of thread, other threads:[~2009-11-18 23:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-18 20:49 [devel] Глючит скрипт на баше Yury Aliaev
2009-11-18 23:08 ` Alexey Gladkov

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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