Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I have a bash script that makes some work supervising network stuff, it works great when I run it manually, but when I put it in supervisor the ifs and the whiles does not work, just stops before any of those programming sentences, echos, running cat, more and other things work just fine, but in the minute I put an if nothing else work from there on.
Please give me some tips, I really need to run this script from supervisor.
Thanks Etan Reisner, I have already fix the problem, I will put it here so if anyone else have the same problem see why.
The problem was so simple (as usual) I was reading the content of text files /sys/class/net/eth0/carrier and /sys/class/net/eth0/operstate to detect when the network cable was plugged and unplugged and I was doing it with more that (I don't know why, because if I ran the script manually worked great) when was executed in supervisor stopped the execution there after the first more, I just changed to cat and that was it.
Haft a day spent to solve that.
Hope if someone gets into this kind of trouble find this answer and that way can solve the problem fast.
Regards
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 days ago.
Improve this question
I'm using a Linux buildserver, to be honest this is the first time.
I access it through VScode, using the available extensions.
Every time I build the code the memory of my linux buildserver is consumed at a point it reaches its limits, then start presenting erros due to this.
Other thing I notice, If I use a linux screen, it uses a huge amount of memory too.
Which should be the ways to deal with this environments ?
I dont know if this should be normal behaviour, every time I build it consumes more memory.
Could VScode having some impact on this ?
Is this the normal behaviour of a buildserver ? I want to understand why.
Thank you very much !
I'm trying to use a linux buildserver, but every time I try to build my code It uses too much memory of the buildserver. I want to know if this is normal or If there is some setup I need to do.
In general, I kindly ask for some explanation about how the buildserver works regarding to memory management.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 months ago.
Improve this question
I'm an engineering Ph.D. student who needs to deal with lots of programming in my career path. However, as I said in the title, I run into problems almost every time I want to install a new programming language, an IDE, or even a new package.
Of course, I start to troubleshoot by blindly copying and pasting the error messages into google in the hope of finding someone who would have been dealing with the exact same problem before. But sometimes I get lost. I have once ruined everything so badly that I had to re-install the whole OS! There are also times that my problem is resolved, but still, I have no sense about what exactly was the problem.
Long story short, I want to change this and start learning about something from scratch that may help me with that. But I don't know where to start! Any suggestions in this regard? I am familiar with programming with Python, Julia, and using some LaTeX through overleaf. That's all!
I believe this is the problem of so many other engineering students who want to start programming but are stuck at step zero :-)
(To be more specific, I can name a few keywords that pop up more frequently than others during the troubleshooting process: PATH environment, zsh, compile error, kernel, package not found, terminal, shell, etc.)
Edit: of course I did lots of research about these terms on the internet. Posting here was my last option. My question is very specific. I did not ask for explaining these terms to me. I wanted to know what area or field (or even fields) covers such concepts. Is it Linux? Should I learn C or C++? Or is there any other course/programming language/whatever I can go and start learning , knowing what I have said will be covered?
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 8 years ago.
Improve this question
The Application I am using does not jump infront of everything if I click on it, that means I have to minimize every single window for a clear view. How can I change this?
also the application is just working in "pseudo fullscreen" how do I make it go "real" fullscreen? (I assume this could solve the first problem)
please note I am not the programmer but I am trying to solve this for the original programmer so if you could just give me some code that would be really appreciated.
And Squeak can do multiple host windows since 2006 but nobody has actually done anything with the capability since then.
(Sigh. Supposed to be a reply to Travis' comment)
Have a look at this squeak image.
I am not the original programmer but if you click on the logo then it becomes fullscreen and overlaps the other windows.
The source code can be found in the logo. Please post it if you find it!
Also note that Smalltalk has windows inside the window. I just mean the window of the smalltalk environment.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
How do I go about figuring out the manual commands being run by things like nmap and aircrack? In other words, I want to figure out exactly what commands are being run in the background that we can't see, the commands that are being automated by these programs information. A google search of "manually portscan without nmap" only leads to links about automating nmap scans.
So for example, if I ran the command: nmap -sS 192.168.1.*, what is actually happening behind the scenes? How would I do the same thing manually? Thanks.
For open source tools like nmap, your best bet is to download the source code yourself,
then step through it (conceptually, or with the aid of a debugger) to see exactly what the program is doing. If you're lucky, there will be helpful comments in the source.
If you don't have access to the source code, you can use system call tracing tools
(for example, strace on Linux), which can give you some hints about what is going on "under the hood" (e.g. which files or sockets are being opened).
More likely these are issuing operating system calls, not things easily invoked manually.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've often seen tech tutorials in which I'm supposed to open a terminal per program/process where actually I feel no need for doing so (no output on terminals, no termination via terminal etc.), and instead I can run all programs background with & at the end. Is there still advantages / technical reasons for using multiple terminals?
(not versatile at all but an example is this tutorial)
It is probably largely because it's easier to explain that than it is to explain how to start a program in the background. A part may also be that instructions use something like "export X=something" and they don't want to cause problems for another process later on, that may not behave as expected from this.
But generally, you can just use one terminal window, or one terminal with several tabs, if you prefer that solution. Different people have different ideas of "the right way to do things" - as long as it works as expected and every time, it's not a huge issue which way you do it.
Aside from envirnonment variables, I don't see any technical reason to have multiple terminals.
commands that you run on the terminal will use the same terminal (stdout) to flush info/warning or error messages. You can run all those commands in background if you want, like you said using & but then it gets difficult to keep track of any messages that those programs may produce. everything will be displayed on same console.