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 …
Tag: linux
Trouble redirecting an error in pipeline using Bash?
So I used this command to get all .conf files from /etc/. I want the output in total_size.txt and my errors in error.txt. My output looks good, but the errors won’t redirect to error.txt, they appear in my terminal: I don’t know what to do; I tried 2>> instead of 2> but it won’t wor…
How to do dynamic port forwarding using Ruby
How do I do SSH dynamic port forwarding on Ruby? I tried to use gems such as “net/ssh/socks” and “net/ssh/gateway”, but it looks like they are already outdated because I can’t even require them. All I need to do is run this shell command and receive the PID of this process. I also trie…
Searching a text file backwards from the end
I’m trying to find the string containing the substring in a text file by starting at the end. The file has tens of millions of lines. (The requirement is to read from End of the File. I cannot use sed/awk/grep etc) The below program does the job but it takes a long time. How can I make it run faster?
Why is Pip not working after upgrading Python to 3.8?
I was working on a 2D game using python 3.6.8 and pip3. Everything was working fine. Then i downloaded and installed python 3.8. Now, pip won’t work at all. These are the errors I am getting when running “pip3 install arcade”: PLEASE HELP, I would like to continue making my game. Answer The …
Retrieve logged on user name or id in the process running under root
I need to run from a privileged (root) application another application with current logged on user. getenv(“USER”) and getenv(“LOGNAME”) return “root” in the privileged application. Effective and current user ids are 0. I found something close to my needs, user-1000.slice, …
Unable to use grep for a command and excecute the shell script?
I have created a shell script to execute 5 commands from a file called elist.txt The shell script is as follows output: Answer You can do this too. People usually do not recommend to use eval at all. Regards!
How to access local variables in remote server using ssh [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago. Improve this question I am trying to access my local variable in remote server. Which command should I use. Ex. cm…
Error “Command “server” is not defined” using Apache on Ubuntu? [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 …
bash shell script for loop
I have a bash shell script that loops through a server list file to verify a user exists on that server. My question is, I want the script to echo out which servers the user exists on before executing command: sleep; clear; main_sec <(this is a function) problem is as soon as that condition is met, it just…