Why do I get “/bin/sh: Argument list too long” when passing quoted arguments?

TL;DR A single argument must be shorter than MAX_ARG_STRLEN. Analysis According to this link: And as additional limit since 2.6.23, one argument must not be longer than MAX_ARG_STRLEN (131072). This might become relevant if you generate a long call like “sh -c ‘generated with long arguments’”. This is exactly the “problem” identified by the OP. … Read more

How to Determine if LCD Monitor is Turned on From Linux Command Line

The VESA DDC connection is an I2C connection that can be used to query the presence of the monitor. Linux exposes the I2C device and userland programs can communicate directly with the monitor with code such as that at http://jaffar.cs.msu.su/oleg/ddcci/ Notice this below: Control 0xe1: +/1/1 [SAM: Power control (0 – off/1 – on)] # … Read more

Are there any better command prompts for Windows?

2019 Update: Microsoft has released the terminal app on Github & the Windows Store, and it has tabs, panels, acrylic transparency, and other features. 2016 Update: Windows 10’s default conhost UI has more features, including free resize, transparency, etc (this includes cmd & powershell) I now use ConEmu (walkthrough here) which has many features including … Read more

Command Line Parser with mutually exclusive required parameters

As of version 2.0 of CommandLineParser The feature as implemented in 1.9.x stable always created confusion, was disabled by default and required the developer to activate it via settings instance. From version 2.0.x, where the kernel was completely rewritten, the feature is always active and I’ll show a simple example: class Options { [Option(SetName = … Read more