Hi !
Thank you for your answers !
@ schneidz : Thank you very much ! Calling my script in ~/.bash_profile was the solution ! ;-)
Quote:
Originally Posted by catkin
"Foreground" means running in an interactive terminal. Boot scripts, run from the likes of the /etc/rc3.d directory are not running in an interactive terminal; they are sending their output to the console.
|
OK, so I wanted to call it in "foreground", so I will move it out from /etc/rc3.d/.
Quote:
Originally Posted by catkin
Do you mean you want the script to run in the logged-in session? Or simply that it should run after the automatic login?
That is possible and does not need to be done in the foreground unless you want to interact with it.
|
I mean that I want it to run in the logged-in session. And I have to interact with my script.
Quote:
Originally Posted by catkin
It might be better if you tell us what you want to do rather than ask us how to implement your solution. We may be able to suggest a better solution.
|
The aim of my script is to launch an application that will capture the input (here, a keyboard) and make some actions regarding what key is pushed.
When we want to stop the computer, we kill the app (CTRL+C) and then the script will automatically shutdown the computer.
Here is an exemple of the script I want to use :
Code:
[Here some code to wait 5 seconds so that the user can cancel the script continuation and take the hand on the computer]
[calling of my app]
sudo shutdown now