Log BBcode

Silas Mariusz

rm -rf /
Help us, GOD!
5 Kwiecień 2008
10 214
31
2 330
153
39
Nowy Sącz
forum.qnap.net.pl
QNAP
TS-x77
Ethernet
1 GbE
PHP:
<?php
$path = "/YOUR/PATH/TO/public_html/php_diary/data";
$filename = "122499.dat";
$x= -1;
if($file = fopen("$path/$filename", "r"))
{
	while(!feof($file))
	{
		$therate = fgetss($file, 255);
		$x++;
		$count = $count + $therate;
	}
	fclose($file);
}
?>

[log][~] # log_tool -q -v | tail -n 50
5346, 0,2014-08-11,15:39:10,rtorrent,127.0.0.1,localhost,(info) rtorrent: RT_DOWNLOAD_SHARE: /share/Download, 0,1407764350,
5347, 0,2014-08-11,15:39:13,rtorrent,127.0.0.1,localhost,(info) rtorrent: Fix no more PTYs issue, 0,1407764353,
5348, 0,2014-08-11,15:39:14,rtorrent,127.0.0.1,localhost,(info) rtorrent: Creating link: /usr/bin/rtorrent, 0,1407764354,[/log]

[~] # log_tool -q -v | tail -n 50
5346, 0,2014-08-11,15:39:10,rtorrent,127.0.0.1,localhost,(info) rtorrent: RT_DOWNLOAD_SHARE: /share/Download, 0,1407764350,
5347, 0,2014-08-11,15:39:13,rtorrent,127.0.0.1,localhost,(info) rtorrent: Fix no more PTYs issue, 0,1407764353,
5348, 0,2014-08-11,15:39:14,rtorrent,127.0.0.1,localhost,(info) rtorrent: Creating link: /usr/bin/rtorrent, 0,1407764354,

[log][~] # log_tool -q -v | tail -n 50
5346, 0,2014-08-11,15:39:10,rtorrent,127.0.0.1,localhost,(info) rtorrent: RT_DOWNLOAD_SHARE: /share/Download, 0,1407764350,
5347, 0,2014-08-11,15:39:13,rtorrent,127.0.0.1,localhost,(info) rtorrent: Fix no more PTYs issue, 0,1407764353,
5348, 0,2014-08-11,15:39:14,rtorrent,127.0.0.1,localhost,(info) rtorrent: Creating link: /usr/bin/rtorrent, 0,1407764354,
5349, 0,2014-08-11,15:39:15,rtorrent,127.0.0.1,localhost,(info) rtorrent: exec: ln -sf /share/CACHEDEV1_DATA/.qpkg/rtorrent /usr/bin/rtorrent, 0,1407764355,
5350, 0,2014-08-11,15:39:17,admin,10.100.200.100,---,[App Center] Virtualization Station removed., 0,1407764354,
5351, 0,2014-08-11,15:39:22,rtorrent,127.0.0.1,localhost,(info) rtorrent: TZ: Europe/Amsterdam, 0,1407764362,
5352, 0,2014-08-11,15:39:22,rtorrent,127.0.0.1,localhost,(info) rtorrent: Port Web: 6009 is available., 0,1407764362,
5353, 0,2014-08-11,15:39:22,rtorrent,127.0.0.1,localhost,(info) rtorrent: Port SecureWeb: 6008 is available., 0,1407764362,
5354, 0,2014-08-11,15:39:22,rtorrent,127.0.0.1,localhost,(info) rtorrent: Port SCGI: 5000 is available., 0,1407764362,
5355, 0,2014-08-11,15:39:23,rtorrent,127.0.0.1,localhost,(info) rtorrent: Port DHT: 6881 is available., 0,1407764363,
5356, 0,2014-08-11,15:39:23,rtorrent,127.0.0.1,localhost,(info) rtorrent: Port Torrent: 42000 is available., 0,1407764363,
5357, 0,2014-08-11,15:39:23,rtorrent,127.0.0.1,localhost,(info) rtorrent: eth0 ipaddr: 10.100.200.10, 0,1407764363,
5358, 0,2014-08-11,15:39:25,rtorrent,127.0.0.1,localhost,(info) rtorrent: external ipaddr: 83.218.116.69, 0,1407764365,
5359, 0,2014-08-11,15:39:26,rtorrent,127.0.0.1,localhost,(info) rtorrent: Cloud host name: silas, 0,1407764366,
5360, 0,2014-08-11,15:39:26,rtorrent,127.0.0.1,localhost,(info) rtorrent: Cloud domain name: myqnapcloud.com, 0,1407764366,
5361, 0,2014-08-11,15:39:26,rtorrent,127.0.0.1,localhost,(info) rtorrent: User mail address: ctrl@qnapclub.pl, 0,1407764366,
5362, 0,2014-08-11,15:39:26,rtorrent,127.0.0.1,localhost,(info) rtorrent: Web server certificate found., 0,1407764366,
5363, 0,2014-08-11,15:39:27,rtorrent,127.0.0.1,localhost,(info) rtorrent: Generating new RPC password., 0,1407764366,
5364, 0,2014-08-11,15:39:27,rtorrent,127.0.0.1,localhost,(info) rtorrent: Applying new RPC password., 0,1407764367,
5365, 0,2014-08-11,15:39:28,rtorrent,127.0.0.1,localhost,(info) rtorrent: IP Geolocation db_update: Country: GeoIP.dat, 0,1407764363,
5366, 0,2014-08-11,15:39:29,rtorrent,127.0.0.1,localhost,(info) rtorrent: Current ipfilter size is 3662591 bytes, 0,1407764369,
5367, 0,2014-08-11,15:39:29,rtorrent,127.0.0.1,localhost,(info) rtorrent: Remote ipfilter size is 3662591 bytes, 0,1407764369,
5368, 0,2014-08-11,15:39:29,rtorrent,127.0.0.1,localhost,(info) rtorrent: ipfilter list is up to date!, 0,1407764369,
5369, 0,2014-08-11,15:39:30,rtorrent,127.0.0.1,localhost,(info) rtorrent: php-fpm started., 0,1407764370,
5370, 0,2014-08-11,15:39:30,rtorrent,127.0.0.1,localhost,(info) rtorrent: UPnP Port mapping: 5000, 6881, 42000, 0,1407764363,
5371, 0,2014-08-11,15:39:31,rtorrent,127.0.0.1,localhost,(info) rtorrent: IP Geolocation db_update: City: GeoIPCity.dat, 0,1407764370,
5372, 0,2014-08-11,15:39:33,rtorrent,127.0.0.1,localhost,(info) rtorrent: rtorrent started., 0,1407764373,
5373, 0,2014-08-11,15:39:36,rtorrent,127.0.0.1,localhost,(info) rtorrent: lighttpd started., 0,1407764376,
5374, 0,2014-08-11,15:39:36,rtorrent,127.0.0.1,localhost,(info) rtorrent: Waiting for background processes to finish... (18556 18555), 0,1407764376,
5375, 0,2014-08-11,15:40:19,rtorrent,127.0.0.1,localhost,(info) rtorrent: Background jobs done. (18556 18555), 0,1407764419,
5376, 0,2014-08-11,16:33:53,CloudLink,127.0.0.1,localhost,[CloudLink] cloudlink service connected, 0,1407767633,
5377, 0,2014-08-11,16:33:54,System,127.0.0.1,localhost,[myQNAPcloud] CloudLink set up successfully, 0,1407767633,
5378, 0,2014-08-11,16:37:24,rtorrent,127.0.0.1,localhost,Download finished: The.Day.The.Earth.Stood.Still.2008.MULTi.1080p.BluRay.X264-inTGrity, 0,1407767844,
5379, 0,2014-08-11,17:35:15,System,127.0.0.1,localhost,[myQNAPcloud] CloudLink cannot set up, Please make sure your device is connected to the Internet and the UDP traffic is not blocked. error code: [3], 0,1407771315,
5380, 0,2014-08-11,17:38:17,CloudLink,127.0.0.1,localhost,[CloudLink] cloudlink service disconnected, 0,1407771497,
5381, 0,2014-08-11,17:38:44,CloudLink,127.0.0.1,localhost,[CloudLink] cloudlink service connected, 0,1407771524,
5382, 0,2014-08-11,17:38:51,System,127.0.0.1,localhost,[myQNAPcloud] CloudLink set up successfully, 0,1407771531,
5383, 1,2014-08-11,23:10:23,System,127.0.0.1,localhost,[Volume DataVol1] Volume used size hits threshold(95%). Free size is 42.81 GB. Low storage space may affect the performance of file access, please expand volume capacity as soon as possible., 0,1407791423,
5384, 0,2014-08-12,01:23:47,admin,10.100.200.100,---,[TCP/IP] DNS settings changed to [194.204.152.34] (secondary)., 0,1407799424,
5385, 0,2014-08-13,05:18:18,admin,10.100.200.100,---,[App Center] HybridDesk Station disabled., 0,1407899898,
5386, 0,2014-08-13,05:18:59,admin,10.100.200.100,---,[App Center] HybridDesk Station enabled., 0,1407899939,
5387, 0,2014-08-13,23:46:42,System,127.0.0.1,localhost,[myQNAPcloud] CloudLink cannot set up, Please make sure your device is connected to the Internet and the UDP traffic is not blocked. error code: [3], 0,1407966402,
5388, 0,2014-08-13,23:48:01,System,127.0.0.1,localhost,[myQNAPcloud] CloudLink set up successfully, 0,1407966481,
5389, 0,2014-08-13,23:49:34,CloudLink,127.0.0.1,localhost,[CloudLink] cloudlink service disconnected, 0,1407966574,
5390, 0,2014-08-13,23:50:02,CloudLink,127.0.0.1,localhost,[CloudLink] cloudlink service connected, 0,1407966602,
5391, 0,2014-08-14,14:48:16,admin,10.100.200.100,---,[FTP Service] FTP service enabled., 0,1408020495,
5392, 0,2014-08-14,14:48:16,admin,10.100.200.100,---,[FTP Service] FTP service port changed from [21] to [10021]., 0,1408020496,
5393, 0,2014-08-14,14:48:16,admin,10.100.200.100,---,[FTP Service] Passive FTP port range changed to [55536] ~ [56559]. , 0,1408020496,
5394, 0,2014-08-14,21:38:31,System,127.0.0.1,localhost,phpError 2012 has been installed in /share/CACHEDEV1_DATA/.qpkg/phpError., 0,1408045111,
Done. Return value is 0[/log]

[~] # log_tool -q -v | tail -n 50
5346, 0,2014-08-11,15:39:10,rtorrent,127.0.0.1,localhost,(info) rtorrent: RT_DOWNLOAD_SHARE: /share/Download, 0,1407764350,
5347, 0,2014-08-11,15:39:13,rtorrent,127.0.0.1,localhost,(info) rtorrent: Fix no more PTYs issue, 0,1407764353,
5348, 0,2014-08-11,15:39:14,rtorrent,127.0.0.1,localhost,(info) rtorrent: Creating link: /usr/bin/rtorrent, 0,1407764354,
5349, 0,2014-08-11,15:39:15,rtorrent,127.0.0.1,localhost,(info) rtorrent: exec: ln -sf /share/CACHEDEV1_DATA/.qpkg/rtorrent /usr/bin/rtorrent, 0,1407764355,
5350, 0,2014-08-11,15:39:17,admin,10.100.200.100,---,[App Center] Virtualization Station removed., 0,1407764354,
5351, 0,2014-08-11,15:39:22,rtorrent,127.0.0.1,localhost,(info) rtorrent: TZ: Europe/Amsterdam, 0,1407764362,
5352, 0,2014-08-11,15:39:22,rtorrent,127.0.0.1,localhost,(info) rtorrent: Port Web: 6009 is available., 0,1407764362,
5353, 0,2014-08-11,15:39:22,rtorrent,127.0.0.1,localhost,(info) rtorrent: Port SecureWeb: 6008 is available., 0,1407764362,
5354, 0,2014-08-11,15:39:22,rtorrent,127.0.0.1,localhost,(info) rtorrent: Port SCGI: 5000 is available., 0,1407764362,
5355, 0,2014-08-11,15:39:23,rtorrent,127.0.0.1,localhost,(info) rtorrent: Port DHT: 6881 is available., 0,1407764363,
5356, 0,2014-08-11,15:39:23,rtorrent,127.0.0.1,localhost,(info) rtorrent: Port Torrent: 42000 is available., 0,1407764363,
5357, 0,2014-08-11,15:39:23,rtorrent,127.0.0.1,localhost,(info) rtorrent: eth0 ipaddr: 10.100.200.10, 0,1407764363,
5358, 0,2014-08-11,15:39:25,rtorrent,127.0.0.1,localhost,(info) rtorrent: external ipaddr: 83.218.116.69, 0,1407764365,
5359, 0,2014-08-11,15:39:26,rtorrent,127.0.0.1,localhost,(info) rtorrent: Cloud host name: silas, 0,1407764366,
5360, 0,2014-08-11,15:39:26,rtorrent,127.0.0.1,localhost,(info) rtorrent: Cloud domain name: myqnapcloud.com, 0,1407764366,
5361, 0,2014-08-11,15:39:26,rtorrent,127.0.0.1,localhost,(info) rtorrent: User mail address: ctrl@qnapclub.pl, 0,1407764366,
5362, 0,2014-08-11,15:39:26,rtorrent,127.0.0.1,localhost,(info) rtorrent: Web server certificate found., 0,1407764366,
5363, 0,2014-08-11,15:39:27,rtorrent,127.0.0.1,localhost,(info) rtorrent: Generating new RPC password., 0,1407764366,
5364, 0,2014-08-11,15:39:27,rtorrent,127.0.0.1,localhost,(info) rtorrent: Applying new RPC password., 0,1407764367,
5365, 0,2014-08-11,15:39:28,rtorrent,127.0.0.1,localhost,(info) rtorrent: IP Geolocation db_update: Country: GeoIP.dat, 0,1407764363,
5366, 0,2014-08-11,15:39:29,rtorrent,127.0.0.1,localhost,(info) rtorrent: Current ipfilter size is 3662591 bytes, 0,1407764369,
5367, 0,2014-08-11,15:39:29,rtorrent,127.0.0.1,localhost,(info) rtorrent: Remote ipfilter size is 3662591 bytes, 0,1407764369,
5368, 0,2014-08-11,15:39:29,rtorrent,127.0.0.1,localhost,(info) rtorrent: ipfilter list is up to date!, 0,1407764369,
5369, 0,2014-08-11,15:39:30,rtorrent,127.0.0.1,localhost,(info) rtorrent: php-fpm started., 0,1407764370,
5370, 0,2014-08-11,15:39:30,rtorrent,127.0.0.1,localhost,(info) rtorrent: UPnP Port mapping: 5000, 6881, 42000, 0,1407764363,
5371, 0,2014-08-11,15:39:31,rtorrent,127.0.0.1,localhost,(info) rtorrent: IP Geolocation db_update: City: GeoIPCity.dat, 0,1407764370,
5372, 0,2014-08-11,15:39:33,rtorrent,127.0.0.1,localhost,(info) rtorrent: rtorrent started., 0,1407764373,
5373, 0,2014-08-11,15:39:36,rtorrent,127.0.0.1,localhost,(info) rtorrent: lighttpd started., 0,1407764376,
5374, 0,2014-08-11,15:39:36,rtorrent,127.0.0.1,localhost,(info) rtorrent: Waiting for background processes to finish... (18556 18555), 0,1407764376,
5375, 0,2014-08-11,15:40:19,rtorrent,127.0.0.1,localhost,(info) rtorrent: Background jobs done. (18556 18555), 0,1407764419,
5376, 0,2014-08-11,16:33:53,CloudLink,127.0.0.1,localhost,[CloudLink] cloudlink service connected, 0,1407767633,
5377, 0,2014-08-11,16:33:54,System,127.0.0.1,localhost,[myQNAPcloud] CloudLink set up successfully, 0,1407767633,
5378, 0,2014-08-11,16:37:24,rtorrent,127.0.0.1,localhost,Download finished: The.Day.The.Earth.Stood.Still.2008.MULTi.1080p.BluRay.X264-inTGrity, 0,1407767844,
5379, 0,2014-08-11,17:35:15,System,127.0.0.1,localhost,[myQNAPcloud] CloudLink cannot set up, Please make sure your device is connected to the Internet and the UDP traffic is not blocked. error code: [3], 0,1407771315,
5380, 0,2014-08-11,17:38:17,CloudLink,127.0.0.1,localhost,[CloudLink] cloudlink service disconnected, 0,1407771497,
5381, 0,2014-08-11,17:38:44,CloudLink,127.0.0.1,localhost,[CloudLink] cloudlink service connected, 0,1407771524,
5382, 0,2014-08-11,17:38:51,System,127.0.0.1,localhost,[myQNAPcloud] CloudLink set up successfully, 0,1407771531,
5383, 1,2014-08-11,23:10:23,System,127.0.0.1,localhost,[Volume DataVol1] Volume used size hits threshold(95%). Free size is 42.81 GB. Low storage space may affect the performance of file access, please expand volume capacity as soon as possible., 0,1407791423,
5384, 0,2014-08-12,01:23:47,admin,10.100.200.100,---,[TCP/IP] DNS settings changed to [194.204.152.34] (secondary)., 0,1407799424,
5385, 0,2014-08-13,05:18:18,admin,10.100.200.100,---,[App Center] HybridDesk Station disabled., 0,1407899898,
5386, 0,2014-08-13,05:18:59,admin,10.100.200.100,---,[App Center] HybridDesk Station enabled., 0,1407899939,
5387, 0,2014-08-13,23:46:42,System,127.0.0.1,localhost,[myQNAPcloud] CloudLink cannot set up, Please make sure your device is connected to the Internet and the UDP traffic is not blocked. error code: [3], 0,1407966402,
5388, 0,2014-08-13,23:48:01,System,127.0.0.1,localhost,[myQNAPcloud] CloudLink set up successfully, 0,1407966481,
5389, 0,2014-08-13,23:49:34,CloudLink,127.0.0.1,localhost,[CloudLink] cloudlink service disconnected, 0,1407966574,
5390, 0,2014-08-13,23:50:02,CloudLink,127.0.0.1,localhost,[CloudLink] cloudlink service connected, 0,1407966602,
5391, 0,2014-08-14,14:48:16,admin,10.100.200.100,---,[FTP Service] FTP service enabled., 0,1408020495,
5392, 0,2014-08-14,14:48:16,admin,10.100.200.100,---,[FTP Service] FTP service port changed from [21] to [10021]., 0,1408020496,
5393, 0,2014-08-14,14:48:16,admin,10.100.200.100,---,[FTP Service] Passive FTP port range changed to [55536] ~ [56559]. , 0,1408020496,
5394, 0,2014-08-14,21:38:31,System,127.0.0.1,localhost,phpError 2012 has been installed in /share/CACHEDEV1_DATA/.qpkg/phpError., 0,1408045111,
Done. Return value is 0


Bash:
#!/bin/bash

# Print to stdout
echo "1. Bash"
echo "2. Scripting"
echo "3. Tutorial"