Search Results

Search: Posts Made By: Riker1204
4,140
Posted By Riker1204
Hi RudiC, that's exactly the plan. And I like...
Hi RudiC, that's exactly the plan. And I like that read function, very concise. My only point of consternation was I've never used functions inside other functions in bash, but I'm assuming there is...
4,140
Posted By Riker1204
Hey guys I added most of your suggestions and it...
Hey guys I added most of your suggestions and it works great.

I just now realized the beauty of that grep pipe. I can simply use it to find the highest DN count file from the get go, which is the...
4,140
Posted By Riker1204
Those missing quotes and errors from the end are...
Those missing quotes and errors from the end are simply copy and paste errors I was in a hurry to remove passwords from the document. I clipped some quotes along with it.
4,140
Posted By Riker1204
Yes I'm going to incorporate these changes when I...
Yes I'm going to incorporate these changes when I get some time. We have old infrastructure and I'm under a bit of a time crunch as we have other systems that tend to halt because of various hardware...
4,140
Posted By Riker1204
The permissions only get stomped on when running...
The permissions only get stomped on when running slaptest and slapcat because they are run as root. (During a recovery which hopefully is never again)

Also I will definitely be making the changes...
4,140
Posted By Riker1204
Eval occured to me because when I trace the...
Eval occured to me because when I trace the output ( bash -x ) I get results like this: DN_COUNT[$NAME]=98 or DN_COUNT[$NAME]=1007 and so on. So of course eval then gives me the desired result. I'm...
4,140
Posted By Riker1204
Guys this forum never ceases to amaze me. Great...
Guys this forum never ceases to amaze me. Great suggestions all around. @RudiC, I used that method to hopefully extract just the file names based on the age. ( Looking at my code now and it indeed...
4,140
Posted By Riker1204
Associative array index question
I am trying to assign indexes to an associative array in a for loop but I have to use an eval command to make it work, this doesn't seem correct I don't have to do this with regular arrays

For...
1,060
Posted By Riker1204
Help understanding evaluation order
I have made a simple script to find all programs that use a tcp wrapper, it will supply a reasonable default for my system if none is given.

After some digging I realized that the expansion...
1,140
Posted By Riker1204
Thank you, this is an interesting solution. I...
Thank you, this is an interesting solution. I will test it out.
1,140
Posted By Riker1204
Thank you for the input, but this will still...
Thank you for the input, but this will still capture output from beginning to end of execution.


Is there a way to dynamically change a File Descriptor after 15 seconds, say std out to >...
1,140
Posted By Riker1204
Capture std out snapshot after 15 seconds
I have a program that scans and updates its results to std out every second. I would like to capture its output for further processing, but there is a catch. I would like to capture a snapshot after...
Forum: Programming 10-14-2016
3,016
Posted By Riker1204
Hey Don, I meant K&R! Sorry for the...
Hey Don,

I meant K&R! Sorry for the confusion.

Also, very happy to follow your instructions, which means stating I am solving a question from a book and possibly the question itself (...
Forum: Programming 10-14-2016
3,016
Posted By Riker1204
I'm not sure what you are tying to imply, but I...
I'm not sure what you are tying to imply, but I am currently doing the classic K&M C programming language book for self study.

Answers to all questions are freely available on numerous sites, and...
Forum: Programming 10-12-2016
3,016
Posted By Riker1204
That was it! Its working now. Thanks to both of...
That was it! Its working now. Thanks to both of you for the help.
Forum: Programming 10-12-2016
3,016
Posted By Riker1204
Thanks! I'm always good for a few typos... ...
Thanks! I'm always good for a few typos...

So I corrected the typo and recompiled and re ran a test, and still a perpetual zero result when supplied with 3 letter words.

My logic is very wrong...
Forum: Programming 10-12-2016
3,016
Posted By Riker1204
Simple C program to count word lengths
So my program is not working and I keep changing it to figure out why. So I have two questions, can I do tracing similar to bash, and also what is wrong with this.

The idea is simple, I want to...
3,983
Posted By Riker1204
Got it. Thank you all for the help. Marking as...
Got it. Thank you all for the help. Marking as solved.
3,983
Posted By Riker1204
Thank you. Awk's default behavior is easy to...
Thank you. Awk's default behavior is easy to grasp, but I am trying to understand this cut example in the book. Just trying to understand the counting principle at work here. It just seems a field...
3,983
Posted By Riker1204
Cut counting consecutive delimiters as fields
When cut encounters consecutive delimiters it seems to count each instance as a field, at least with spaces. Is this typical behavior for any delimiter?

#:~$ ifconfig eth0 | grep HWaddr
eth0 ...
Forum: What is on Your Mind? 10-11-2015
1,865
Posted By Riker1204
Yeah thanks. I need to learn to stop grouping...
Yeah thanks. I need to learn to stop grouping text in my mind as If I'm reading ordinary grammar. ( if that makes sense).

Back at it again today. Next example in the book in much more advanced....
Forum: What is on Your Mind? 10-10-2015
3,777
Posted By Riker1204
Sorry to hear this sparcguy. Hope you will keep...
Sorry to hear this sparcguy. Hope you will keep us updated on anything you find. Always like to know how these things turn out.
Forum: What is on Your Mind? 10-10-2015
1,865
Posted By Riker1204
Just did something so stupid...
Firstly I'm learning shell scripting and I came across this example in Classic Shell Scripting

dirpath=`eval echo '${'"$envvar"'}' 2>/dev/null | tr : ' ' `

And I immediately became perplexed...
6,937
Posted By Riker1204
Thank you for explaining that. Marking as solved.
Thank you for explaining that. Marking as solved.
Forum: War Stories 06-28-2015
8,185
Posted By Riker1204
var="/some/place" rm -rf "${vra}/"*Does the rm...
var="/some/place"
rm -rf "${vra}/"*Does the rm command throw an error when ${vra} does not exist or does it simply proceed with a null byte or something followed by /* erasing everything in its...
Showing results 1 to 25 of 37

 
All times are GMT -4. The time now is 07:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy