3,158 reputation
1530
bio website None
location California, USA
age 54
visits member for 5 years, 5 months
seen 8 hours ago
Long-time Informix user and developer, experienced in C and Unix (many variants). Email: jonathan.leffler@gmail.com

Jan
16
comment How can I keep a process alive after closing the putty session?
Yup - disown looks to be the way to go for an already running job. It's doable because the shell that started the job can manipulate the properties needed.
Jan
16
comment How can I keep a process alive after closing the putty session?
Too late...at least, for normal operations. It wouldn't be altogether surprising to find that if you attach a debugger to the process, and then tweaked it with an appropriate set of system calls, then perhaps you could put it in the background. But it is not what could be recommended - I wouldn't bother, for example, and I have at least some idea of what might be involved. You have two choices now...either stay connected until it finishes, or stop the current process, and restart a new one using nohup.
Jan
16
comment How can I keep a process alive after closing the putty session?
Normally, control-z puts the process into a state of suspended animation; the bg command puts it into the background. However, that also keeps the process attached to the terminal, whereas nohup detaches it from the terminal and therefore allows putty to disconnect and the process to survive the disconnection.
Jan
14
comment Removing Symantec Antivirus from a Mac?
Right click is equivalent to Control-Click - so I can do that, and was able to remove the System Preference items. I found one of the (other) bits of software that I want to get rid of in /Library/LaunchDaemons; I think I found the Symantec ones in /Library/StartupItems - the other directories looked clean. Thanks for the excellent assistance.
Jan
10
comment Is this a virus? Not sure how to read the source code. This is a txt file
Not legible - try indenting (and breaking lines)...
Dec
29
comment Rename files and extensions in one command in Mac OS X
rename is not installed on MacOS X 10.6.2 by default, either. It is a script I copied from the original Camel book - it was dropped (for lack of space) in later editions. I still use it for exactly such purposes. The only oddball thing to worry about it is the Mac's case-insensitive file system.
Dec
14
comment How to decompress the *.TGZ file without changing the orginal file?
Au contraire (it does not belong on SU): a relevant part of handling open source programs is knowing how to handle compressed tar files - a part of programming.
Nov
1
comment Replace line with only part of the line
Probably safer to use '[^]]*' in place of '.*' in case there are two fields with the double-square brackets around them.
Oct
31
comment BASH: Working with multiple files and directories
But, with care, it can all be done in one operation!
Oct
27
comment Why do I get files like ._foo in my tarball on OS X?
I have GNU tar 1.15.1 by default on MacOS X 10.5.8 (Leopard). The latest version from GNU is 1.22 (March 2009). Downloaded and built: it does not appear to have '--no-xattrs' when built on MacOS X.
Oct
13
comment What constitutes a 'guest' account on Snow Leopard?
OK - it is an 'official' term. That helps a lot - and none of my accounts is a guest account within the meaning of that term.
Oct
8
comment Recursive chmod: rw for files, rwx for directories
Do you really want public write permission on files and directories? That means you don't care who clobbers any of the files?
Oct
8
comment Recursive chmod: rw for files, rwx for directories
As you say - ugly!
Oct
2
comment How to install perl5.10 on OS X 10.5.8?
It depends which which you have as /usr/bin/which. The machines I used back in the late 80s didn't have any which in any system bin directory, which was a nuisance. Hence I cribbed this code. I added the -a, -r, -w, -x options relatively recently. If you've got a functional which, you don't need this one; if you don't, it may save you some grief.
Sep
17
comment Where does Mac OS X store file association information?
Yeah, but knowing how to change them also helps. Like it helped for me... @joshhunt: maybe if you made it explicit that the Get Info stuff is in the Finder with the file selected. (Just had to undo one application grabbing another's files - this helped.)
Sep
16
comment Where does Mac OS X store file association information?
See also: superuser.com/questions/17761/… (slightly different, but may also be helpful).
Sep
16
comment File association for editing on a mac
See also: superuser.com/questions/20822/… (slightly different - but also likely to be relevant).
Sep
13
comment How to Suppress Repetition of Warnings That an Application Was Downloaded From the Internet on Mac OS X?
I found another way to get rid of the warning - install the next release of the software as administrator, after downloading it as administrator (Firefox 3.5.3). However, that is a pure evasion of the problem. This command does the trick. However, it does not seem to be well documented - at least, I didn't find a man page for it (but I can STFW and 'xattr -:' gives sufficient info). Thanks!
Sep
9
comment How to Suppress Repetition of Warnings That an Application Was Downloaded From the Internet on Mac OS X?
Tracing through the comments, some are definitely relevant to my scenario. I mainly work as a user without System Admin privileges; I download stuff as my normal user. When it comes to installing stuff into /Applications, I sometimes use the option to provide an administrator ID and password on the fly, and sometimes switch to the administrator ID and run the install. I'm also suspicious that the difference may be between the applications than have a package installer you run compared with the applications that you click on the DMG and copy direct to /Applications. The link is good - thanks.
Sep
9
comment How to Suppress Repetition of Warnings That an Application Was Downloaded From the Internet on Mac OS X?
I don't have the ~/Library/Preferences/com.apple.DownloadAssessment.plist file. I don't know whether it matters that I used Firefox rather than Safari to download the files.