Everytime that I run a command to interact the manager(server) to the agent(client) I get ‘snmpget: Timeout’. this happens both ways both are configured to accept connection from remote hosts. I’m new to snmp. I may have forget to do something Answer SNMP protocol uses specific ports (161 &a…
Tag: linux
Linux and Hadoop : Mounting a disk and increasing the cluster capacity [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
running bash piped comand from mono linux
I am trying to run bash command with pipe using mono process start here is code snippet I am trying single commands works, however pipe commands fails to run, what am I missing here ? I tried running “ps -aux” which runs fine. However ps -aux | grep gnome command failed. I tried these scenarios sc…
Running Java from terminal : cannot find text files
I am using Java in Eclipse for file manipulation like editing, searching, etc. For instance I have two text files. One is “sales.txt” and the other is “employees.txt”. The user is supposed to input a beginning date and ending date as arguments. Then the program finds the dates that mat…
Nested grep with SSH
I have a following Shell command which runs successfully: However, I have to SSH to a particular machine to run this. To avoid this, I modified it in following way which leads to the failure: What is wrong with this command? How can I fix this? Answer Embed your code in a quoted heredoc to avoid needing to mo…
Unix pipe experiment hangs
The problem is that this program won’t output the expected START and END, also not exiting unless I kill it from shell. Answer You have the order of the dup2( existing_fd, new_fd ) parameters reversed. You have another bug that breaks lots of “let’s try out pipe(2)” experiments. You ar…
Where should I _append Yocto bitbake task to create work folder symlink?
Let’s say I have my package at I would like to have symlink created each time the new version is fetched and unpacked. How can I achieve that ? Which class, task should I append, extend ? Optionally, I would like to have that for all packages or at least packages in my meta. Answer A new task that comes
Can’t use multiplication in arithmetic expression
The above is the content of calculate.sh. If I use +, -, or /, I get the correct answer, but when I use *, it reports an error: How can I resolve this problem? Answer The problem was as pointed by others the fact than the character * is interpreted by your shell, be it in your terminal or your
`boost::asio` `async_resolve` hangs on Linux, what may be a reason?
I write complex TCP/IP client application that generates a lot of outgoing TCP connections. I try to use boost::asio as portable TCP/IP networking implementation in C++. I found following issue. See the code: This code runs background thread to execute io_service::run method. It is supposed that we’ll h…
Converting euid and egid to username and group name
I looked at some of my system logs and its claiming about errors that apply to random effective user id’s and group id’s. For example: I’m just wondering if theres a simple command I can use in the shell to identify the real username and group ID based on the numbers (which in this example i…