ranger-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ranger-users] ranger: how-tos or cheat-sheet


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:
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.
I added this , so it was cloned form the default working examples for html, pdf, ..
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]