Skip to content
Advertisement

different ips in different terminal with torify

how can we get a different tor circuit with torify command in a separate terminal window? Specifically, if I type a command in a terminal 1 window I receive my IP address in response. but if I try it in another terminal window simultaneously I get the same IP which is a normal behavior. what I am trying to achieve

Read a file that’s constantly updated (C++)

Let me start with saying that I’m around 3 days old in C++. Ok to the main question, I have a file that spans multiple lines, and I’m trying to print one specific line repeatedly, which is subject to change arbitrarily by some other process. Example file : I’m trying to print the middle line (one that starts with somevar).

Bash script return to menu if status code inside of a while loop [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 2 years ago. Improve this question I’m doing a bash script to check cryptocurrency prices, and it updates in a while loop like this: Crypto prices real time updating While loop

extract substrings starting with same pattern in a file

I have a fileA.txt which contains strings: I would like to extract all the substring which start with RS Output: I tried something like this: However I only get the first string RS0247 printed out when I do echo Answer Given the three sample lines pasted above in the file f… Assuming a fixed format: Assuming a flexible format (and

How can I cause a “initscr” break with ncurses?

I know this is a weird question, but I want to get the “initscr” function error mentioned by the doc (getting invalid pointer and an error message on stderr) to test if a wrapper works properly. But I don’t find any information about that. I’m currently working with ncurses 6.2. After few research, I have found that the invalid pointer

Advertisement