Skip to content

Tag: linux

How to view stdout in AWS environment?

Below is the lambda function: executed with NodeJS runtime ( as serverless app) that writes the incoming event record to stdout By definition, console.log prints to stdout, as mentioned here, but I need to go through cloud watch logs, as this is AWS serverless app: What is the correct way to view stdout in AW…

Group By and Sum from .txt file in Linux

Following a suggestion from @tripleee, I’m posting another question for a coding issue I’m having trying to be more specific with sources and expected results. My source .txt file is quite over populated with lines and using AWK, I: extract only rows identified by a specific code. parse the conten…

Bash increase pid kernel to unlimited for huge loop

I’ve been try to make cURL on a huge loop and I run the cURL into background process with bash, there are about 904 domains that will be cURLed and the problem is that 904 domains can’t all be embedded because of the PID limit on the Linux kernel. I have tried adding pid_max to 4194303 (I read in …

Why does the Code run on Linux but not on Windows?

Well, I wrote a little Program that should generate random values, but no value should be in the output file twice. On Linux it’s running perfectly, but on Windows it just runs infinity long on the 32768th value. That means, that cmd is open but nothing really happens from that point. I already did debu…

how ignore warnings to go in stderr

I’m run a command and I want to just get errors in ‍‍‍‍stderr file not warnings I want to just get errors in error.txt,not warnings. I want this output: Answer You can filter the stderr if you want: Explanation: Redirect the stderr stream to command Copies lines containing ERROR to only-errors.txt file …