News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

simple linux script?

Started by Eggtastico, June 17, 2007, 20:55:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Eggtastico

I need to a program to launch on boot on my dreambox.

Its Linux based, so how do I go about doing it?

skidzilla

Quote from: example-shell-script.sh#!/bin/sh
/path/to/executable/name-of-executable
done
/etc/rc.d/rc.local is the equivalent of autoexec.bat for most Linux distros, its usually used for calling other scripts at boot time. :)
Also remember to give any scripts you write executable permissions.

Jaitsu

shell script...i hate that in first year

Eggtastico

how do I name a script? is there a format?
like .bat for batch file.

.sh?

Mongoose

strictly speaking you can call it what you like, its the execute permission setting which tells the system its an executable file under *nix.

mostly they end in .sh though.

Shakey

to get the script to run at startup:

http://ubuntu.wordpress.com/2005/09/07/adding-a-startup-script-to-be-run-at-bootup/

Thats for ubuntu, but it should be something similar for your setup.