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.0011403560{main}( ).../index.php:0
20.05771321536Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05771321536Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.21372979904Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.21433004616Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.21503059944Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.21513077000require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.22093221088K2ControllerItem->execute( ).../k2.php:64
90.22093221088K2ControllerItem->display( ).../BaseController.php:710
100.22643490168K2ControllerItem->display( ).../item.php:78
110.22643490168K2ControllerItem->display( ).../controller.php:19
120.22743508688Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.22853529104K2ViewItem->display( ).../ViewController.php:102
140.27184001632K2ViewItem->display( ).../view.html.php:742
150.27184001632K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.27404176352include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Debian
  • Read 3424 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.0011403560{main}( ).../index.php:0
20.05771321536Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05771321536Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.21372979904Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.21433004616Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.21503059944Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.21513077000require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.22093221088K2ControllerItem->execute( ).../k2.php:64
90.22093221088K2ControllerItem->display( ).../BaseController.php:710
100.22643490168K2ControllerItem->display( ).../item.php:78
110.22643490168K2ControllerItem->display( ).../controller.php:19
120.22743508688Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.22853529104K2ViewItem->display( ).../ViewController.php:102
140.27184001632K2ViewItem->display( ).../view.html.php:742
150.27184001632K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.27404176352include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top