obviating if the recursive function is well constructed or not, when i call the function on a directory Folder/file.txt. this code should delete file.txt, but when it reaches to remove dont work, and i dont know for what… Answer Reading the man page on readdir, it returns in d_name a file name, not a co…
fork() – have parent process do work without waiting for child process
I’m making a shell in C for a school project that is capable of running processes in parallel if it is commanded to do so. This is the loop of the shell application that waits for commands: Please do disregard the constants being incremented and decremented. Now, this only works partially. Whenever I gi…
Unable to get the output using regex
This might be a silly one, but I’m unable to get the required output. I’ve a file named Abc_sfgf_kjwefgk.txt20180929_040845 in a directory. I’m trying to list the file using the command: ls -l Abc_sfgf_kjwefgk.txt[0-9]{8}_[0-9]{4} But it’s giving me error: ls: cannot access ‘Abc_…
How can I determine the URL my git repo is located?
I am to work on a project and I have initialized a git repo on a server. Let’s suppose the URL of the server is foo.bar and the repo is at /var/www/vhosts/foo.bar/httpdocs I have created a git repo by running and then I created a .gitignore file, added whatever needed to be added, committed and from my …
Using bash, I want to print a number followed by sizes of 2 paths on one line. i.e. output of 3 commands on one line
Using bash, I want to print a number followed by sizes of 2 paths on one line. i.e. output of 3 commands on one line. All the 3 items should be separated by “:” I am getting the output as – But I want the output as – Answer This should work for you. The two key elements added being
Create files in subdirectories with the same name [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 4 years ago. Improve this question Reading a list with A and B data in 2 columns, iterating row by row, I was createding a seri…
retrieve fact info based on variable in puppet
I have these facts: So with the main_ip fact I need to retrieve the interface that host it. I have try the following to compare the ip: but I cannot retrieve the value of the fact with the variable i’m giving… Can you please advice me how to find the value of the fact with the variable information…
How to cross-compile DLL with exported functions
I’m working through a DLL hijacking exercise, and have a DLL written which works as expected when compiled in Visual Studio. Essentially, when the DLL is loaded, it executes a shell command and passes off legitimate functionality (in this example, the CheckEvenOdd and PrintAMessage functions) to the ori…
Docker install on Linux Mint 19 Tara [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Closed 4 years ago. 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-top…
Setting GCServer = True when running on Linux in .net core project
How do set GCServer to true in a .net core project? Usually in .net framework projects I add an App.Config xml file that sets GCServer variable to true but this does not work in a .net core project running on Linux (the App.Config file is generated and publish but the variable still doesn’t change) Answ…