Re: journalctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi Pascal,

> exec 6<&0
> exec 0< <( while :; do read -sn1 k; echo $'\n'"# $( date +%H:%M:%S )
> -------------------------------------------"$'\n'; done )
> journalctl -f
> exec 0<&6 6<&-
>
> the second instruction "exec 0< <( while..." played alone works perfectly
> in my terminal, but not as a redirection for journalctl.
> any leads ?

Don't you want to redirect journalctl's stdout into your while-loop, but
you're changing the shell's, and thus journalctl's, stdin to come from
the while-loop.

    exec 6>&1
    exec 1> >(sed -n l)
    seq 3
    exec 1<&6 6<&-

-- 
Cheers, Ralph.



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux