Re: [CentOS] [OT] Simple Shell Script (while loop)

2009-06-03 Thread John R. Dennison
On Wed, Jun 03, 2009 at 04:33:21AM -0400, JohnS wrote: --- I'm no Bash expert but is there a real good reason pass would not be used in place of continue? I'm just really currious Because pass is not a valid bash language construct, at least in 3.2.25.

Re: [CentOS] System V Init Script

2009-06-03 Thread John R. Dennison
On Wed, Jun 03, 2009 at 10:29:08AM +0100, James Bensley wrote: restart) echo -n Stopping my_app: pgrep my_app | while read PIDS; do # I have chosen this method because my_app spawns various child processes kill -9 $PIDS # and they all need to DIE!

Re: [CentOS] System V Init Script

2009-06-03 Thread John R. Dennison
On Wed, Jun 03, 2009 at 04:42:09AM -0500, John R. Dennison wrote: I'd think that the pgrep is matching both the processes you want to kill _and_ the init.d script itself. Try pgrep -x which will exactly match the specified command. Even better, use pkill -x -9

Re: [CentOS] Centos 5.3 - Apache - Under Attack ? Oh hell....

2009-06-02 Thread John R. Dennison
On Tue, Jun 02, 2009 at 08:23:16PM -0700, Linux Advocate wrote: Hell, has my centos 5.3 box been hacked??? Help !! Yes. Reinstall; fully update components; restore *data* from backups (you have backups, right?) and review what web packages you have installed

Re: [CentOS] Centos 5.3 - Apache - Under Attack ? Oh hell....

2009-06-02 Thread John R. Dennison
On Tue, Jun 02, 2009 at 09:01:35PM -0700, Linux Advocate wrote: o godd. i have a quite a few linux boxes and not even one has been hacked. oh man !! That you have noticed. really??? i have to format the box.

Re: [CentOS] Centos 5.3 - Apache - Under Attack ? Oh hell....

2009-06-02 Thread John R. Dennison
On Tue, Jun 02, 2009 at 09:34:55PM -0700, bruce wrote: it's possible your box is attacked, has been compromised.. of it's possible that it's also being slammed by some sort of potential attack/hack. regarding the apache app, what do the log files say... what apps do you have running on the

Re: [CentOS] Centos 5.3 - Apache - Under Attack ? Oh hell....

2009-06-02 Thread John R. Dennison
On Tue, Jun 02, 2009 at 09:48:41PM -0700, bruce wrote: not kidding... the majority of windows based attacks on an apache system running on linux systems are obnoxiousm but not harmful... the kinds of attacks that are looking to exploit windows buffer overflows are harmless to linux systems..

Re: [CentOS] Centos 5.3 - Apache - Under Attack ? Oh hell....

2009-06-02 Thread John R. Dennison
On Wed, Jun 03, 2009 at 12:30:10AM -0500, Neil Aggarwal wrote: It would be prudent to review his web code to see if he did something in an insecure way. If his code is open to attack, it will be so even if he puts it on a new machine. Hence my statements to evaluate the web-apps he

Re: [CentOS] Bash Script help...

2009-05-07 Thread John R. Dennison
On Thu, May 07, 2009 at 10:12:59PM -0700, Jason Todd Slack-Moehrle wrote: I need to write a script that I will manually start (or a cron job in future) but I need it to do a number of things in order one after another. How do i do that so everything gets dont as the steps depend on

Re: [CentOS] Get only script name with shell script

2009-04-24 Thread John R. Dennison
On Fri, Apr 24, 2009 at 09:35:00PM +0300, Semih Gokalp wrote: Hi all, I wrote shell script and put it under the /usr/local/bin/ directory. I use echo $0 for get script name but it has printed /usr/local/bin/scriptname but i want to only print scriptname I use:

Re: [CentOS] What is writing to my filesystem

2009-04-09 Thread John R. Dennison
On Thu, Apr 09, 2009 at 08:12:47PM -0400, David Lemcoe wrote: The only thing I know that will give you a instant snapshot of what's happening is mtop. It shows you whayt apps are using your harddrive very similar to top with processes. mtop is MySQL-Top; how will that help the original

Re: [CentOS] how to access encrypted EXT3 partition from Windows

2009-03-26 Thread John R. Dennison
On Thu, Mar 26, 2009 at 11:19:30AM +, Ionut Vancea wrote: you can also check: http://en.wikipedia.org/wiki/FreeOTFE Very interesting. Thank you for the reference. John -- I'm sorry but our engineers do not have phones.

Re: [CentOS] OT: centos.org web site not responding

2009-03-20 Thread John R. Dennison
On Fri, Mar 20, 2009 at 01:58:13PM -0500, Robert wrote: Another data point. I'm on sbcglobal DSL near Dallas. (rcsntx is Richardson Texas, an adjacent suburb of Dallas.) Without further comment: [r...@mavis rj]# mtr -c 10 -r centos.org mavis.localdomain Snt: 10Loss%

Re: [CentOS] OT: centos.org web site not responding

2009-03-20 Thread John R. Dennison
On Fri, Mar 20, 2009 at 11:07:03PM +0100, Ralph Angenendt wrote: And all those plus the ones in the mails you and people before you sent do reach www.centos.org. What are you trying to prove here? Why is nobody talking to layered tech directly, if he/she cannot reach www.centos.org?

Re: [CentOS] simple if statement

2009-02-27 Thread John R. Dennison
On Fri, Feb 27, 2009 at 11:14:01AM +, Tom Brown wrote: Below if $remaining is empty i want the if to finish - what is it i need to put in SOMETHING? if [ $remaining = ] ; then SOMETHING ; else kill -9 $remaining fi if [ ${remaining} != ] ;

<    1   2   3   4   5   6