public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* HTML files not open in MC
@ 2005-05-01  5:52 Peter H.
  0 siblings, 0 replies; 4+ messages in thread
From: Peter H. @ 2005-05-01  5:52 UTC (permalink / raw)
  To: linux

Hi,

In the file manager program "mc" version 4.6.0 html files will not open 
anymore when clicked on. Neither in X nor in console mode. In the latter lynx 
should come into play.

My settings in ~/.mc/bindings are:

# html                                                                          
regex/\.([Hh]tml?|HTML?|stm?)$                                                 

        Open=if echo "%d/%p" | grep ^ftp; then $viewer %d/%p; else $viewer 
file:
%p; fi                                                                         

        Open=if [ x$DISPLAY = x:0.0 ]; then dillo file:%f; else lynx %f ; fi   
        View=%view{ascii} lynx -dump -force_html %f;                           

        Run with AppletViewer=appletviewer %f                                  

        View with lynx=lynx file://%f

With this I get the error:
/tmp/mc-heisspf/mcexty1yKKb: line 2: file:Exotismus.html: command not found

and the file /tmp/mc-heisspf/mcexty1yKKb is:
#! /bin/sh                                                                      
if echo "/home/peter/HTMLs/Exotismus.html" | grep ^ftp; then $viewer 
/home/peter
/HTMLs/Exotismus.html; else $viewer file:Exotismus.html; fi

I had the problem before with dillo when I upgraded to 8.4. this was solved 
adding "file:" in the line "then dillo file:%f", however, lynx always worked 
in the console.

Now if I remove "file:" in the line "..else $viewer %p; fi" I get the error:
./Exotismus.html: Permission denied

