( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0020414144{main}( ).../index.php:0
20.08784265072Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.359413116168Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.359513116112Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.359513116488Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.359513116488Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.359713116584Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.360013154824require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.365113447184GKTemplate->__construct( ).../component.php:31
100.371513588704GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.372413632672require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0020414144{main}( ).../index.php:0
20.08784265072Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.359413116168Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.359513116112Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.359513116488Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.359513116488Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.359713116584Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.360013154824require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.365113447184GKTemplate->__construct( ).../component.php:31
100.374513755536GKTemplateMenu->getMenuType( ).../gk.framework.php:85
linux shell编写以日期时间为文件名的脚本
Logo
Print this page

linux shell编写以日期时间为文件名的脚本

--

#!/bin/sh

a=`date +%Y-%m-%d-%H-%M-%S`
echo $a;


a=`date +%Y-%m-%d-%Hh-%Mm-%Ss`
echo $a;

 

 

#log
MYDATE=`date +%d%m%y`
#append MYDATE to the variable LOGFILE that holds the actual filename of the log
LOGFILE=/root/test_log.$MYDATE
#create the file
>$LOGFILE
MYTIME=`date +%d%R`
LOGFILE2=/root/test_logtime.$MYTIME
#create the file
>$LOGFILE2
 
Last modified onWednesday, 18 September 2013 22:19

( ! ) 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.0067414464{main}( ).../index.php:0
20.34914265392Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.34914265392Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
41.105911456816Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
51.106511481448Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
61.108911536776Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
71.109211564176require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
81.129611963808K2ControllerItem->execute( ).../k2.php:64
91.129611963808K2ControllerItem->display( ).../BaseController.php:710
101.176212614512K2ControllerItem->display( ).../item.php:78
111.176212614512K2ControllerItem->display( ).../controller.php:19
121.187612985552Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
131.200913005920K2ViewItem->display( ).../ViewController.php:102
141.494815839112K2ViewItem->display( ).../view.html.php:742
151.494815839112K2ViewItem->loadTemplate( ).../HtmlView.php:230
161.507716012048include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) 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.0067414464{main}( ).../index.php:0
20.34914265392Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.34914265392Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
41.105911456816Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
51.106511481448Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
61.108911536776Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
71.109211564176require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
81.129611963808K2ControllerItem->execute( ).../k2.php:64
91.129611963808K2ControllerItem->display( ).../BaseController.php:710
101.176212614512K2ControllerItem->display( ).../item.php:78
111.176212614512K2ControllerItem->display( ).../controller.php:19
121.187612985552Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
131.200913005920K2ViewItem->display( ).../ViewController.php:102
141.494815839112K2ViewItem->display( ).../view.html.php:742
151.494815839112K2ViewItem->loadTemplate( ).../HtmlView.php:230
161.507716012048include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.