16,101 reputation
45388
bio website shawnjgoff.com
location Tampa, FL
age 33
visits member for 4 years
seen 2 days ago

I've grown up with computers around me my whole life. I started programming when I was a kid, and stuck with it ever since. I came across Linux around 1999 and have enjoyed working with it ever since.

For a job, I get to write software that runs on embedded Linux devices. I do everything from working on low-level drivers to writing shell scripts and even web apps.


Jul
3
comment Can I read and write to the same file in Linux without overwriting it?
cat can write to its output at any time; if it writes past the point at whatever is on the other side of the pipe has read, then you will read in what you wrote instead of the original file contents. That is what makes sponge special. It buffers its input until stdin closes, then writes.
Jun
20
comment How do I count all the files recursively through directories
@krzysiek-boduch Thanks! I updated the answer.
Jun
4
comment operator in if condition
@goldilocks, yes, that is my preferred style. The reason it's unusual is because he is not doing that.
Jun
4
comment operator in if condition
The given answers are correct; you need whitespace after [. Additionally, look into the elif statement; it will help you clean things up. Also, the semicolons after the if statements are not necessary, but are also not incorrect, just strange.
Jun
4
comment Getting Source as Flatfile and to remove the Carriage returns and \n …special charaters?
Is it suitable to remove all \n characters, or is there a special case when a \n is not desired?
Apr
13
comment What is the Linux equivalent of DOS “dir /s /b filename”?
@sopalajo-de-arrierez If you do shopt -s globstar, it will probably work for you. Recursive globbing is a feature that is available only in some shells, and sometimes, it is not on by default.
Mar
10
comment How to report number of files in all subdirectories?
@toxalot you can if you have a find that supports -printf, but not if you want it to work on FreeBSD, for example.
Jul
25
comment Is there a way to find which iptables rule was responsible for dropping a packet?
fedorahosted.org/dropwatch might also be helpful in the future.
Jun
29
comment Why must loopback traffic be authorized using iptables to get web access?
It seems that there must be other IPtables rules in place. It could be from a firewall or a captive portal system or a number of other things.
Jun
8
comment Can I install a distro to one partition while using a distro installed on another?
unetbootin will let you write a livecd to a hard disk drive; you might start there.
Jun
8
comment Why are POSIX Find Parameters Different from Other Program styles?
dd is another POSIX utility that has a very different argument convention.
Mar
12
comment No make target “uImage” with Buildroot 2013.05
This question would work much better on the Buildroot mailing list. buildroot.net/lists.html
Mar
12
comment Is there a way to renice the network stack?
You may want to look into the realtime extensions.
Dec
6
comment Different ways to execute a shell script
@Geek when you execute a script as a child process (the normal way), any variables and functions it defines (it's environment) go away when the process terminates. If you source the script, those variables and functions are created in the current environment; when the script finishes, the changes to the environment remain.
Nov
23
comment How is the inherited file descritor vulnerability dealt with in Unices?
That makes sense, although just having close-on-exec doesn't fix the problem: you have to have the ability to request that flag from every function that returns a new file descriptor.
Oct
30
comment Make USB modem work on Puppy Linux 5.28
Got it. Then there are a couple possibilities: check that you have usb_modeswitch and the accompanying definitions to be able to switch your device (if you don't know how, submit another question). If you already have them, try manually modeswitching the modem using it - if that works, you need to add a udev rule to do it automatically. Once that's done, PupDial should see the ttyUSB port.
Oct
29
comment Make USB modem work on Puppy Linux 5.28
@maniat1k Yes - from the logs you posted, I can tell that it did recognize it as a GSM modem, so when you PupDial comes up, there should be ttyUSB1 available for you to use.
Oct
28
comment Ask root for password when using su command
@ice_mint You should answer the question with the details. Also, possibly make the question more generic so that it's more useful.
Oct
28
comment Ask root for password when using su command
Maybe the pam config could do it. I have /etc/pam.d/su on my system.
Oct
28
comment Ask root for password when using su command
Ah, I see. So you could probably exclude su from the ALL tag to make this work.