LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2006, 08:51 AM   #1
Mitsuhashi
LQ Newbie
 
Registered: Jul 2003
Distribution: kubuntu dapper (kernel 2.6.15) with XGL
Posts: 16

Rep: Reputation: 0
How to copy smb shared file with konqueror?


Hi!
I have to copy some files from a samba shared directory of a laptop to my local workstation using konqueror as file browser.
To make this I open a konq. window at the addres smb://<my-laptop-name>/<shared-path> and another window with (for example) my home directory.
I select the source files and then copy them to my home but this copy process don't preserve the timestamps!!!

How to make this preserving the correct timestamps?

There's some KDE/Samba configuration to adjust?
There's some way to modify commands used by konqueror to mange files? (this question even for purpose other than the one of this topic)
 
Old 07-23-2006, 12:34 PM   #2
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
As I'm sure you have found out your going to have a really hard time keeping the time stamps. The machine will update all the information becasue you are accessing, and changing the file. I think that if you use the 'cp' command that you will be able to keep the timestamp.
http://www.oreillynet.com/linux/cmd/cmd.csp?path=c/cp
Code:
cp -prf file_I_want where_it_should_go
-p -> perserves the timestamp
-r -> copys a whole directory
-f -> force
 
Old 07-24-2006, 04:51 AM   #3
Mitsuhashi
LQ Newbie
 
Registered: Jul 2003
Distribution: kubuntu dapper (kernel 2.6.15) with XGL
Posts: 16

Original Poster
Rep: Reputation: 0
Ok, I know that using the cp command I can preserve timestaps, but I want to copy that file, that is on a shared samba directory of a laptop, without mount that directory in my filesystem, and I think that cp won't work on samba shared directory not mounted...
 
Old 07-24-2006, 10:38 AM   #4
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
oh not mounted sorry. ok so there is the smbsh shell, however you need to have complied samba with the
Code:
--with-smbwrappers
option. With the shell you are able to use a copy command but you'll have to look at the flags to see how to preserve the timestamp.
The other way is to make a perl(and or python program for that matter) which will do it useing a CPAN samba module.

Other than that I cannot think of any other way. Sorry
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
smb mount folders disappear on mount & konqueror smb fails: network unreachable tisource Linux - Networking 1 10-17-2007 12:30 AM
Make KDE/Konqueror preserve time, ownership on file copy tisource Linux - Software 2 06-27-2006 01:23 PM
SMB file copy and internet download failing - suse 10.0 owdsa SUSE / openSUSE 0 03-08-2006 02:30 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration