User Tools

Site Tools


public:stuff

This is an old revision of the document!


Stuff

Some miscellaneous stuff that doesn't fit otherwise into the structure

For example, speed test by ''timeout'' + ''dd'', video file comparison using mpv, Windows fork problems

Speed test

root@ubuntu:~# timeout --foreground -s INT 60s dd if=/dev/sda bs=4096 of=/dev/null  # ad-hoc USB3 storage speed test...

Video file comparison using mpv

To just get the console output of mpv where it describes the file played (so we can run a wdiff over the saved outputs of similar files): (Previously, it used to be mplayer –identify or somesuch.)

$ mpv --vo=null --ao=null --frames=1 ...

Windows fork problems

On Windows (Win32 API), a process can well have threads, but no fork()-without-exec() is possible, as processes are created to be separate (spawn?)…

The CygWin compatibility layer for Linux/UNIX-targetted programs had to work hard to get something similar going: CygWin highlights: Process Creation (via ansible controller heavy user of fork() without exec())

public/stuff.1665419773.txt.gz · Last modified: 2022/10/10 18:36 by canvon