|
From: | ping |
Subject: | Re: [Ranger-users] ranger: how-tos or cheat-sheet |
Date: | Tue, 05 Mar 2013 01:27:05 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 |
On 2/25/2013 12:45 AM, Roman Z. wrote:
I added this , so it was cloned form the default working examples for html, pdf, ..also I want to make it display sth that does not come by default, >like displaying a pcap file using tcpdump... >how do I achieve that?In the preview column? Then what you're looking for is the configuration file "scope.sh". That's a shell script which tries to print useful information about the given file, which is then fed into the preview column of ranger.
but it just doesn't work. any hints? case "$extension" in ...... pcap)have tcpdump && tcpdump -SvvtttXXnr "$path" | head -n $maxln | fmt -s -w $width && exit 6
;; esac
[Prev in Thread] | Current Thread | [Next in Thread] |