aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: ping amuled  (Read 2226 times)

sovking

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
ping amuled
« on: May 04, 2005, 08:07:09 PM »

It would be useful to have some tool to test if amuled is alive:

right now is possible to isse the command:
% amulecmd -P somepassword -c "Stats" | grep Connected

to get the following output:
> Connected to someserver [xxx.xxx.xxx.xxx:4661] with HighID

I would like to have something:

% amulecmd -P somepassword --ping
Amule 2.0.0 is alive on 192.168.1.8 and is connected to someserver [xxx.xxx.xxx.xxx:4661] with HighID

without any other output, and returning:
  • 0 if amuled is alive and connected
  • 1 if amuled is alive and disconnected
  • -1 if amuled is dead (not responding)


This command it would be useful to implement watchdogs and start/stop scripts for amuled. :)
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: ping amuled
« Reply #1 on: May 08, 2005, 08:45:14 AM »

Seems to be easy.
Logged
concordia cum veritate