Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

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

  1. #11
    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?

    Sorry, it's d$, not $d

    EDIT: And you may need to escape the $ with \ like this

    /d\$/
    Last edited by patchwork; March 23rd, 2010 at 08:06 PM. Reason: Added escape

  2. #12
    Join Date
    Dec 2009
    Beans
    26

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

    Thanks but not yet. Same error.


    Code:
    ftpaccount@administrator-ubuntu:/$ mv /var/lib/mysql/RSecuredData.csv ~/.gvfs/d\$/RSecuredData.csv
    mv: cannot move `/var/lib/mysql/RSecuredData.csv' to `/home/ftpaccount/.gvfs/d$/RSecuredData.csv': No such file or directory

  3. #13
    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?

    Arghhh.

    I feel terrible....I told you to put the filename in the destination. For the cp command you do, but not for the mv command.

    /home/ftpaccount/.gvfs/d\$/

    EDIT: You can specify the name, but you would need the -T option
    without the -T option and the filename, it will keep the same name and move it to the target directory

  4. #14
    Join Date
    Dec 2009
    Beans
    26

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

    Hey man it's no problem. I appreciate you trying to help.

    Well this time I at least got a different error

    Code:
    ftpaccount@administrator-ubuntu:/$ mv /var/lib/mysql/RSecuredData.csv /home/ftpaccount/.gvfs/d\$/mv: cannot create regular file `/home/ftpaccount/.gvfs/d$/': Is a directory

  5. #15
    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?

    EDIT: Please ensure you have this file backed-up before trying this...though it shouldn't cause damage, it's always safer to back-up first


    Code:
     
    mv -t /home/ftpaccount/.gvfs/d\$/ /var/lib/mysql/RSecuredData.csv
    Or
    Code:
     mv -T /var/lib/mysql/RSecuredData.csv /home/ftpaccount/.gvfs/d\$/
    The first line will attempt to move the file into the specified directory (listed first in this instance).
    The second line will attempt to move the file into the directory, treating it as a file

    from
    Code:
    man mv

  6. #16
    Join Date
    Dec 2009
    Beans
    26

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

    Well thanks again for trying. It would seem that it's hopeless :\
    I tried another file this time just in case it had something to do with that. Same results though...


    Code:
    ftpaccount@administrator-ubuntu:/$ mv -t /home/ftpaccount/.gvfs/d\$/ /var/lib/mysql/result.txt
    mv: accessing `/home/ftpaccount/.gvfs/d$/': No such file or directory
    Code:
    ftpaccount@administrator-ubuntu:/$ mv -T /var/lib/mysql/result.txt /home/ftpaccount/.gvfs/d\$/
    mv: cannot create regular file `/home/ftpaccount/.gvfs/d$/': Is a directory

  7. #17
    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?

    Are you able to cd into ~/.gvfs/d\$ ?

  8. #18
    Join Date
    Dec 2009
    Beans
    26

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

    Does not appear that I can...

    Code:
    ftpaccount@administrator-ubuntu:~/.gvfs$ cd ~/.gvfs/d\$
    bash: cd: /home/ftpaccount/.gvfs/d$: No such file or directory
    
    ftpaccount@administrator-ubuntu:~/.gvfs$ cd ~/.gvfs && ls
    d$ on corpserver  profiles$ on corpserver
    Noticed I used the ls command to list the shared folders though. I can also CD to
    Code:
    ftpaccount@administrator-ubuntu:~/.gvfs$ cd ~/.gvfs
    ftpaccount@administrator-ubuntu:~/.gvfs$

  9. #19
    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?

    AHHH.

    the directory name is 'd$ on corpserver'

    EDIT: Ever have one of those days...

  10. #20
    Join Date
    Dec 2009
    Beans
    26

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

    Well great! I think we have that part but now I seem to be getting a permissions error.

    Code:
    ftpaccount@administrator-ubuntu:~$ mv -t /home/ftpaccount/.gvfs/'d$ on corpserver'/ /var/lib/mysql/result.txt
    mv: preserving times for `/home/ftpaccount/.gvfs/d$ on corpserver/result.txt': Operation not supported
    mv: failed to preserve ownership for `/home/ftpaccount/.gvfs/d$ on corpserver/result.txt': Function not implemented
    mv: setting permissions for `/home/ftpaccount/.gvfs/d$ on corpserver/result.txt': Operation not supported
    I am logged in as the owner of the mysql folder and file so it must be with the shared folder? I was able to create a new file to the share folder using the GUI so I must have access to it...

Page 2 of 3 FirstFirst 123 LastLast

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
  •