View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000856aMuleFeature Requestpublic2006-03-30 15:392006-03-30 19:33
Reporterquinox 
Assigned ToKry 
PrioritynormalSeveritytweakReproducibilityN/A
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product VersionSVN 
Target VersionFixed in VersionSVN 
Summary0000856: Extended amulecmd with 'show log' and 'reset' command
DescriptionAmuleCMD is missing 2 commands that I like to use, show log and reset (to reset the log file). It's a trivial implementation ofcourse, I've added a patch to add those commands (I used the aMule-CVS-20060327 source).
Additional Information
When this is implemented, IMO http://bugs.amule.org/view.php?id=339 [^] will be solved too, since this can be achieved with a simple script like this one:

--begin--

#!/bin/sh

domule() {
  amulecmd -c "$@" | grep " >"
}
domule "show log" | sed "
/: Failed to / {s/: \(.*\)/: `tput setaf 1`\1`tput sgr0`/;}
/: Finished downloading/ {s/: \(.*\)/: `tput setaf 2`\1`tput sgr0`/;}
/: Downloading / {s/: \(.*\)/: `tput setaf 3`\1`tput sgr0`/;}
"
echo ""
domule "status" | sed "
/Download:/ {s/\(Download:\)\(.*\)/\1`tput setaf 3`\2`tput sgr0`/;}
/Upload:/ {s/\(Upload:\)\(.*\)/\1`tput setaf 2`\2`tput sgr0`/;}
"
domule "reset" >/dev/null

--end--

Which will give a nice coloured output as you can see here:
http://qtea.nl/tmp/extended.amulecmd.png [^]

Thanks for all the good work you guys do ;)
TagsNo tags attached.
Fixed in Revision
Operating System
Attached Filespatch file icon extended.amulecmd.patch [^] (2,352 bytes) 2006-03-30 15:39 [Show Content]

- Relationships

-  Notes
(0001933)
Kry (manager)
2006-03-30 19:33

Aplied on both upcoming 2.1.2 and SVN.

Seems you got the EC API kinnda fast. Good work :)

- Issue History
Date Modified Username Field Change
2006-03-30 15:39 quinox New Issue
2006-03-30 15:39 quinox File Added: extended.amulecmd.patch
2006-03-30 19:30 Kry Status new => assigned
2006-03-30 19:30 Kry Assigned To => Kry
2006-03-30 19:33 Kry Status assigned => resolved
2006-03-30 19:33 Kry Fixed in Version => CVS
2006-03-30 19:33 Kry Resolution open => fixed
2006-03-30 19:33 Kry Note Added: 0001933


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker