From: cornet <cornet@zmail.ru> To: mandrake-russian@altlinux.ru Subject: Re: [mdk-re] Re: [mdk-re] оторвать sshот консоли Date: Thu Sep 20 15:12:00 2001 Message-ID: <3BA9D061.6B088ED9@zmail.ru> (raw) In-Reply-To: <20010920163334.56e96e79.kt@altlinux.ru> Kostya Timoshenko wrote: > skip. > > > ssh -n host /usr/local/bin/gimp > > > > > > То бишь текущим юзером. > > > Без указания полного пути на работает. Насколько я понял, просто > > > не считывается и не прогружается ~/.bashrc на стороне сервера. > > > > Не, мне текущим юзером не подходит :-(( > > А по ключам (то есть без ввода пользователем пароля) можно > > сделать так, что бы логинилось не текущим юзером?? > > > > Я понял почему оно не работает - xterm успевает сдохнуть ДО того, > > как ssh от него отрывается!! > > Я сделал так: > > создал файл file с содержимым > > > > #!/bin/sh > > ssh -f -l user host -X $1 > > sleep 2 > > > > и вызываю его > > $ xterm -e file prog > > и он отлично после логина грузит prog, а xterm умирает акурат > > через 2 секунды!! > > ЗАРАБОТАЛО! :-)))))) > > > > А теперь следующий вопрос: > > КАК все это в одну строку сделать, что бы НЕ создавать и не > > хранить промежуточный исполняемый файл???? > ssh -f -l user host -X $1;sleep 2 - не пойдет? Нет, не пойдет. По тому, что sleep будет выполнен _вызывающим_ шеллом _после_ того, как отработает xterm -e ssh... то есть после того, как xterm уже безвременно скончался. Я это уже пробовал :-) -- ******** FIRE & STEEL ********
next prev parent reply other threads:[~2001-09-20 15:12 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-09-20 12:57 [mdk-re] оторвать ssh от консоли cornet 2001-09-20 13:06 ` Dmitry V. Levin 2001-09-20 13:47 ` [mdk-re] Re: [mdk-re] оторвать sshот консоли cornet 2001-09-20 14:06 ` Antonio 2001-09-20 14:21 ` cornet 2001-09-20 14:28 ` Kostya Timoshenko 2001-09-20 15:12 ` cornet [this message] 2001-09-20 15:33 ` Antonio 2001-09-20 15:44 ` cornet 2001-09-20 16:13 ` Artem K. Jouravsky 2001-09-20 16:31 ` cornet 2001-09-20 16:51 ` Artem K. Jouravsky 2001-09-20 16:57 ` Artem K. Jouravsky 2001-09-20 17:13 ` cornet 2001-09-20 18:33 ` Artem K. Jouravsky 2001-09-20 17:06 ` John Profic 2001-09-20 17:32 ` [mdk-re] " cornet 2001-09-20 18:32 ` Dmitry V. Levin 2001-09-20 19:01 ` [mdk-re] " cornet 2001-09-20 14:43 ` Antonio
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=3BA9D061.6B088ED9@zmail.ru \ --to=cornet@zmail.ru \ --cc=mandrake-russian@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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