Query a remote server’s operating system
I’m writing a microservice in Node.js, that runs a particular command line operation to get a specific piece of information. The service runs on multiple server, some of them on Linux, some on Windows. … Read more
How to protect yourself against shell DLLs loaded into your process?
When you use a standard Windows “file open” dialog using GetOpenFileName(), the shell will load various DLLs that it requires to display the file list, including custom ones.
In … Read more
How do a run a bash script on save in NetBeans?
I am using NetBeans 6.5 and whenever I save a LessCSS file I would like to run less compiler to compile it to native css. How do I go … Read more
Can you write a simple weekly reminder using a bash/sh script quine?
I need to set myself a reminder to attend a weekly meeting. The trouble with my company’s standard reminder tool is that when it runs under wine, it … Read more
What is common between environments within a shell terminal session?
I have a custom shell script that runs each time a user logs in or identity is assumed, its been placed in /etc/profile.d and performs some basic env variable operations. … Read more
How can I find out the original username a process was started with?
There is a perl script that needs to run as root but we must make sure the user who runs the script did not log-in originally as … Read more
Add a function to a program, and call that function from the command line in the function
I have to add a custom function which shows currently running foreground and background processes launched by this shell. How do I define … Read more
Writing android app that executes linux commands
I have an compiled executable that is supposed to copy itself from the res folder, and into the /data/data/package-name/ folder, and change the permissions, and then execute. Every step completes all the way … Read more
How to search groups of 3 lines with a certain pattern?
What I want to do is simply search and print groups of 3 consecutive lines in the following file:
C30 1.86494717 7.48500210 9.88662475
O86 1.23405589 6.84423578 21.24967645
O88 5.28196032 … Read more
How can we get list of non-system users on linux?
Considering that all users with id = 1000 are non-system users, how can we get list of these users in a single command?
… Read more