and the /tmp/mc-heisspf/* reads:
if echo "/home/peter/HTMLs/Exotismus.html" | grep ^ftp; then $viewer 
/home/peter
/HTMLs/Exotismus.html; else $viewer Exotismus.html; fi

Lynx still does not come up on the console and I get the error message: 
Permission denied.

It seems in the else statement the $viewer does not get anymore the path where 
the file is based.

So I added %d/ to "else $viewer %p" in .mc/bindings and I get Permission 
denied, adding file:%d/%p I get command not found. In the /tmp/mc-heissp/* in 
the else statement $viewer has then the correct directory path either with or 
w/o file:.

How to resolve?

Thanks & regards
-- 
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HTML files not open in MC
@ 2005-05-03  2:49 Peter
  0 siblings, 0 replies; 4+ messages in thread
From: Peter @ 2005-05-03  2:49 UTC (permalink / raw)
  To: linux-newbie


I solved the problem. My ~/.mc/bindings was apparently an old version. Copying
/usr/share/mc/mc.ext to ~/.mc/bindings and making the necessary corrections
makes diilo and lynx pop-up in split seconds again.

# html
regex/\.([Hh]tml?|HTML?|stm?)$
        Open=if test -n "dillo" && test -n "$DISPLAY"; then (dillo
file://%d/%p &) >/dev/null 2>&1; else lynx %f 2>/dev/null || lynx -force_html
%f; fi        View=%view{ascii} lynx -dump -force_html %f


Peter H. <heisspf@skyinet.net> wrote:

> In the file manager program "mc" version 4.6.0 html files will not open 
> anymore when clicked on. Neither in X nor in console mode. In the latter
> lynx should come into play.
> 
> My settings in ~/.mc/bindings are:
> 
> ## html                                                                     
> regex/\.([Hh]tml?|HTML?|stm?)$                                              
> Open=if echo "%d/%p" | grep ^ftp; then $viewer %d/%p; else $viewer 
> file:%p; fi                                                                 
    
>         Open=if [ x$DISPLAY = x:0.0 ]; then dillo file:%f; else lynx %f ; fi
>         View=%view{ascii} lynx -dump -force_html %f;                        
>         Run with AppletViewer=appletviewer %f                               
>         View with lynx=lynx file://%f
> 
> With this I get the error:
> /tmp/mc-heisspf/mcexty1yKKb: line 2: file:Exotismus.html: command not found
> 
> and the file /tmp/mc-heisspf/mcexty1yKKb is:
> ##! /bin/sh                                                                 
    
> if echo "/home/peter/HTMLs/Exotismus.html" | grep ^ftp; then $viewer 
> /home/peter
> /HTMLs/Exotismus.html; else $viewer file:Exotismus.html; fi
> 
> I had the problem before with dillo when I upgraded to 8.4. this was solved 
> adding "file:" in the line "then dillo file:%f", however, lynx always worked
> in the console.
> 
> Now if I remove "file:" in the line "..else $viewer %p; fi" I get the error:
> ./Exotismus.html: Permission denied
> 
> and the /tmp/mc-heisspf/* reads:
> if echo "/home/peter/HTMLs/Exotismus.html" | grep ^ftp; then $viewer 
> /home/peter/HTMLs/Exotismus.html; else $viewer Exotismus.html; fi
> 
> Lynx still does not come up on the console and I get the error message: 
> Permission denied.
> 
> It seems in the else statement the $viewer does not get anymore the path
> where the file is based.
> 
> So I added %d/ to "else $viewer %p" in .mc/bindings and I get Permission 
> denied, adding file:%d/%p I get command not found. In the /tmp/mc-heissp/*
> in  the else statement $viewer has then the correct directory path either
> with or  w/o file:.
> 
> How to resolve?
> 
> Thanks & regards
> -- 
> Peter
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HTML files not open in MC
@ 2005-05-03  5:39 Peter
  2005-05-03 15:19 ` linux-newbie
  0 siblings, 1 reply; 4+ messages in thread
From: Peter @ 2005-05-03  5:39 UTC (permalink / raw)
  To: linux-newbie

Hi,

I solved the problem. My ~/.mc/bindings was apparently for the old version of
mc. Copying /usr/share/mc/mc.ext to ~/.mc/bindings and making the necessary
corrections makes diilo and lynx pop-up in split seconds again.

# html
regex/\.([Hh]tml?|HTML?|stm?)$
        Open=if test -n "dillo" && test -n "$DISPLAY"; then (dillo
file://%d/%p &) >/dev/null 2>&1; else lynx %f 2>/dev/null || lynx -force_html
%f; fi        View=%view{ascii} lynx -dump -force_html %f

Ergo, if you upgrade upgrade the settings as well.

Peter H. <heisspf@skyinet.net> wrote:

> In the file manager program "mc" version 4.6.0 html files will not open 
> anymore when clicked on. Neither in X nor in console mode. In the latter
> lynx should come into play.
> 
> My settings in ~/.mc/bindings are:
> 
> ## html                                                                     
> regex/\.([Hh]tml?|HTML?|stm?)$                                              
> Open=if echo "%d/%p" | grep ^ftp; then $viewer %d/%p; else $viewer 
> file:%p; fi                                                                 
    
>         Open=if [ x$DISPLAY = x:0.0 ]; then dillo file:%f; else lynx %f ; fi
>         View=%view{ascii} lynx -dump -force_html %f;                        
>         Run with AppletViewer=appletviewer %f                               
>         View with lynx=lynx file://%f
> 
> With this I get the error:
> /tmp/mc-heisspf/mcexty1yKKb: line 2: file:Exotismus.html: command not found
> 
> and the file /tmp/mc-heisspf/mcexty1yKKb is:
> ##! /bin/sh                                                                 
    
> if echo "/home/peter/HTMLs/Exotismus.html" | grep ^ftp; then $viewer 
> /home/peter
> /HTMLs/Exotismus.html; else $viewer file:Exotismus.html; fi
> 
> I had the problem before with dillo when I upgraded to 8.4. this was solved 
> adding "file:" in the line "then dillo file:%f", however, lynx always worked
> in the console.
> 
> Now if I remove "file:" in the line "..else $viewer %p; fi" I get the error:
> ./Exotismus.html: Permission denied
> 
> and the /tmp/mc-heisspf/* reads:
> if echo "/home/peter/HTMLs/Exotismus.html" | grep ^ftp; then $viewer 
> /home/peter/HTMLs/Exotismus.html; else $viewer Exotismus.html; fi
> 
> Lynx still does not come up on the console and I get the error message: 
> Permission denied.
> 
> It seems in the else statement the $viewer does not get anymore the path
> where the file is based.
> 
> So I added %d/ to "else $viewer %p" in .mc/bindings and I get Permission 
> denied, adding file:%d/%p I get command not found. In the /tmp/mc-heissp/*
> in  the else statement $viewer has then the correct directory path either
> with or  w/o file:.
> 
> How to resolve?
> 
> Thanks & regards
> -- 
> Peter
> 


-- 
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HTML files not open in MC
  2005-05-03  5:39 HTML files not open in MC Peter
@ 2005-05-03 15:19 ` linux-newbie
  0 siblings, 0 replies; 4+ messages in thread
From: linux-newbie @ 2005-05-03 15:19 UTC (permalink / raw)
  To: linux-newbie

unsubscribe linux-newbie
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-03 15:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-03  5:39 HTML files not open in MC Peter
2005-05-03 15:19 ` linux-newbie
  -- strict thread matches above, loose matches on Subject: below --
2005-05-03  2:49 Peter
2005-05-01  5:52 Peter H.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox