<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Как узнать "вес" виндовой шары?]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=12159&amp;type=atom" />
	<updated>2011-03-24T07:48:29Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=12159</id>
		<entry>
			<title type="html"><![CDATA[Re: Как узнать "вес" виндовой шары?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=159899#p159899" />
			<content type="html"><![CDATA[<p><a href="http://drbatty.ru/sed">подробнее про sed</a><br />впрочем, можно это всё и на других ЯП закодить. только на sed быстрее, и работает везде&nbsp; wink</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-03-24T07:48:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=159899#p159899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как узнать "вес" виндовой шары?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=159898#p159898" />
			<content type="html"><![CDATA[<p>Спасибо! Всё получилось!</p>]]></content>
			<author>
				<name><![CDATA[InVariable]]></name>
				<uri>https://linuxforum.ru/profile.php?id=14015</uri>
			</author>
			<updated>2011-03-24T07:44:19Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=159898#p159898</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как узнать "вес" виндовой шары?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=159897#p159897" />
			<content type="html"><![CDATA[<p>кстати, точки тоже спец-символ. но они значат &quot;любой символ&quot;, и потому всё работает&nbsp; smile <br />но их вообще-то по уму тоже надо экранировать.<br />а $ значит &quot;конец строки&quot;. потому и не работает. ведь это не конец.</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-03-24T07:42:39Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=159897#p159897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как узнать "вес" виндовой шары?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=159896#p159896" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>InVariable пишет:</cite><blockquote><p>msclxproxy:/usr/local/nagios/libexec # /bin/df<br />Filesystem&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1K-blocks&nbsp; &nbsp; &nbsp; Used Available Use% Mounted on<br />/dev/sda2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;21502312&nbsp; 15100168&nbsp; &nbsp;6402144&nbsp; 71% /<br />udev&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 128300&nbsp; &nbsp; &nbsp; &nbsp; 84&nbsp; &nbsp; 128216&nbsp; &nbsp;1% /dev<br />//172.21.209.13/f$&nbsp; &nbsp;1464827904 1448345600&nbsp; 16482304&nbsp; 99% /home/nagios/mscntpdc</p></blockquote></div><p>sed -rn &#039;\~^//172.21.209.13/f<strong>\$</strong>~s/(\S+\s+){4}(\S+).*/\1/p&#039;</p><p>$ это специальный символ, и перед ним необходимо поставить обратный слеш</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-03-24T07:40:06Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=159896#p159896</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как узнать "вес" виндовой шары?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=159894#p159894" />
			<content type="html"><![CDATA[<p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />msclxproxy:/usr/local/nagios/libexec # /bin/df<br />Filesystem&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1K-blocks&nbsp; &nbsp; &nbsp; Used Available Use% Mounted on<br />/dev/sda2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;21502312&nbsp; 15100168&nbsp; &nbsp;6402144&nbsp; 71% /<br />udev&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 128300&nbsp; &nbsp; &nbsp; &nbsp; 84&nbsp; &nbsp; 128216&nbsp; &nbsp;1% /dev<br />//172.21.209.13/f$&nbsp; &nbsp;1464827904 1448345600&nbsp; 16482304&nbsp; 99% /home/nagios/mscntpdc<br /></div></p>]]></content>
			<author>
				<name><![CDATA[InVariable]]></name>
				<uri>https://linuxforum.ru/profile.php?id=14015</uri>
			</author>
			<updated>2011-03-24T07:35:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=159894#p159894</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как узнать "вес" виндовой шары?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=159892#p159892" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>InVariable пишет:</cite><blockquote><p>Ничего не выдаёт... В случае с /dev/sda2 работает...</p></blockquote></div><p>а откуда мне знать, что у вас выдаёт /bin/df<br />?</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-03-24T07:32:51Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=159892#p159892</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как узнать "вес" виндовой шары?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=159890#p159890" />
			<content type="html"><![CDATA[<p>Ничего не выдаёт... В случае с /dev/sda2 работает...</p>]]></content>
			<author>
				<name><![CDATA[InVariable]]></name>
				<uri>https://linuxforum.ru/profile.php?id=14015</uri>
			</author>
			<updated>2011-03-24T07:32:07Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=159890#p159890</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как узнать "вес" виндовой шары?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=159884#p159884" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>InVariable пишет:</cite><blockquote><p>Да df -h подходит. Как мне сгрепить именно сколько осталось свободного места? Извиняюсь - неправильно поставил вопрос...</p></blockquote></div><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"># /bin/df | sed -rn &#039;\~^/dev/sda2~s/(\S+\s+){4}(\S+).*/\1/p&#039;<br />95909844&nbsp; &nbsp;<br /></div><br />вместо /dev/sda2 подставьте нужное</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-03-24T07:26:47Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=159884#p159884</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как узнать "вес" виндовой шары?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=159881#p159881" />
			<content type="html"><![CDATA[<p>Да df -h подходит. Как мне сгрепить именно сколько осталось свободного места? Извиняюсь - неправильно поставил вопрос...</p>]]></content>
			<author>
				<name><![CDATA[InVariable]]></name>
				<uri>https://linuxforum.ru/profile.php?id=14015</uri>
			</author>
			<updated>2011-03-24T07:20:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=159881#p159881</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как узнать "вес" виндовой шары?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=159876#p159876" />
			<content type="html"><![CDATA[<p><strong>df</strong> почему не подходит?</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-03-24T07:08:51Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=159876#p159876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как узнать "вес" виндовой шары?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=159874#p159874" />
			<content type="html"><![CDATA[<p>Хочу сделать скрипт для мониторинга, так как диск большой не устраивает то что nagios плагины выводят warning и critical alert по процентам...<br />Соответственно нужено решение на bash.</p>]]></content>
			<author>
				<name><![CDATA[InVariable]]></name>
				<uri>https://linuxforum.ru/profile.php?id=14015</uri>
			</author>
			<updated>2011-03-24T07:04:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=159874#p159874</id>
		</entry>
</feed>
