-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panedの2番目のタブで取得できない #290
Comments
I think the reason why it doesn't work as your expectation would be because the yad for the first tab passes nothing to the next yad through the pipe. What about using tee and the process substitution? #!/bin/bash
while true; do
echo aaa
sleep 1
echo bbb
sleep 1
if [[ -z `ps -A | grep yad` ]]; then
break;
fi
done |
tee >(yad --plug=$$ --tabnum=1 --form --field=: --cycle-read) |
yad --plug=$$ --tabnum=2 --form --field=: --cycle-read &
yad --paned --key=$$ --width=300 --height=150 The above code works like this, I'm not sure if it's your expected behavior though. Possibly you might want to show Screencast.From.2025-02-16.17-30-10.mp4See also: https://qiita.com/ronin_gw/items/bacef57a53411bbc7406 |
ありがとうございます。 while true; do |
This comment has been minimized.
This comment has been minimized.
aaaとbbbは最初のループで変化する値を取得して、それぞれのタブで表示したいと思っています。説明不足ですいません。 |
Don't you mean --field=:txt
…On Fri, 21 Feb 2025, 20:31 Ryo Nakano, ***@***.***> wrote:
コメントの最後に言っているように、最初のタブでaaa、2番目のタブでbbbを表示したいと思っています。
I'm not sure why we need the infinite loop here then. What about the
following code?
#!/bin/bash
echo aaa | yad --plug=$$ --tabnum=1 --form --field=: --cycle-read &echo bbb | yad --plug=$$ --tabnum=2 --form --field=: --cycle-read &
yad --paned --key=$$ --width=300 --height=150
—
Reply to this email directly, view it on GitHub
<#290 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/APRODETTYMRYOQNXQBUUB3D2Q4MB7AVCNFSM6AAAAABXDZ3XHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZUGQZTGNJVGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[image: ryonakano]*ryonakano* left a comment (v1cont/yad#290)
<#290 (comment)>
コメントの最後に言っているように、最初のタブでaaa、2番目のタブでbbbを表示したいと思っています。
I'm not sure why we need the infinite loop here then. What about the
following code?
#!/bin/bash
echo aaa | yad --plug=$$ --tabnum=1 --form --field=: --cycle-read &echo bbb | yad --plug=$$ --tabnum=2 --form --field=: --cycle-read &
yad --paned --key=$$ --width=300 --height=150
—
Reply to this email directly, view it on GitHub
<#290 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/APRODETTYMRYOQNXQBUUB3D2Q4MB7AVCNFSM6AAAAABXDZ3XHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZUGQZTGNJVGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
panedの1番目のタブではコマンドラインから取得できるのですが、2番目のタブでは取得できません。
どうすれば出来ますか?
例えば以下のように
while true; do
echo aaa
sleep 1
echo bbb
sleep 1
if [[ -z
ps -A | grep yad
]]; then break; fidone | yad --plug=$$ --tabnum=1 --form --field=: --cycle-read|
yad --plug=$$ --tabnum=2 --form --field=: --cycle-read &
yad --paned --key=$$ --width=300 --height=150
The text was updated successfully, but these errors were encountered: