| Deutsch English Français Italiano |
|
<lnuidqFk4dU1@mid.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Frank Winkler <usenet@f.winkler-ka.de> Newsgroups: comp.unix.shell Subject: Re: Different variable assignments Date: Thu, 24 Oct 2024 11:30:34 +0200 Lines: 24 Message-ID: <lnuidqFk4dU1@mid.individual.net> References: <lmt83dFsvbvU3@mid.individual.net> <lmt90sFr1idU1@mid.individual.net> <lmta1jFsvc0U1@mid.individual.net> <vecl6n$d0r$1@dont-email.me> <lmuniuF632tU1@mid.individual.net> <vedlc2$4vi6$1@dont-email.me> <vedofj$5g3v$1@dont-email.me> <lmvkisF860uU2@mid.individual.net> <ln7313Fc93dU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net lF8h5lTCnLCGqvqiuBKeugFsMNIPYrX89sGr/GWm2PfiY/YIy+ Cancel-Lock: sha1:BRv+k/WlgcM5SZ56RfPTp5G72Tw= sha256:6eObYJFWT1gTlrgW51HQqKAcsz2KizUGsb8SR+8yOds= User-Agent: Mozilla Thunderbird Beta Content-Language: en-US In-Reply-To: <ln7313Fc93dU1@mid.individual.net> Bytes: 1888 On 15.10.2024 13:46, I wrote: >The thing in question does > >tty=`tty` >sudo openconnect -b ... |\ > tee $tty | grep "^Session authentication will expire at" |\ > cut -d ' ' -f 7- | read end > >and this completely fails. Terminal output is missing, $end is empty and >the whole command doesn't seem to work. Without the last two lines, it's >working perfectly. >"sudo" also doesn't seem to be the problem as simple tests are working. After some more testing with just a "tee" into a file, it looks like the pipe starts OC and writes its output (including the part I want to "grep" in to the file but then hangs. Everything following this line in the script doesn't seem to be done, anyway. Maybe some effect of the background option? Regards fw