in ubuntu at startup i want to run command just ask user to enter a number.
this command should run recursive in while loop. after user enter a number
a php program process it and again ask user for enter an another number. i have this script runs perfectly.
then put this script in rc.local file to run at startup. when i manually run "exec rc.local" command it works fine.
but when i restart my system to execute command at startup nothing happen.
i expected after startup a terminal window open and ask for number input, Just like what occurs after running the file manually.
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. set -x # tell sh to display commands before execution while true; do php /var/www/html/eventica/artisan SendRfid:send; sleep 0; done exit 0