“watch” is nice, but sometimes I like this better:
$ while sleep 2; do echo -n “$(date ‘+%F %T : ‘)”; …; done
“watch” is nice, but sometimes I like this better:
$ while sleep 2; do echo -n “$(date ‘+%F %T : ‘)”; …; done
Features:
Implementations:
I urgently need to replace mintty within my Cygwin environment by something more serious. I need to split the screen horizontally or vertically. And I cannot cope with GNU screen‘s shortcomings – esp. with its learning curve.
Context:
Update 2018-07-10:
My impression: konsole on Cygwin is buggy: it halts suddenly after a while.
I now prefer qterminal, the Qt terminal emulator.
Compares two files on a word per word basis, finding the word deleted or added from the first file to make the second. A word is defined as anything between whitespace. It works by creating two temporary files, one word per line, and the executes ‘diff’ on these fields. It collects the ‘diff’ output and uses it to produce a nicer display of word differences between the original files.
The getent command displays entries from databases supported by the Name Service Switch libraries, which are configured in /etc/nsswitch.conf. If one or more key arguments are provided, then only the entries that match the supplied keys will be displayed. Otherwise, if no key is provided, all entries will be displayed (unless the database does not support enumeration).
My DS713+ (Intel based Synology NAS) does not have in on board, its Entware repository neither, but using “locate” I spotted a binary in a docker installation. It looks, like it is compiled for Debian, but it runs anyway.
getent on macOS: basically it’s not there and there is no way to get it, and it does not make sense to emulate it; use the right tools on macOS!
$ startxwin
I usually prefer the rootless way.
My applications nowadays “usually” run on a Linux (Debian, …) system or AIX.
Update 2018-04-18: After some cygwin updating startxwin prefers to shut down immediately instead of offering me a menu (“xwin-xdg-menu … — an XDG Desktop Menu Specification menu“) in the system tray. I only use it for starting a Cygwin terminal. How bad, I wasn’t able to recall the name of that menu. You cannot search, what you cannot name.
I had no idea, that startxwin uses this start-up file: /etc/X11/xinit/startxwinrc . The last utility called there usually makes X wait for ever, but it faulted:
/usr/bin/xwin-xdg-menu
This is an alternative way to start X / my fallback solution:
$ xinit — -multiwindow -clipboard
Within a shell window started there I ran:
$ strace /usr/bin/xwin-xdg-menu
It said, there was a problem with cygfreetype-6.dll . This web page tells you, which cygwin packages include the file in question:
https://cygwin.com/cgi-bin2/package-grep.cgi
I reinstalled that package, and everything was fine.
Any lesson learned? The cygwin updating silently (?!?) left at least one corrupt file (again …). Quite hard to find out, which one was concerned. I reinstalled that package within cygwin set-up, and my problem was solved. I cost me a couple of hours — and I did not need the thrill, trust me!
$ startxwin
I usually prefer the rootless way.
My applications nowadays “usually” run on a Linux (Debian, …) system or AIX.
Update 2018-04-18: After some cygwin updating startxwin prefers to shut down immediately.
I had no idea, that startxwin uses this start-up file: /etc/X11/xinit/startxwinrc . The last utility called there usually makes X wait for ever, but it faulted:
/usr/bin/xwin-xdg-menu
This is an alternative way to start X / my fallback solution:
$ xinit — -multiwindow -clipboard
Within a shell window started there I ran:
$ strace /usr/bin/xwin-xdg-menu
It said, there was a problem with cygfreetype-6.dll . This weg page tells you, which cygwin packages include the file in question:
https://cygwin.com/cgi-bin2/package-grep.cgi
I reinstalled that package, and everything was fine.
Any lesson learned? The cygwin updating silently (?!?) left at least one corrupt file. Quite hard to find out, which one was concerned.