382 reputation
16
bio website sourceforge.net/projects/…
location Northeast
age
visits member for 2 years, 8 months
seen Apr 19 at 7:56

Long time Linux user (currently kubuntu). Use Windows 98, and 7 when I have to. Programmed in many languages, currently using bash and awk for most things. Learning Python.

Have one project on sourceforge:

Duplex printing emulator for non-duplex printers (Linux)


Mar
17
comment Securely reading and parsing a string from a parameter or file in bash
@UlrichDangel Maybe you could point me to some example code. Read or cat into what? I can't put it in a variable, because the variable can't be accessed (or at least, I don't know how to) without subjecting its contents to expansion and, potentially, execution.
Mar
17
comment Securely reading and parsing a string from a parameter or file in bash
@vonbrand My first thought )reflected in my question) was that I might need to use a more conventional language such as python or C, but I was hoping for some ideas within the purview of bash. I downloaded that book and will read it later.
Mar
17
comment Securely reading and parsing a string from a parameter or file in bash
@UlrichDangel gconf is interesting. It's sort of what I was looking for, but way too powerful. It also looks like it may have too many things in it which, if broken, would take the rest of the system with them.
Mar
17
comment Securely reading and parsing a string from a parameter or file in bash
@UlrichDangel - aside from reading the file character by character as I suggested in my question, how do I parse something potentially dangerous in bash? I guess I'd have to pipe the file right into sed or awk or a similar program - other than bash. In bash, there doesn't seem to be a way to treat a string in a variable as just a string, not subject to further expansion.
Feb
14
comment Passing arguments to KOrganizer event reminder bash/yad scripts
I'm still working on it. I couldn't get it to work.
Feb
8
comment How to truely install a tar.gz file on Linux - how to manage manually-installed (or standalone) applications?
Continued ... checkinstall helps prevent that by keeping track of what was installed so it's easier to clean out later.
Feb
8
comment How to truely install a tar.gz file on Linux - how to manage manually-installed (or standalone) applications?
Continued ... Usually, when you install from a tarball, or other standalone package, your package management system doesn't know it's there which means you don't get "automatic" updates and can run into the dependency problems detailed in the answers. I haven't used checkinstall very much, but it seems really helpful. Sometimes, installing a tarball involves a lot of other packages getting installed (manually by you) to satisfy dependencies. The problem is that I don't keep good notes and when I want to get rid of the package, all the other stuff ends up as clutter on my system.
Feb
8
comment How to truely install a tar.gz file on Linux - how to manage manually-installed (or standalone) applications?
The biggest technical thing I don't like about Windows is the registry. It causes many more problems than it's worth and is why so many installs include a reboot. Thankfully, Linux has no such thing! What it does have is package management systems and repositories which make it easier to find and install software already configured for your distro and desktop environment. One of the major advantages of using these is that when a developer updates their software package, it automagically becomes available as an update for your system.
Feb
8
comment How to truely install a tar.gz file on Linux - how to manage manually-installed (or standalone) applications?
Great answer. One thing that is often necessary (or at least preferred) is to do a sudo make install as the last step (with a package you trust). That gives the process the permissions it needs to put things in system directories not owned by your user (like /usr/bin).
Feb
3
comment How to Find a Fugitive Crontab
+1 because it shows how to get the problem to explain itself!
Jan
29
comment Passing arguments to KOrganizer event reminder bash/yad scripts
I'll try that as soon as I can get back to it in a day or two. Since there's really nothing shell-like left to be done, Just leaving it in single quotes would probably be fine - unless my text has some embedded ones.
Jan
27
comment Passing arguments to KOrganizer event reminder bash/yad scripts
@DeerHunter Yes. Tried all that (some since posting the original question). The problem is getting the arguments to the script. That's why I just rewrote the question when I figured that much out. Thanks for trying the script!
Jan
25
comment Disable screen blackout in KDE while watching iPlayer
There's a utility called caffeine that purports to turn off screensavers while video is playing. I installed it on kubuntu precise and it crashes. YMMV.
Jan
19
comment How to decide that mv moves into a directory rather than replacing directory?
I don't remember where I saw it, but when they designed Plan 9 (sort of a successor to UNIX) they split moving from renaming commands specifically to address situations like this.
Jan
13
comment How to scroll in a terminal using keyboard?
Shift+Uparrow and shift+Downarrow also work for line at a time scrolling.
Jan
13
comment Overflow /tmp mounted when there is free space on /
Your setup is a lot different than mine (kubuntu 12.04) so I'm not really sure what I'm looking at, but... I don't use squid/safesquid. But I'm wondering why you have /dev/mapper as part of your "path" to /. I thought that was an lvm thing. Also, my tempfs is defaulting to 1.2G - quite a bit larger than yours (if your blocks are 512). Also, it looks like /tmp is on tempfs (which is very small) - Shouldn't it be under / ?
Dec
15
comment KDE System Tray Organizer
In the quick launch area, I set it to use 2 lines and that was what made the icons there small (which was what I wanted.)
Nov
16
comment Make program first read from pipe, then from keyboard
The above solution is probably optimal. If you're using a gui desktop, then also take a look at AutoKey. It will let you build macros that can do almost anything you can do from a keyboard. It gets a little tricky if you have to wait for things to happen, or have to get data from the screen, but if you know python (the language its macros are coded in), the sky is the limit.
Oct
20
comment What is the purpose of the lost+found folder in Linux and Unix?
+1 for great explanation. Also, I had never heard of mklost+found. I'm off to man
Oct
20
comment How to run a command without hitting Enter Key?
@user13107 Not so much historical as just the ASCII code definition itself. When ASCII was pretty much all there was (unless you were in IBM land) the Return and Linefeed keys had to be coded as something so we could type them on our trusty ASR-33 teletypes or our punch cards. There's even an ascii package you can install that will display it. The Ctrl key just took the code for one of the first 32 characters and set one bit back to 0. For M, it changed a 4D to a 0D which is a carriage return (and there really was a carriage on an ASR-33.)