linux shell编写以日期时间为文件名的脚本
- font size decrease font size increase font size
--
#!/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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0004 | 416128 | {main}( ) | .../index.php:0 |
2 | 0.0725 | 4721720 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0725 | 4721720 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.2493 | 12450160 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.2501 | 12474872 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.2508 | 12530200 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.2510 | 12559024 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.2588 | 12994432 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.2588 | 12994432 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.2685 | 13719632 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.2685 | 13719632 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.2725 | 14116000 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.2739 | 14136368 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.3445 | 17102648 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.3445 | 17102648 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.3462 | 17282848 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in CentOS 6
- Read 2728 times
( ! ) 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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0004 | 416128 | {main}( ) | .../index.php:0 |
2 | 0.0725 | 4721720 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0725 | 4721720 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.2493 | 12450160 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.2501 | 12474872 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.2508 | 12530200 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.2510 | 12559024 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.2588 | 12994432 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.2588 | 12994432 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.2685 | 13719632 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.2685 | 13719632 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.2725 | 14116000 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.2739 | 14136368 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.3445 | 17102648 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.3445 | 17102648 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.3462 | 17282848 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |