Search Results

Search: Posts Made By: dkaplowitz
5,613
Posted By dkaplowitz
Trouble getting consistent PID of tomcat server from ps
Hello all,

I am working on a script to automate the process of restarting some tomcat servers. The versions of tomcat are pretty old and it often happens that they don't shut down gracefully and...
Forum: Filesystems, Disks and Memory 05-18-2006
47,136
Posted By dkaplowitz
`>filename` works for me on Solaris and Gentoo...
`>filename` works for me on Solaris and Gentoo Linux (and I'm assuming every other Linux). Makes an empty, 0-byte file. The `cat filename > /dev/null` doesn't change the file since you are only...
3,640
Posted By dkaplowitz
Thanks for the reply. I'll try it with the full...
Thanks for the reply. I'll try it with the full command (thus re-evaluating whether the pid exists) to see if that helps.

Regarding your question, the process may not sustain a kill -9 over a...
3,640
Posted By dkaplowitz
I've tried this type of while loop too (since I...
I've tried this type of while loop too (since I think a while loop makes more sense for what I'm trying to do):


while [ $tcpid != "" ]
do
(sudo kill -9 $tcpid)
sleep 5
done


It...
3,640
Posted By dkaplowitz
2 Questions about my process control script
Hi all,

My tiny mind is struggling with the following script that shuts down Tomcat on Sol. 8 and kills any defunct processes Tomcat might leave behind (as it so often does). I realize that fixing...
Forum: SuSE 04-13-2006
211,012
Posted By dkaplowitz
Updated since my last entry... work: ...
Updated since my last entry...

work:
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping ...
5,954
Posted By dkaplowitz
Thanks for the help. I got it sorted. Here's what...
Thanks for the help. I got it sorted. Here's what I used:


#!/bin/sh
set -x
for i in `cat /data/dev/a-file-containing-a-listing-of-the-directories-i-want-to-work-in`
do
cd /data/dev/$i
...
5,954
Posted By dkaplowitz
Thanks for all the replies. I'm going to try a...
Thanks for all the replies. I'm going to try a few things out and see how far I get. I'll post back what I wound up using.

Regards,

Dave
5,954
Posted By dkaplowitz
Find directories not containing foo, and copy foo to them
Hello all,

I have a situation where I have a web root directory with a few thousand users spread out into 100 subdirectories in a 00/firstname.lastname, 01/firstname.lastname, etc. hierarchy. I...
8,167
Posted By dkaplowitz
In Nero you're going to want to select the "Burn...
In Nero you're going to want to select the "Burn CD Image" option (or words to that effect). Then you will get a dialog box asking you where the image is. I think you have to pull down the "filetype"...
2,319
Posted By dkaplowitz
If you're looking to an alternative to Linux,...
If you're looking to an alternative to Linux, then I'm assuming you're looking for a version of Unix that'll install on x86 architecture, right? That'll limit your choices somewhat. I don't really...
Forum: Solaris 08-27-2004
5,716
Posted By dkaplowitz
I got this book recently and it's really...
I got this book recently and it's really terrific. Very thorough. I was quite surprised. I will be taking the tests at the end of Sept / early Oct. so I'll report how well I do. The author has a site...
8,105
Posted By dkaplowitz
Did you try "man grep" and searching for...
Did you try "man grep" and searching for "recursive"?

You can try grep -r for recursive, or there's a --directories (-d) option (at least on the grep that's on my Gentoo box). Regardless of your...
3,801
Posted By dkaplowitz
Sorry this is off topic, but Janice's books are...
Sorry this is off topic, but Janice's books are bad enough that I just have to add my $0.02. I personally think these are the two worst books on the subject. For instance, "how do you add a user?"...
Forum: Solaris 08-19-2004
5,716
Posted By dkaplowitz
I've heard really good things about the "exam...
I've heard really good things about the "exam cram" for solaris 9. I'm thinking of getting it to help me prep for the tests. I've seen it online for as low as ~20.USD

I recently took a week long...
8,393
Posted By dkaplowitz
You're probably seeing the results of this new...
You're probably seeing the results of this new automated ssh login tool that is discussed at length here:

http://seclists.org/lists/fulldisclosure/2004/Jul/1109.html

I found it after I noticed...
2,521
Posted By dkaplowitz
Sorry I relied too much on your title and assumed...
Sorry I relied too much on your title and assumed it was a single file.

Try playing with this:
for fl in *.php; do
mv $fl $fl.old
sed 's/FINDSTRING/REPLACESTRING/g' $fl.old > $fl
#rm -f...
2,521
Posted By dkaplowitz
in vi: esc. to cmd mode, then enter ...
in vi:

esc. to cmd mode, then enter

:%s/CTRL+V CTRL+M//g

Note I left a space betw. the 2 CTRL sequences for readability, you shouldn't have any spaces.
2,229
Posted By dkaplowitz
I agree with s93366 that you should try to get...
I agree with s93366 that you should try to get something slightly faster if you can, though the one you're considering will run Sol9, which meets your objectives. It just won't be very much fun to...
16,280
Posted By dkaplowitz
Can you post the command you're running to rsync...
Can you post the command you're running to rsync these files? (And I'm assuming you're using rsync on FreeBSD and not one on Cygwin on Windows or something, but if I'm wrong post that too). I...
2,433
Posted By dkaplowitz
Or you could spend $20. and some change and get...
Or you could spend $20. and some change and get this book:

http://www.amazon.com/exec/obidos/tg/detail/-/0672324903/qid=1088908241/sr=8-1/ref=pd_ka_1/102-2031894-8468946?v=glance&s=books&n=507846...
Forum: BSD 06-30-2004
5,053
Posted By dkaplowitz
The easiest way for you would be to do: /stand...
The easiest way for you would be to do:
/stand sysinstall as root. Use the menu to configure networking.

Try reading the handbook, FreeBSD is a simple system to work with and it's very well...
Forum: BSD 06-29-2004
5,053
Posted By dkaplowitz
Israel, Tell us how you configured X to...
Israel,

Tell us how you configured X to begin with. Did you follow the "handbook" on freebsd.org? There they tell you to use XFree86 --configure as root and to follow the instructions on the...
2
4,287
Posted By dkaplowitz
Which DHCP server is it? Is it ISC's dhcpd? If so...
Which DHCP server is it? Is it ISC's dhcpd? If so there should be a dhcpd.conf file somewhere, depending on your distro, with configurable parameters in there that you can change. And I think...
51,378
Posted By dkaplowitz
That's b/c you didn't really change your shell...
That's b/c you didn't really change your shell (because your local sysadmin wouldn't let you). So you're really running a virtual bash inside ksh (someone will correct me if that's not the correct...
Showing results 1 to 25 of 63

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