LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   automatically starting process in Fedora Core 2 by using script (https://www.linuxquestions.org/questions/programming-9/automatically-starting-process-in-fedora-core-2-by-using-script-210968/)

falkesgaard 07-29-2004 06:36 AM

automatically starting process in Fedora Core 2 by using script
 
My problem is that I automatically want to start a process when my computer starts. I'm using Fedora Core 2, and I think that I "just" need to write a script that I can place in ~/Desktop/Autostart

What I normally do is to open a Console, where I write the command "vls". And that it is all - but I would like this to be done automatically.

Can anyone help me with this.

PLZ

kilgoretrout 07-29-2004 10:11 AM

Here's your script:

#!/bin/bash
vls


Put that in a text file and name the text file dovls. Open a console and navigate to the directory that dovls is in and run as root:

# chmod a+x dovls


That makes the script executable. Place the script in your ~.kde/Desktop/Autostart directory. That should start vls whenever kde starts assuming vls is in PATH which apparently it is since you don't have to give the path to it in a console in order to execute it.


All times are GMT -5. The time now is 04:38 AM.