Code Sample |
# Force online if ( $app =~ /^-o$|^--online$/ ) { print "Forcing online man check...\n"; sleep 2; $app = $ARGV[1]; $grab = $MANUAL . $app . '§ion=all'; system("netrik \"$grab\" 2>/dev/null"); exit; } # Force BB if ( $app =~ /^-b$|^--busybox$/ ) { print "Forcing BusyBox man check...\n"; sleep 2; $app = $ARGV[1]; $grab = 'http://www.busybox.net/downloads/BusyBox.html#item_' . $app; system("netrik \"$grab\" 2>/dev/null"); exit; } |
Quote |
/bin/ls is symlinked to "busybox" while every other busybox app is symlinked to "/bin/busybox". |
Quote (roberts @ May 18 2008,17:25) |
The symlink will be changed to accomodate the man script. So man.he.net is no longer working and we now wish to change again, this time, to linux.die.net/man/1/ ? |
Code Sample |
my $MANUAL='http://linux.die.net/man/'; ---snip--- else { print "This is not a BusyBox application.\n"; sleep 1; $grab = $MANUAL . $app; #print $grab . "\n"; exit; } if ($app=~/^\w+$/) { system("netrik \"$grab\" 2>/dev/null"); } else { print $usage; exit; } ---eof--- |