Re: diff

2021-12-13 Thread Dimid Duchovny
diff <(pip freeze) requirements.txt

Le mar. 14 déc. 2021 à 09:32, Eli Marmor  a écrit :

> Use "-" instead the file name of one of both of the files, and pipe your
> output to the diff command.
>
> ‪On Tue, 14 Dec 2021 at 09:12, ‫אורי‬‎  wrote:‬
>
>> Thank you.
>>
>> אורי
>> u...@speedy.net
>> ___
>> Linux-il mailing list
>> Linux-il@cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: diff

2021-12-13 Thread אורי
Hi,

Actually I prefer the "<(..)" method, because sometimes I want to compare 2
commands:

diff <(pip freeze | sort) <(cat requirements.txt | sort)

Or even use cat and echo to add a specific line to one of the outputs. If I
want the result to be completely null. For example to run in crontab and
send me mail whether it's not null.

אורי
u...@speedy.net


On Tue, Dec 14, 2021 at 9:31 AM Eli Marmor  wrote:

> Use "-" instead the file name of one of both of the files, and pipe your
> output to the diff command.
>
> ‪On Tue, 14 Dec 2021 at 09:12, ‫אורי‬‎  wrote:‬
>
>> Thank you.
>>
>> אורי
>> u...@speedy.net
>> ___
>> Linux-il mailing list
>> Linux-il@cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: diff

2021-12-13 Thread Eli Marmor
Use "-" instead the file name of one of both of the files, and pipe your
output to the diff command.

‪On Tue, 14 Dec 2021 at 09:12, ‫אורי‬‎  wrote:‬

> Thank you.
>
> אורי
> u...@speedy.net
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: diff

2021-12-13 Thread אורי
Thank you.

אורי
u...@speedy.net
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


diff

2021-12-13 Thread אורי
Hi,

I want to run diff on the output of a command (pip freeze), and compare it
to a file, but without saving the command output to a file. How do I do it?

I tried "diff $(pip freeze) requirements.txt" but it doesn't work.

Thanks,
אורי
u...@speedy.net
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Fedora 35 and nbd

2021-12-13 Thread Rabin Yasharzadehe
yes,  typo. my bad

I'm with Lenovo P50. But I don't think it's related to the hardware.


--
Rabin


On Mon, 13 Dec 2021 at 12:26, Valery Reznic  wrote:

> You meant can't reproduce?
> I tried to boot from live-usb Fedora 35 3 different lenovo thinkpad
> laptops and problem presents on all of them.
>
> What computer with fedora you have?
>
> Valery
>
>
> On Sunday, December 12, 2021, 06:16:51 PM GMT+2, Rabin Yasharzadehe <
> ra...@rabin.io> wrote:
>
>
> On Fedora 35, and I can reproduce your case,
>
> # modprobe nbd nbds_max=3 && ls -l /dev/nbd* | wc -l
> 3
> # modprobe -r nbd
> # modprobe nbd nbds_max=42 && ls -l /dev/nbd* | wc -l
> 42
>
>
>
>
> --
> Rabin
>
>
> On Sun, 12 Dec 2021 at 18:01, Valery Reznic 
> wrote:
>
> Hello.
> Recently I faced strange problem - when I load nbd module on my freshly
> installed fedora 35 x86-64 there are only 8 nbd devices nbd0 - nbd7, while
> modinfo shows nbds_max=16
> When I load nbd with nbds_max=32 - same thing, 8 nbd devices.
>
> But loading nbd with nbds_max<= 7 works like expected.
>
> Looks like there is a limit somewhere.
>
> I looked in the udev rules, in logs, but so far found nothing of interest.
> Do you have any idea what it can be and how investigate the issue?
>
> Valery
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il