SSH-Server gibt Exit-Code 255 anstelle von 0 zurück

Post new topic   Reply to topic    DD-WRT Forum Index -> Allgemeine Fragen
Author Message
IceSheep
DD-WRT Novice


Joined: 25 Feb 2010
Posts: 4

PostPosted: Thu Feb 25, 2010 19:30    Post subject: SSH-Server gibt Exit-Code 255 anstelle von 0 zurück Reply with quote
Hallo,

im Rahmen eines Hochschul-Projektes arbeiten wir mit einem DD-WRT-Router, auf dem per SSH Befehle ausgeführt werden sollen (forced commands, z.B. ssh root@ddwrt 'touch /tmp/test'). Leider besteht das Problem, dass der SSH-Prozess auch bei erfolgreicher Ausführung 255 zurückgibt. Das stellt in unserem Fall ein großes Problem dar, weil sich unser Software-Framework auf einen Exit-Code von 0 verlässt.

Weiß jemand, ob das Problem in der aktuellen DD-WRT-Firmware noch auftritt? Wir konnten bisher leider nur mit einer Beta-Version von 2007 testen.

Danke und Gruß,
IceSheep
Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Thu Feb 25, 2010 19:38    Post subject: Reply with quote
die versionen sind schon lange nicht mehr supported!

read:

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
pepe
DD-WRT Guru


Joined: 16 Jun 2006
Posts: 2427
Location: Berlin, Germany

PostPosted: Thu Feb 25, 2010 19:47    Post subject: Reply with quote
Also bei dieser Version
DD-WRT v24-sp2 (01/16/10) vpn
(SVN revision 13637)
Bekomme ich nach erfolgreichen ausführen eines Skriptes
Mit
Code:
echo$?

Exit code 0

_________________
http://www.dd-wrt.com/phpBB2/search.php?
http://www.dd-wrt.com/wiki/index.php/Main_Page
http://www.dd-wrt.com/wiki/index.php/Category:Deutsche_Dokumentation

http://i-use.ipfire.org/profile/454051a193d29c9019ea3d0ce3c4b801435fd682/0.png
IceSheep
DD-WRT Novice


Joined: 25 Feb 2010
Posts: 4

PostPosted: Fri Feb 26, 2010 9:38    Post subject: Reply with quote
Danke für Eure Antworten!

Dass die Version nicht mehr supported wird, ist mir schon klar. Es ging ja auch eher darum, ob sich die aktuelle Version in Bezug auf den Exit-Code korrekt verhält :-)

pepe, hast Du versucht, das Script remote per Forced Command auszuführen? Bei der lokalen Ausführung lief bei uns auch alles glatt.
pepe
DD-WRT Guru


Joined: 16 Jun 2006
Posts: 2427
Location: Berlin, Germany

PostPosted: Sat Feb 27, 2010 8:02    Post subject: Reply with quote
Ne habe das script nicht remote gestartet.
_________________
http://www.dd-wrt.com/phpBB2/search.php?
http://www.dd-wrt.com/wiki/index.php/Main_Page
http://www.dd-wrt.com/wiki/index.php/Category:Deutsche_Dokumentation

http://i-use.ipfire.org/profile/454051a193d29c9019ea3d0ce3c4b801435fd682/0.png
IceSheep
DD-WRT Novice


Joined: 25 Feb 2010
Posts: 4

PostPosted: Sat Mar 06, 2010 16:27    Post subject: Reply with quote
Wir haben inzwischen mit einer aktuellen Firmware (DD-WRT v24-sp2 (10/10/09) std) testen können. Damit tritt das Problem nicht mehr auf.

Danke für Eure Antworten!

Gruß,
IceSheep
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Allgemeine Fragen All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum