Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: Command line help. Move/copy a file to a shared windows folder?

  1. #21
    Join Date
    Dec 2009
    Beans
    540
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Command line help. Move/copy a file to a shared windows folder?

    Can you change the mv -t to cp -tp

    This will copy the file while preserving the timestamp and ownership. If this works, you will need to go back and rm the original file (since only a copy is being made)

  2. #22
    Join Date
    Dec 2009
    Beans
    26

    Talking Re: Command line help. Move/copy a file to a shared windows folder?

    Well guess what? It seems to be working even with that error!

    I checked the directory and the file was copied over. Awesome! I am going to create a script now to mount the drive on startup and then automate this process. Thanks a bunch patchwork!

  3. #23
    Join Date
    Dec 2009
    Beans
    540
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Command line help. Move/copy a file to a shared windows folder?

    The file may have been moved, but the timestamps and ownerships weren't preserved. If this causes a problem, you may need to look into the cp -tp command instead (I don't know how to preserve ownership etc. with the mv command)

    Glad it's working for you though.

  4. #24
    Join Date
    Dec 2009
    Beans
    26

    Re: Command line help. Move/copy a file to a shared windows folder?

    Thanks again. I decided to co with the copy command and just delete the file after it is copied. Works great! Thank you again.

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •