Re: [Conkeror] Shell commands

2012-04-27 Thread Jeremy Maitin-Shepard
On Fri, Apr 27, 2012 at 09:07, John J. Foerch wrote:

> On Fri, Apr 27, 2012 at 05:53:39PM +0200, Thorsten Jolitz wrote:
> > "John J. Foerch"  writes:
> > >> > But when I do the same thing with a link to a html website and the
> > >> > shellcommand wget, it seems that nothing happens - no error
> > >> > message, but
> > >> > no downloaded html file in ~/ either (wget works on the bash
> prompt).
> > >
> > > I'm sorry, I misspoke.  That command downloads the file to a temporary
> > > directory, not your cwd, and deletes it when the command is finished.
> >
> > Hmm ... maybe a misunderstanding, but how do I use it if it is
> > immediatley deleted?
>
> The temporary file is deleted after the program exits.  This is designed
> for viewers; it's the wrong tool for using an alternative downloader.
>

Just to clarify, this is the behavior of shell-command-on-file (bound to
x).  In particular note that this runs the specified command with the path
to the temporary file as an argument, which would not be a correct
invocation of, say, wget.  shell-command-on-url (bound to X) will just run
the command with a URL as an argument, which would potentially work for
wget.
___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


Re: [Conkeror] Shell commands

2012-04-27 Thread John J. Foerch
On Fri, Apr 27, 2012 at 05:53:39PM +0200, Thorsten Jolitz wrote:
> "John J. Foerch"  writes:
> 
> 
> >> > But when I do the same thing with a link to a html website and the
> >> > shellcommand wget, it seems that nothing happens - no error
> >> > message, but
> >> > no downloaded html file in ~/ either (wget works on the bash prompt). 
> >
> > I'm sorry, I misspoke.  That command downloads the file to a temporary
> > directory, not your cwd, and deletes it when the command is finished.
> 
> Hmm ... maybe a misunderstanding, but how do I use it if it is
> immediatley deleted? 

The temporary file is deleted after the program exits.  This is designed
for viewers; it's the wrong tool for using an alternative downloader.

-- 
John Foerch
___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


Re: [Conkeror] Shell commands

2012-04-27 Thread Thorsten Jolitz
"John J. Foerch"  writes:


>> > But when I do the same thing with a link to a html website and the
>> > shellcommand wget, it seems that nothing happens - no error
>> > message, but
>> > no downloaded html file in ~/ either (wget works on the bash prompt). 
>
> I'm sorry, I misspoke.  That command downloads the file to a temporary
> directory, not your cwd, and deletes it when the command is finished.

Hmm ... maybe a misunderstanding, but how do I use it if it is
immediatley deleted? 

-- 
cheers,
Thorsten

___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


Re: [Conkeror] Shell commands

2012-04-27 Thread John J. Foerch
On Fri, Apr 27, 2012 at 11:01:15AM -0400, John J. Foerch wrote:
> On Fri, Apr 27, 2012 at 02:01:16PM +0200, Thorsten Jolitz wrote:
> > 
> > Hi List, 
> > I have some problems with the shell commands in conkeror.
> > 
> > When pressing x, then selecting a link to a pdf, and accepting the
> > proposed default (in my case evince) everything is fine - the document
> > is opened.
> > 
> > But when I do the same thing with a link to a html website and the
> > shellcommand wget, it seems that nothing happens - no error message, but
> > no downloaded html file in ~/ either (wget works on the bash prompt). 
> 
> It should download to whatever your cwd is, but I recommend running the
> command in a terminal so that you can see its output.

I'm sorry, I misspoke.  That command downloads the file to a temporary
directory, not your cwd, and deletes it when the command is finished.

-- 
John Foerch
___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


Re: [Conkeror] Shell commands

2012-04-27 Thread John J. Foerch
On Fri, Apr 27, 2012 at 02:01:16PM +0200, Thorsten Jolitz wrote:
> 
> Hi List, 
> I have some problems with the shell commands in conkeror.
> 
> When pressing x, then selecting a link to a pdf, and accepting the
> proposed default (in my case evince) everything is fine - the document
> is opened.
> 
> But when I do the same thing with a link to a html website and the
> shellcommand wget, it seems that nothing happens - no error message, but
> no downloaded html file in ~/ either (wget works on the bash prompt). 

It should download to whatever your cwd is, but I recommend running the
command in a terminal so that you can see its output.

> 
> When I use X I'm queried for an url, but I'm not really sure what the
> semantics of this command are. Should the url be a shellscript? 
> 
> I tried several things, but always got error messages. 
> 

It is prompting for an url to run the command on.  To have it prompt for a
link instead, use the sequence 'n X'.

> BTW:
> Is there something like the Emacs 'Messages' buffer in Conkeror, where
> one can look up the messages that popped up in the minibuffer?
> 

No, not yet.

-- 
John Foerch
___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror


[Conkeror] Shell commands

2012-04-27 Thread Thorsten Jolitz

Hi List, 
I have some problems with the shell commands in conkeror.

When pressing x, then selecting a link to a pdf, and accepting the
proposed default (in my case evince) everything is fine - the document
is opened.

But when I do the same thing with a link to a html website and the
shellcommand wget, it seems that nothing happens - no error message, but
no downloaded html file in ~/ either (wget works on the bash prompt). 

When I use X I'm queried for an url, but I'm not really sure what the
semantics of this command are. Should the url be a shellscript? 

I tried several things, but always got error messages. 

BTW:
Is there something like the Emacs 'Messages' buffer in Conkeror, where
one can look up the messages that popped up in the minibuffer?

-- 
cheers,
Thorsten


___
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror