View previous topic :: View next topic |
Author |
Message |
Mac Fly Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 30 Nov 2003 Posts: 330 Location: nähe Stuttgart
|
Posted: Sun Mar 14, 2004 4:05 pm Post subject: local.start bringt Fehler |
|
|
Quote: | macfly@netkiffer:~> cat /etc/conf.d/local.start
## Temporaere Dateien loeschen:
ebegin "Cleaning Tmp"
rm -r -f /tmp/*
rm -r -f /usr/tmp/portage/*
rm -r -f /var/tmp/portage/*
eend $?
## Portage Distfiles loeschen:
ebegin "Cleaning Distfiles"
rm -r -f /usr/portage/distfiles/*
eend $?
## Logitech Tastaturtreiber laden
ebegin "Starte Logitech Tastatur Layout"
su - macfly lineakd & 2&> /dev/null
eend $?
|
Die ersten 2 funktionieren wunderbar, nur beim dritten erscheint folgende Fehlermeldung: Code: | Failed to start local
lineakd: /usr/bin/lineakd: cannot execute binary file |
Führe ich allerdings als user macfly folgendes aus, gehts auch: Code: | lineakd & 2&> /dev/null |
Ich habs auch als rc-script versucht: Code: | #!/sbin/runscript
# Writen by ME! with _LOTS_ of help from Gentoo Forums.
start () {
ebegin "Starte Logitech Treiber"
su - macfly /usr/bin/lineakd & 2&> /dev/null
eend $?
}
stop () {
ebegin "Stoppe Logitech Treiber"
killall lineakd
eend $?
}
restart () {
ebegin "Restarting Logitech"
svc_stop
svc_start
} |
Code: | netkiffer linux # /etc/init.d/logitech_keyboard start
* Starte Logitech Treiber...
/usr/bin/lineakd: /usr/bin/lineakd: cannot execute binary file |
Aber es muss doch möglich sein, das es beim booten gestartet wird? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Poppenpopper Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Homer.jpg)
Joined: 29 Sep 2003 Posts: 80 Location: Böblingen
|
Posted: Sun Mar 14, 2004 4:19 pm Post subject: |
|
|
was passiert, wenn Du
Code: | su - macfly lineakd & 2&> /dev/null |
eingibst? weil den Befehl willst du ja ausführen und nicht nur den
Code: | lineakd & 2&> /dev/null |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mac Fly Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 30 Nov 2003 Posts: 330 Location: nähe Stuttgart
|
Posted: Sun Mar 14, 2004 4:34 pm Post subject: |
|
|
Es is zum heulen...
Code: | netkiffer root # su - macfly lineakd
lineakd: /usr/bin/lineakd: cannot execute binary file
netkiffer root # su - macfly
macfly@netkiffer:~> lineakd &
[1] 5852
macfly@netkiffer:~>
|
Sprich, als normaler User gehts... Beim booten nicht...
Last edited by Mac Fly on Sun Mar 14, 2004 4:39 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Poppenpopper Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Homer.jpg)
Joined: 29 Sep 2003 Posts: 80 Location: Böblingen
|
Posted: Sun Mar 14, 2004 4:38 pm Post subject: |
|
|
Was sagt er bei:
su - root -c 'Befehl den Du ausführen willst' & |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mac Fly Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 30 Nov 2003 Posts: 330 Location: nähe Stuttgart
|
Posted: Sun Mar 14, 2004 5:00 pm Post subject: |
|
|
Danke, das -c wars ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Poppenpopper Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Homer.jpg)
Joined: 29 Sep 2003 Posts: 80 Location: Böblingen
|
Posted: Sun Mar 14, 2004 5:24 pm Post subject: |
|
|
"man su" kann manchmal helfen
Wo aus der Nähe von Stuttgart kommst denn her?
Grüße
Lars |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mac Fly Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 30 Nov 2003 Posts: 330 Location: nähe Stuttgart
|
Posted: Sun Mar 14, 2004 6:20 pm Post subject: |
|
|
Ich hab die man gelesen, bin aber nicht wirklich schlau draus geworden...
Nähe Backnang ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|