Alpine with GNU screen and url-viewers

This is a discussion on Alpine with GNU screen and url-viewers within the Pine forums in Other Technologies category; I'm running Ubuntu, and have installed Alpine from the package manager, so I have alpine_1.0+dfsg-3_i386 If I open Alpine from a login shell, then choose to view a URL in my defined url-viewer, elinks opens as expected with the desired page displayed. The problem is that I prefer to use GNU screen to allow multiple virtual terminals in a single SSH session. When I oppen Alpine from inside screen, everything seems to work correctly (including color and xterm-mouse), except for the url-viewer. The screen flashes "[VIEWER command completed]" and the following is written to standard error: "Can't exec /usr/bin/elinks -force-html ...

Go Back   Application Development Forum > Other Technologies > Pine

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-09-2008, 07:50 AM
Echecero
Guest
 
Default Alpine with GNU screen and url-viewers


I'm running Ubuntu, and have installed Alpine from the package
manager, so I have alpine_1.0+dfsg-3_i386

If I open Alpine from a login shell, then choose to view a URL in my
defined url-viewer, elinks opens as expected with the desired page
displayed.

The problem is that I prefer to use GNU screen to allow multiple
virtual terminals in a single SSH session. When I oppen Alpine from
inside screen, everything seems to work correctly (including color and
xterm-mouse), except for the url-viewer. The screen flashes "[VIEWER
command completed]" and the following is written to standard error:

"Can't exec /usr/bin/elinks -force-html http://www.google.com
Reason: No such file or directory"

This is the same command being used by Alpine outside of screen.

I have tried replacing the browser with a bash script that simply logs
any arguments that it receives in a text file. It executes as expected
when set as the url-viewer with Alpine running outside of screen, but
doesn't execute when Alpine is running inside screen.

I don't understand what the difference could be. There are no relative
paths, and other apps (such as raggle) are able to spawn new elinks
instances from inside a screen virtual terminal.

Any ideas?

Reply With Quote
  #2  
Old 07-09-2008, 11:29 AM
Eduardo Chappa
Guest
 
Default Re: Alpine with GNU screen and url-viewers

On Wed, 9 Jul 2008, Echecero wrote:

The problem is that I prefer to use GNU screen to allow multiple
virtual terminals in a single SSH session. When I oppen Alpine from
inside screen, everything seems to work correctly (including color and
xterm-mouse), except for the url-viewer. The screen flashes "[VIEWER
command completed]" and the following is written to standard error:

"Can't exec /usr/bin/elinks -force-html http://www.google.com Reason:
No such file or directory"

The "-force-html" option probably takes the input from a file, that is
something like "index.html". Try "/usr/bin/elinks _URL_" as your command
for the url-viewer instead.

--
Eduardo
http://staff.washington.edu/chappa/alpine/
Reply With Quote
  #3  
Old 07-10-2008, 04:11 AM
Echecero
Guest
 
Default Re: Alpine with GNU screen and url-viewers

On Jul 9, 11:29 am, Eduardo Chappa <cha...@u.washington.edu> wrote:
> On Wed, 9 Jul 2008, Echecero wrote:
>
> The problem is that I prefer to use GNU screen to allow multiple
> virtual terminals in a single SSH session. When I oppen Alpine from
> inside screen, everything seems to work correctly (including color and
> xterm-mouse), except for the url-viewer. The screen flashes "[VIEWER
> command completed]" and the following is written to standard error:
>
> "Can't exec /usr/bin/elinks -force-htmlhttp://www.google.comReason:
> No such file or directory"
>
> The "-force-html" option probably takes the input from a file, that is
> something like "index.html". Try "/usr/bin/elinks _URL_" as your command
> for the url-viewer instead.
>
> --
> Eduardohttp://staff.washington.edu/chappa/alpine/


Using the following all have the same result:
/usr/bin/elinks _URL_
/usr/bin/lynx _URL_
/usr/bin/elinks
/usr/bin/lynx

If they are used outside of a screen VT, the browser takes over and
loads. If used from inside a screen VT, the "Can't exec....No such
file or directory"


Reply With Quote
  #4  
Old 07-10-2008, 01:36 PM
Eduardo Chappa
Guest
 
Default Re: Alpine with GNU screen and url-viewers

On Thu, 10 Jul 2008, Echecero wrote:

Using the following all have the same result:
/usr/bin/elinks _URL_
/usr/bin/lynx _URL_
/usr/bin/elinks
/usr/bin/lynx

If they are used outside of a screen VT, the browser takes over and
loads. If used from inside a screen VT, the "Can't exec....No such file
or directory"

When you are about to open the browser, you press RETURN, say and you get
a menu in the bottom of the screen. One of the items in the menu is "A
editApp". What does it say if you press "A"?

Also, what is the value of your $SHELL variable?

--
Eduardo
http://staff.washington.edu/chappa/alpine/
Reply With Quote
  #5  
Old 07-10-2008, 01:44 PM
Echecero
Guest
 
Default Re: Alpine with GNU screen and url-viewers

Thank you. It's always something obvious, isn't it?

For some reason, my SHELL was set to "bash" (no path) inside screen. I
just changed it, and now Alpine launches my viewer as expected.



On Jul 10, 1:36*pm, Eduardo Chappa <cha...@u.washington.edu> wrote:
> On Thu, 10 Jul 2008, Echecero wrote:
>
> Using the following all have the same result:
> */usr/bin/elinks _URL_
> */usr/bin/lynx _URL_
> */usr/bin/elinks
> */usr/bin/lynx
>
> If they are used outside of a screen VT, the browser takes over and
> loads. If used from inside a screen VT, the "Can't exec....No such file
> or directory"
>
> When you are about to open the browser, you press RETURN, say and you get
> a menu in the bottom of the screen. One of the items in the menu is "A *
> editApp". What does it say if you press "A"?
>
> Also, what is the value of your $SHELL variable?
>
> --
> Eduardohttp://staff.washington.edu/chappa/alpine/


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:52 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.