Posts

Showing posts from September 9, 2018

Detecting intervals of inactivity in the tty? (to simulate setterm --blank in fbterm)

Image
Clash Royale CLAN TAG #URR8PPP up vote 3 down vote favorite setterm --blank n allows me to configure the virtual terminal to automatically shut the display off after n minutes of inactivity. Unfortunately, I spend all my time in fbterm, where setterm does not apply. I've found that I can manually shut the display off with $ sudo sh -c 'echo 1 > /sys/devices/pci0000:00/0000:00:10.0/0000:02:00.0/graphics/fb0/blank' (and echo 0 to restore it). Is there any way to detect periods of inactivity in the tty/fbterm, so that I can create a script to simulate a setterm --blank setting? terminal tty power-management framebuffer share | improve this question edited Oct 27 '17 at 17:41 asked Oct 27 '17 at 17:31 Ryan Lue 199 7 setterm command only work in /dev/tty* consoles, not from terminal emulators or terminal multiplexers. – Ipor Sircer Oct 27 '17 at 17:35 Thanks! I've updated the ...

How to extract many .doc text + tabular elements into CSV by any Unix tool?

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite 1 This thread is considering the part (1) of the thread How to split Excel table into CSV files in .doc by Bold text? You have 777 .doc files where each .doc file contains a big Excel table. The following working work process works correctly, which allows me to work with the data, since you can convert Spreadsheet data into CSV files and databases. However, I want to automate this step to evaluate better the export process from .doc file into data file, and since there are too many files to do it for all those files. I cannot bulk-study the contents of all those files so I am thinking a scripting approach to iterate through all .doc files, but not sure if any interface and/or scripting tool exists for such a task. Doing CTRL + A and copy-pasting the content into any spreadsheet editor (I used WPS editor) Source files: .doc files containing some text and Excel tables Target file: Excel file, and/or anything similar...

Unable to pull images in Kubernetes

Image
Clash Royale CLAN TAG #URR8PPP up vote 3 down vote favorite I am running Kubernetes on CentOS 7, and I am unable to deploy pods.  After running # kubectl run nginx --image=nginx I run # kubectl describe pod nginx which gives the following output: Name: nginx-701339712-8sx7m Namespace: default Node: node2/192.168.1.126 Start Time: Fri, 27 Oct 2017 14:06:35 -0400 Labels: pod-template-hash=701339712 run=nginx Status: Pending IP: Controllers: ReplicaSet/nginx-701339712 Containers: nginx: Container ID: Image: nginx Image ID: Port: State: Waiting Reason: ContainerCreating Ready: False Restart Count: 0 Volume Mounts: <none> Environment Variables: <none> Conditions: Type Status Initialized True Ready False PodScheduled True No volumes. QoS Class: BestEffort Tolerations: <none> Events: FirstSeen LastSeen Count From SubObjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 21...