1
I am trying to create code in Bash Scripting, and I need it to run this script in the background and run this command daily at this predetermined time and run only once. I’m having problems, because it keeps giving loops endless, example giving the command 'id'. Here is the code:
#!/bin/bash
RUNT="15:07"
exec='id'
while [ 1 ]
do
DATE=`/bin/date +%H:%M`
if [ $DATE. = $RUNT. ]
then
$exec
fi
done &