16,006 reputation
45388
bio website shawnjgoff.com
location Tampa, FL
age 33
visits member for 4 years
seen Aug 21 at 19:32

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.


Jan
31
comment What can make passing init=/path/to/program to the kernel not start program as init?
It's not any distro - it's my own build; which is why I'm trying to debug the init scripts.
Jan
28
comment What is Bash's string{ending1,ending2} construct called and what is the equivalent in zsh?
Very strange; it's working for me now. I tried it before and it gave me some error, so I've been avoiding it for a month or so.
Jan
28
comment How can I low-level format flash memory in Linux?
It's not extraordinarily wrong to write /dev/zero to a flash device. The only advantage that writing 1s to the device gives is that you might get slightly faster write times the next time you write to the disk since it doesn't have to be erased first - and that depends on the flash translation layer being smart.
Jan
21
comment Strange behaviour in recursive copy
I think you have an extra cp -r 1/* 2/* in there - it's done twice in a row with (apparently) different results. It should always complain about not finding a 2/* because the shell can't expand that glob - nothing matches it. And the contents of 1 is not copied to f in this example.
Jan
21
comment Configure reboot on Linux kernel panic
Yes, I'll be booting either to a different kernel, or giving the kernel a different rootfs path. There is a variable in the bootloader's config that gets changed when userspace boots successfully; if it doesn't change, it knows to try something different. I was hoping for something more than just the kernel command line for this because the bootloader's config can be modified by the Linux userspace. If there's a problem, it's likely that userspace started writing, then the device powered off; and there is a fallback default config for that; I'm still looking for the most solid I can get this.
Jan
21
comment Configure reboot on Linux kernel panic
Yes, I do have a watchdog. I'm just putting as many safety nets in place as possible.
Jan
20
comment Configure reboot on Linux kernel panic
grub is not on all systems; the one I'm working with is not using grub. My bootloader's config is stored in flash.
Jan
20
comment Configure reboot on Linux kernel panic
I'm looking for a kernel config option here, not something from userspace. Specifically, if for some reason, it can't mount the root filesystem (or for some other reason, userspace never comes up), I need it to reboot.
Nov
16
comment How to find a file in the filesystem from the command line?
There are options in some shells that pass the stars along to the program if they don't happen to match anything. Try creating a file in your current directory that is matched by that pattern, and try the command again.
Nov
16
comment How to find a file in the filesystem from the command line?
You need to quote or escape the *s to prevent the shell from interpreting them.
Nov
6
comment How to run a command when a directory's contents are updated?
incrond may also be of interest.
Nov
2
comment What's the difference between udev and hald?
From hal-spec: HAL can notify other peers on the message-bus when devices are added and removed as well as when properties on a device are changing.
Oct
30
comment Testing if a process is running via if and -z
Thanks, @Arcege; I edited it included `> /dev/null'.
Oct
30
comment How do I recursively delete directories with wildcard?
Make sure to either quote or escape the *, otherwise the shell will expand it, and find will not see it. And as I understood the question, you don't want to get the directories, so make sure to include ! before -type d to tell find not to match directories.
Oct
29
comment Are there any “scp -p” just like “cp -p”
I can't speak for others, but I suspect the downvotes are because this information is easily found by using man, which should be the first source of information when wanting to know more about a utility. I would encourage people not to downvote a question for that reason. See the discussion here: meta.unix.stackexchange.com/questions/203/…
Oct
29
comment Arch Linux doesn't connect to a wireless network
I find wicd gets messed up sometimes. Try restarting wicd: sudo /etc/rc.d/wicd restart.
Oct
29
comment How do I proceed further when my reports of a improper functioning of a gnome component has not met with answers on the respective mailing list
Also since it works with wvdial, it's probably not an issue with the kernel driver.
Oct
28
comment Non-blocking buffered named pipe?
What you are describing is a "ring buffer" or "circular buffer". I'm not aware of any command line tools for maintaining such a thing, although it would be trivial to create.
Oct
27
comment How can I embed subtitles into videos with ffmpeg?
Of course, ... means "and whatever other options you need".
Oct
26
comment Why doesn't the following work?: while true; do “$my_command”; sleep 1; done
It is because the shell is expecting a string, which it interprets line-by-line; just as it would when running a script from a file.