Search Results

Search: Posts Made By: fsahog
3,930
Posted By fsahog
If I understand your problem, you're doing a...
If I understand your problem, you're doing a global search and match, output conditional on that match. The reason it takes so long is that you are going through your big file for each line in your...
14,936
Posted By fsahog
I humbly suggest that if you are concerned with...
I humbly suggest that if you are concerned with security, there are much better alternatives. SSH is how folks commonly do secure transfers, specifically with "scp". You can create certificates for...
20,454
Posted By fsahog
One thing you might try is using the double...
One thing you might try is using the double parens math workings of bash. Quite cool and is readable, and it avoids your shell expansion problem. Secondarily, a "here" document with the "dc"...
6,254
Posted By fsahog
Please understand that I do not mean to distract...
Please understand that I do not mean to distract from your desire for a script, but this is an excellent example, I think, of something which is bothersome with scripting but simple and...
Forum: Programming 07-18-2008
5,564
Posted By fsahog
Just a suggestion, but you might want to look at...
Just a suggestion, but you might want to look at using the strtok() subroutine. It will provide for you that which is separated by your "/", your directory names, and save lots of iterative coding. ...
Forum: Programming 07-18-2008
3,342
Posted By fsahog
inet_pton() returns 0 if the source string does...
inet_pton() returns 0 if the source string does not contain a character string representing a valid network address in the specified address family. You might want to try feeding it an ipv6...
Forum: Programming 07-18-2008
21,426
Posted By fsahog
I would build in a logic context so that you can...
I would build in a logic context so that you can be sure. For example, SIGHUP is a non-zero vector when a process is started. It is good practice to null the vector after one's fork/exec (in the...
Forum: Programming 07-18-2008
2,946
Posted By fsahog
I would recommend that the writer look into...
I would recommend that the writer look into bcopy() and bzero(). If memory serves, they are the original primitives, and thus the most efficient. In the C++ world, string objects help protect the...
Forum: Programming 07-18-2008
28,089
Posted By fsahog
Suggestion with regard to the original question. ...
Suggestion with regard to the original question. I believe the signal handlers to be roughly intended as giving you what amounts to a user-space interrupt service routine. Generally in those we set...
3,382
Posted By fsahog
That shell script above - you see where it...
That shell script above - you see where it displays "error" - if you make the script in a file with the execute bit set, you can run it. Use the portion that shows an error, i.e. "Skipping line" -...
21,404
Posted By fsahog
Not to disagree, but
I wanted to make some mention here regarding coding -

calloc() takes two parameters, a count and a size. It simply multiplies the two values, requests that much from the heap and then does a...
4,113
Posted By fsahog
Don't forget to check out "ncftp" to replace...
Don't forget to check out "ncftp" to replace "ftp" - it's extremely more cool.
2,660
Posted By fsahog
Much encouragement to bring files to common...
Much encouragement to bring files to common system via secure, authenticated connections. Once done, sdiff is very cool, showing the files side by side.
24,635
Posted By fsahog
One additional note, adding to the astute...
One additional note, adding to the astute comments by my esteemed colleague blowtorch. Try looking at "exec", which makes the parent's start of the child process fatal.
8,580
Posted By fsahog
syslog
Suggest upgrading to syslog-ng. You're gonna love it.
179,790
Posted By fsahog
Shell.
bash. I don't much care for csh, as I'd rather use a compiler than something that pretty much amounts to a pseudo-language. I started with sh, back in the early 80's, pretty much like anybody else...
24,635
Posted By fsahog
Process management
I think you're seeing two due to your invocation method. One method that would be more "tight" would be to have your process write it's PID to a PID file, or have the script write it if necessary. ...
15,547
Posted By fsahog
fork() error
As mentioned, this is sometimes due to a resource limitation, but you would be seeing a long list of "child" processes in your "ps" command if that were the case. Memory leaks can exhaust available...
6,537
Posted By fsahog
Error (attr stuff)
I'd also check to see the status of your "selinux" subsystem. It has three states; [off|warn|on] and if it's turned on, acl's must be managed over and above the traditional unix permissions.

S.
21,631
Posted By fsahog
Follow up
Agreed to Porter, and apologies to the moderator on the email thing.
21,631
Posted By fsahog
Not sure we're answering your question..
Streams must necessarily have a file descriptor as one of their attributes. Streams are a higher level processing construct than the driver level open/close/read/write/ioctl entry points. Generally...
17,619
Posted By fsahog
That VI thing
Interesting to note that on the way back to dos, you can reverse the process without problem (:%s/$/^V^M/). It's all good. Another interesting insert you may find useful is ^L for form-breaks, but...
Forum: Programming 04-14-2006
11,807
Posted By fsahog
Negative UNIX time
Angler,

I'm not sure if anyone has helped you with this, but in case not - here goes.

UNIX times are stored as unsigned integers. If you're getting a negative value, it's because the number is...
Showing results 1 to 23 of 23

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