Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 10046  / 2 Years ago, fri, june 24, 2022, 10:50:45

I have an application installed on my Samsung NP-RV509 which makes the Fn keys work properly.


I have determined that the startup of this application is the reason for almost 30 extra seconds of booting time.


Can I write a shell/python script (I, myself, can't actually do this as I don't know shell/python programming) that will introduce a delay by maybe using a loop or something and then start the above application? Shall I add/apply this script in startup apps?


This should effectively simulate the running of that program at startup, but it would be delayed in actuality.


How can I achieve this?


More From » scripts

 Answers
4

You can add a delay time with sleep command.



man sleep for more info .



Example



I want to startup a program with delay of 10 seconds.
I create an entry in the startup applications with this in command field



sleep 10;/usr/bin/<program name>



Example 2



I want to create a script with the delay (sleep) option and add this script to startup applications



gedit delayscript.sh



and I add these lines



#!/bin/bash 

sleep 10
/usr/bin/<program name>


save the script and give it executable permissions



chmod +x delayscript.sh



and add it to startup applications (command field) with full path



/home/username/delayscript.sh


[#34703] Sunday, June 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainlyyor

Total Points: 210
Total Questions: 129
Total Answers: 116

Location: Barbados
Member since Sun, Nov 27, 2022
1 Year ago
;