RE: File System Sizes....

2001-11-27 Thread Kipp, James
> You can try the following > > ($percent) = `df -k` =~ /(\d+)%/; > > Regards > Robert Graham There you go James !! > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: File System Sizes....

2001-11-27 Thread Robert Graham
You can try the following ($percent) = `df -k` =~ /(\d+)%/; Regards Robert Graham -Original Message- From: Kipp, James [mailto:[EMAIL PROTECTED]] Sent: 27 November 2001 15:47 To: 'James Kelty'; [EMAIL PROTECTED] Subject: RE: File System Sizes > > $percent = `df

RE: File System Sizes....

2001-11-27 Thread Kipp, James
> > $percent = `df -k | awk '{print $5}'`; > if($percent > "90") { > > do something > } > > I though that this would work, but I didn't get just the % > column from the > awk statment. I am really trying > to do this all in perl instead of mixing it with awk. in that case all

Re: File System Sizes....

2001-11-26 Thread Mark Symonds
- Original Message - From: "James Kelty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 26, 2001 2:17 PM Subject: File System Sizes > Hello! > > I am new to the list, so forgive me if this is not the correct forum. I am > writing (attempting to anyway) a script

Re: File System Sizes....

2001-11-26 Thread Jonathan E. Paton
Hi, I've just about solved the problem for you... I am obviously a student with too much time on his hands ;-) However, it is fairly complicated for a beginner example, but should be quite interesting for the more experienced "beginner" (like me :) The line with 'split' is what you are looking

Re: File System Sizes....

2001-11-26 Thread Andrea Holstein
James Kelty wrote: > > Hello! > > I am new to the list, so forgive me if this is not the correct forum. I am > writing (attempting to anyway) a script that will look at the size of the > filesystem, and warn me if it is getting too full, say 90% percent or so. > > Initially I though that combin