programma starten bij het booten

Pagina: 1
Acties:

  • wursel2000
  • Registratie: Maart 2005
  • Laatst online: 27-01-2024
ik ben op zoek naar een mogelijkheid om het programma dp500serv (pc-link host kiss dp-500) bij het opstarten van mijn pc te laden, dit programma wordt normaal gezien geladen door /usr/local/bin/dp500serv in te typen.
aangezien ik ubuntu linux gebruik heb ik reeds een shell script gemaakt dat bij het booten geladen wordt (/etc/rc.boot/dp500serv), dit werkt, maar linux blijft "hangen" als het programma start en doet voort met booten tot ik op ctrl-c druk...
weet iemand hoe je dit programma start bij het booten zonder problemen?
thx

  • raoulduke
  • Registratie: Oktober 2003
  • Niet online

raoulduke

Get in!

Gebruik "&" in het script?

Remember, if you have any trouble you can always send a telegram to the Right People.


  • ripperke
  • Registratie: Augustus 2003
  • Laatst online: 15-10-2025

ripperke

w00t!

kijk of dat programma een "--daemon" of "to background" optie heeft
en anders in je shell script achteraan een "&" toevoegen

If TCP/IP handshaking was less formal, perhaps SYN/ACK would be YO/WASSUP


  • Sir Isaac
  • Registratie: September 2002
  • Laatst online: 21-05-2025
Bij ubuntu (en andere Debian gebaseerde distro's) moet je voor dit soort dingen het commando start-stop-daemon gebruiken. Dit wordt gebruikt door de scripts in /etc/init.d/ Een voorbeeldscript is /etc/init.d/skeleton. Manual pages lezen en dan aanpassen voor eigen gebruik.

  • wursel2000
  • Registratie: Maart 2005
  • Laatst online: 27-01-2024
helaas is voor dit programma geen deamon-mode beschikbaar ;(
het "&" karakter toevoegen aan het script werkt wel, thx guys

ik ben voor de moment nog de magische linux-wereld aan het ontdekken, maar ga mij nog niet meteen wagen aan het maken van een start-stop deamon... komt wel, maar alles op zijnen tijd ;)

  • Garyu
  • Registratie: Mei 2003
  • Laatst online: 17:55

Garyu

WW

Even voor het leereffect, wat doet dat '&'-karakter aan het einde dan precies als ik vragen mag?

It's Difficult to Make Predictions - Especially About the Future


  • Super_ik
  • Registratie: Maart 2001
  • Laatst online: 21:36

Super_ik

haklust!

uit 'man bash' :)
code:
1
2
3
4
5
6
If a command is terminated by the control operator &, the shell executes the
command in the background in a subshell.  The  shell  does not  wait  for 
the command to finish, and the return status is 0.  Commands separated 
by a ; are executed sequentially; the shell waits for each command 
to terminate in turn. The return status is the exit status of the 
last command executed.

[ Voor 5% gewijzigd door Super_ik op 07-06-2005 10:51 ]

8<------------------------------------------------------------------------------------
Als ik zo door ga haal ik m'n dood niet. | ik hou van goeie muziek


  • Garyu
  • Registratie: Mei 2003
  • Laatst online: 17:55

Garyu

WW

Super_ik schreef op dinsdag 07 juni 2005 @ 10:49:
uit 'man bash' :)
code:
1
2
3
4
5
6
If a command is terminated by the control operator &, the shell executes the
command in the background in a subshell.  The  shell  does not  wait  for 
the command to finish, and the return status is 0.  Commands separated 
by a ; are executed sequentially; the shell waits for each command 
to terminate in turn. The return status is the exit status of the 
last command executed.
Dank 8)

[ Voor 3% gewijzigd door Garyu op 07-06-2005 11:49 ]

It's Difficult to Make Predictions - Especially About the Future

Pagina: 1