[Jan 22 2017, 19:17:22] Starting SMIT (Dialogue screen selected, FastPath = "date", id = "date", title = "Change / Show Day and Time".) [Jan 22 2017, 19:18:19] Command_to_Execute follows below: >> date_proc () # MM dd hh mm ss yy # dialogue param order # 2 3 4 5 6 1 { yy=$1 MM=$2 dd=$3 hh=$4 mm=$5 ss=$6 yy=${yy##*(0)} MM=${MM##*(0)} dd=${dd##*(0)} hh=${hh##*(0)} mm=${mm##*(0)} ss=${ss##*(0)} DATE_STR=`/usr/bin/printf "%02d%02d%02d%02d.%02d%02d" $(($MM)) $(($dd)) $(($hh)) $(($mm)) $(($ss)) $(($yy))` /usr/bin/date "$DATE_STR" } date_proc '17' '01' '22' '19' '26' '22' Output from Command_to_Execute follows below: ---- start ---- date: bind: The file access permissions do not allow the specified action. date: 0551-003 You must be root or authorized user to change the date. Sun Jan 22 19:18:19 GMT+09:00 2017 ---- end ---- 1800-035 Exit status (2) returned by command. (Command process used stdout and stderr file descriptors connected to SMIT via pipes.) [Jan 22 2017, 19:18:19] [Jan 22 2017, 19:18:32] Command_to_Execute follows below: >> date_proc () # MM dd hh mm ss yy # dialogue param order # 2 3 4 5 6 1 { yy=$1 MM=$2 dd=$3 hh=$4 mm=$5 ss=$6 yy=${yy##*(0)} MM=${MM##*(0)} dd=${dd##*(0)} hh=${hh##*(0)} mm=${mm##*(0)} ss=${ss##*(0)} DATE_STR=`/usr/bin/printf "%02d%02d%02d%02d.%02d%02d" $(($MM)) $(($dd)) $(($hh)) $(($mm)) $(($ss)) $(($yy))` /usr/bin/date "$DATE_STR" } date_proc '17' '01' '22' '19' '26' '22' Output from Command_to_Execute follows below: ---- start ---- date: bind: The file access permissions do not allow the specified action. date: 0551-003 You must be root or authorized user to change the date. Sun Jan 22 19:18:32 GMT+09:00 2017 ---- end ---- 1800-035 Exit status (2) returned by command. (Command process used stdout and stderr file descriptors connected to SMIT via pipes.) [Jan 22 2017, 19:18:32] [Jan 22 2017, 19:18:39] Exiting SMIT