access using commands

View: New views
4 Messages — Rating Filter:   Alert me  

access using commands

by Sérgio Gelli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

  Good morning gentlemen:

Using "smb: \ \ WindowsMachine \ C" in Konqueror's address line, I easily access any Windows machine.

After accessing a directory on a Windows machine, how do I access the components of that directory, such as files and folders, using commands in linux within a console?

It can also access these files and folders, that are displayed in Konqueror, in other programs and tools?

This is possible?

Thank you very much.


--------------------------------------------------------------------------------------------------------------
Bom dia senhores:

Usando "smb:\\WindowsMachine\C" na linha de endereços do Konqueror, eu acesso facilmente qualquer máquina windows.

Após acessar um diretório em uma máquina windows, como eu faço para acessar os componentes desse diretório, tais como, arquivos e pastas, usando comandos do linux
dentro de um console?

Seria possível também acessar esses arquivos e pastas, que estão sendo mostradas no Konqueror, em outros programas e ferramentas?

Isto é possível?

Muito obrigado.

Re: access using commands

by Bugzilla from faure@kde.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 10 March 2009, Sergio Gelli wrote:
>
> Good morning gentlemen:
>
> Using "smb: \ \ WindowsMachine \ C" in Konqueror's address line, I
> easily access any Windows machine.
>
> After accessing a directory on a Windows machine, how do I access the
> components of that directory, such as files and folders, using commands
> in linux within a console?

Use smbmount, for a pure command-line solution.

Otherwise, to use KDE's solution from a command line you could use
kde-cp, kde-mv, kde-open, kioclient cat ... on smb:// URLs (but there
is no "ls" equivalent at that level).

> It can also access these files and folders, that are displayed in
> Konqueror, in other programs and tools?

Hmm? Sure, just click on the files in konqueror, all KDE programs can
open smb:// urls.

--
David Faure, faure@..., sponsored by Qt Software @ Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

Re: access using commands

by Luciano Montanaro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Mar 16, 2009 at 1:22 AM, David Faure <faure@...> wrote:

> Otherwise, to use KDE's solution from a command line you could use
> kde-cp, kde-mv, kde-open, kioclient cat ... on smb:// URLs (but there
> is no "ls" equivalent at that level).
>

These are really useful, I didn't know of them. Isn't there some
overlapping, though? It looks like kioclient can do everything kde-cp,
kde-mv etc do.

And since I'm asking, xhouldn't --noninteractive be the default?
When using the commands in a script, or from a command line, for that
matter, I would not expect notifications popping up.




--
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams

Re: access using commands

by Bugzilla from faure@kde.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 16 March 2009, Luciano Montanaro wrote:
> These are really useful, I didn't know of them.

Note that kfmclient had this in KDE3 too (copy and move, not cat).

> Isn't there some
> overlapping, though? It looks like kioclient can do everything kde-cp,
> kde-mv etc do.

That's not overlapping, that's aliasing ;)
kde-cp is an "alias" for kioclient copy, and kde-mv is an alias for kioclient move.
(Technically it's kioclient's code compiled with a special "kde-cp" or "kde-mv"
mode).
This is simply because kde-cp and kde-mv were added later on,
with names easier to find. But kioclient will remain the full-featured
kio operations client (can't remove stuff from it, that would break existing
scripts).

> And since I'm asking, xhouldn't --noninteractive be the default?
> When using the commands in a script, or from a command line, for that
> matter, I would not expect notifications popping up.

Maybe it should have been, maybe not, but I don't think changing
the default behavior (and breaking expectations of people already
using it) would be a good idea.
I guess you're talking about progress notification, but this option also
controls other message boxes... E.g. if a script makes a copy and
the destination already exists, you get the rename/overwrite/cancel
box, which I think is good in scripts that automate some user actions
but can pop up dialogs when needed.
Anyway; both have their use, but I'm against breaking compatibility
by changing the default.

--
David Faure, faure@..., sponsored by Qt Software @ Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).