Question

Here is the situation, I'm planning to use a simple script to start a program call "STAF", when the Suse system is fully booted. I have achieved this by putting it in the "/etc/init.d/", but this script is basically executed at the background, which means that I cannot see its progress.

When the "STAF" is started this way it works but it doesn't show any working progress when its running service (for example ping, or system backup), instead if I start the "STAF" manually by running the same script whit a terminal, the working progress of "STAF" can be seen on the terminal. Its sort of like the program needs to be started with a interactive terminal, but how can I make this starting process automatic and it should imitate human opening a terminal and run the script?

Sorry if I explained it poorly because its a confusing situation. Thanks.

Was it helpful?

Solution

First, go to the KDE Startup and Shutdown options under System Settings. Then add this command as a new startup script:

konsole -e bash nameofyourscript.sh 

OTHER TIPS

I believe the screen utility can do what you describe. Instead of running STAF on startup, you would run screen STAF. To open that terminal, you would run screen -ls to get the screen ID, and screen -r ... to open it.

(Disclaimer: I have not tried this.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top