文件操作 - pwd.sh
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/MegaRAID Storage Manager/pwd.sh
编辑文件内容
echo "#!/bin/sh" > /etc/init.d/msm_profile echo "#" >> /etc/init.d/msm_profile echo "# msm_profile sets the environment variables" >> /etc/init.d/msm_profile echo "# chkconfig: 2345 99 00" >> /etc/init.d/msm_profile echo "# processname: msm_profile" >> /etc/init.d/msm_profile echo "### BEGIN INIT INFO" >> /etc/init.d/msm_profile echo "# Provides: msm_profile" >> /etc/init.d/msm_profile echo "# Required-Start: $syslog" >> /etc/init.d/msm_profile echo "# Required-Stop:" >> /etc/init.d/msm_profile echo "# Default-Start: 2 3 4 5" >> /etc/init.d/msm_profile echo "# Default-Stop: 0 6" >> /etc/init.d/msm_profile echo "# Description: msm_profile" >> /etc/init.d/msm_profile echo "### END INIT INFO" >> /etc/init.d/msm_profile echo "MSM_HOME=\""`echo $0 | sed -e 's/\/pwd.sh//'`"\"">> /etc/init.d/msm_profile echo "export MSM_HOME" >> /etc/init.d/msm_profile \rm -f $0
修改文件时间
将文件时间修改为当前时间的前一年
删除文件