debian 下通过shell获取网卡的ip地址和mac地址

ip=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'`
mac=`ifconfig | grep HWaddr | awk -F" " '{print $5}'`

Last modified onSunday, 14 October 2012 04:07

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0004413008{main}( ).../index.php:0
20.07204263344Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.07204263344Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.298511454424Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.299111479056Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.299811534384Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.300011561784require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.307611961416K2ControllerItem->execute( ).../k2.php:64
90.307611961416K2ControllerItem->display( ).../BaseController.php:710
100.316412612120K2ControllerItem->display( ).../item.php:78
110.316412612120K2ControllerItem->display( ).../controller.php:19
120.320612983160Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.322113003528K2ViewItem->display( ).../ViewController.php:102
140.383515757776K2ViewItem->display( ).../view.html.php:742
150.383515757776K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.385015930712include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Debian
  • Read 3431 times
More in this category: winscp 自定义命令 »

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0004413008{main}( ).../index.php:0
20.07204263344Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.07204263344Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.298511454424Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.299111479056Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.299811534384Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.300011561784require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.307611961416K2ControllerItem->execute( ).../k2.php:64
90.307611961416K2ControllerItem->display( ).../BaseController.php:710
100.316412612120K2ControllerItem->display( ).../item.php:78
110.316412612120K2ControllerItem->display( ).../controller.php:19
120.320612983160Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.322113003528K2ViewItem->display( ).../ViewController.php:102
140.383515757776K2ViewItem->display( ).../view.html.php:742
150.383515757776K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.385015930712include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top