Copying files by using SCP in a Script

HI ,
I want to copy files from one of my server to other by using scp.
I am using a script which will generate a tar file and I want it to paste it automatically to my other server using SCP.
But how can I can make this automation in a Script.
I dont want it to ask for the password while copying to the server.
Can anybody guide me...
Thanks & Regards
Suseendran. A

I did as you described -- actually I found another web site (http://www.linuxproblem.org/art_9.html), which tells exactly the same thing but has more details. What I did on our site is exactly as that page outlines, and the files were created and saved in the .ssh directory on both the local and remote machines.
But I am still prompted for password when I use ssh, sftp, or scp:
$ ssh [email protected]
[email protected]'s password:
What could be wrong or is anything overlooked or missing?
Thanks a lot for helping!
Jason

Similar Messages

  • Re:Which port does the copy file function use?

    Hi ,
    How does the Copy File Function work?
    Which port is used?
    My problem is … When user copies the large request output file, the network is slow. So I want to manage bandwidth such as using Qos .
    Regards .

    Hi hussein ,
    Please find the details
    1)Please post the details of the application release, database version and OS .
    App Release: 11.5.10.2
    DB Version: 10.2.0.4
    IBM AIX on POWER Systems (32-bit)
    2)How does the Copy File Function work?
    What copy file function you are referring to? Please post the navigation path.
    1. Submit Request
    2. View Output File
    3. Tools --> Copy File
    3)Which port is used?
    My problem is … When user copies the large request output file, the network is slow. So I want to manage bandwidth such as using Qos .
    How are you planning to manage the bandwidth of specific port?
    If I know which port is used, I can manage it (give it to low priority)
    Regards .

  • Sharepoint 2010 question : Error while deploying wsp file in using managment shell (power script)

    When I tried to deploy the wsp's using managment shell (power shell scripts) everything looks good.
    When I go and take a look the "manage farm solutions" thru sharepoint central admin, I see the deployment failed in two servers.
    Error is
    Could not load file or assembly 'c:\windows\Temp\solution-cxxxxxxxxxxxxxx\xxx.xxx.dll" or one of its dependencies. Access is denied.
    Can you please let me know what could be the reason.
    Note : I have two app servers and two web servers setup. The deployment is sucessful in 2 apps servers . but 2 web servers are giving error.
    Thanks
    Pichaimani

    Hi,
    According to your post, my understanding is that you wanted to failed to deploy the wsp's using managment shell.
    You need to make sure that the dll is registered in the GAC.
    Go to %Windows%\assembly. If the dll isn't there , you need to install it to the GAC on the server. Simply drag it into that folder in Windows Explorer, and it should install itself.
    Here is a similar thread for your reference:
    http://stackoverflow.com/questions/1265505/sharepoint-could-not-load-file-or-assembly-the-system-cannot-find-the-file-sp
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Ls -l does not show files unless used in a shell script

    Our backup script is generating files called BACKUP.01.04.05 (the 01.04.05 is a generated date). Well the files do not show up when using ls-l at the command line, except for the ones generated in 2000 (e.g. BACKUP.00.01.01). But if I put echo|ls -l in a script then the files do show up in the listing. We are running solaris 2.7. Any ideas? Thanks!

    Hi there,
    The behavior you described sure does not seem to make much sense.
    Is it possible if the 'ls' in your command line is aliased to
    something which might explain the behavior?
    Also, echo|ls -l should not make a difference, I don't think ls takes
    any input from the pipe. I assume that the 'ls' you run from the
    shell script is different than the one you run from your command
    line. The 'which ls' command will show if your ls is aliased.
    Hope this helps.
    Hae
    Sun Technical Developer Support

  • Yosemite 10.10.1 will not allow me to copy multiple files to a NAS -error file in use, but other OS OK.

    I am running Mac OS 10.10.1 on a Mac Mini with 16G.
    I have a Buffalo NAS and wanted to copy files from one folder on the NAS  to another on the NAS.
    Under Yosemite I can only copy them one at a time. If I try to copy more than one I get an error message that the file is in use.
    Under SNS 10.6.3 (running under Parallels) I can easily copy a large number of files.
    Again under 10.10.1 I get the same problem when copying from my desktop to the NAS.
    The files are definitely not in use elsewhere and in any case if they were I wouldn't be able to copy one at a time.
    When I try to copy multiple files the OS creates greyed out icons of all the files to copy and then aborts when it actually tries to copy the first file.
    Any clues please, my current work around is to compress all the files to move, move the archive, expand the archive. This is not going to work for very large numbers of files - l'll be at it all day.
    Tony

    I have been unable to drag and drop large files, even onto the Desktop, let alone onto my NAS - I get the dragged files freezing in the middle of the screen or I get the 'unable to copy / file in use' error.
    Talking to Apple Support, they had me set up a new User, and then within that new account, the trouble went away. This pointed to the StartUp items being run in the original troublesome account,
    I have deleted all of my 3rd Party programs and then installed them one by one until the problem came back, and in my case (Macbook Air 5,2 running 10.10.3 Yosemite) I found it was DropBox causing the conflict. I have DropBox running in the Menu Bar (top of screen) and disabling sync (bottom left corner) stopped the file copy problem. Try disabling DropBox sync is file copying is failing?

  • Yosemite error copy file

    scusate per la traduzione ....ho un problema nel copiare file dall´ imac a un hard disc ogni volta che faccio un copia file mi appare a fine copia un messaggio di errore : "non posso completare l'operazione perché l'elemento X è in uso"
    sorry for the tranlations.... i have a problem with copying files to imac to a hdd every time i do i get a copy of the at the end of a copy of the error message : " I can not complete the operation because the element X is in use "

    I have been unable to drag and drop large files, even onto the Desktop, let alone onto my NAS - I get the dragged files freezing in the middle of the screen or I get the 'unable to copy / file in use' error.
    Talking to Apple Support, they had me set up a new User, and then within that new account, the trouble went away. This pointed to the StartUp items being run in the original troublesome account,
    I have deleted all of my 3rd Party programs and then installed them one by one until the problem came back, and in my case (Macbook Air 5,2 running 10.10.3 Yosemite) I found it was DropBox causing the conflict. I have DropBox running in the Menu Bar (top of screen) and disabling sync (bottom left corner) stopped the file copy problem. Try disabling DropBox sync is file copying is failing?

  • Very Slow Copying Files

    I have My External Hard Drive connected to my air port extreme base station. I have the latest firmware update. While copying files or using time machine to back up my computer, the speed is extremely slow max speed is 2.2 mpbs but bounces from 200kbps to 2.2 mbps constantly. I am with in 5 feet of the base station everything else works fine including internet speed.

    i have the same problem over here. Been looking around the internet, tried different configurations, nothing helps. 3min for 15M.
    just wondering: is it possible my file is transmited over the internet and back, instead of directly over the local network to my Airport disk or other computer?
    Not sure if it has anything to do with it but when I look at my filesharing config, it says: Other users can access shared folders on this computer, and administrators all volumes, at afp://xx-xx-xxx-xxx.access.telenet.be/ or "yyy". where x is my IP and yyy is my bonjour-name.
    why is my provider in that afp-path?
    anyone any idee?
    Thx

  • Since upgrading to OSX 10.6.8, I am unable to use scp on a remote machine to copy files into my iMac.

    Any suggestions?
    However, I can use scp to copy files out from my iMac (10.6.8) .
    I can ssh into the iMac OK.
    I created a .profile in my iMac home directory with the single line "export TERM=xterm-color".
    This makes a difference to how scp behaves when attempting to copy into the iMac, but it still fails.
    Thanks in advance for any help.  Peter R
    Here is the scp debug output (on the remote machine that I'm copying a file from, to the iMac):
    ===
    Executing: program /usr/bin/ssh host molika.ucsd.edu, user prowat, command scp -v -t Desktop/FromPelican/Outs201201.pdf
    Sun_SSH_1.1.3, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Rhosts Authentication disabled, originating port will not be trusted.
    debug1: ssh_connect: needpriv 0
    debug1: Connecting to molika.ucsd.edu [137.110.243.133] port 22.
    debug1: Connection established.
    debug1: identity file /home/nona/.ssh/identity type -1
    debug1: identity file /home/nona/.ssh/id_rsa type -1
    debug1: identity file /home/nona/.ssh/id_dsa type -1
    debug1: Remote protocol version 1.99, remote software version OpenSSH_5.2
    debug1: match: OpenSSH_5.2 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-Sun_SSH_1.1.3
    debug1: use_engine is 'yes'
    debug1: pkcs11 engine initialized, now setting it as default for RSA, DSA, and symmetric ciphers
    debug1: pkcs11 engine initialization complete
    debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials were supplied, or the credentials were unavailable or inaccessible
    Unknown code 0
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5 none
    debug1: kex: client->server aes128-ctr hmac-md5 none
    debug1: Peer sent proposed langtags, ctos:
    debug1: Peer sent proposed langtags, stoc:
    debug1: We proposed langtags, ctos: i-default
    debug1: We proposed langtags, stoc: i-default
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
    debug1: dh_gen_key: priv key bits set: 124/256
    debug1: bits set: 1007/2048
    debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
    debug1: Host 'molika.ucsd.edu' is known and matches the RSA host key.
    debug1: Found key in /home/nona/.ssh/known_hosts:1
    debug1: bits set: 1043/2048
    debug1: ssh_rsa_verify: signature correct
    debug1: newkeys: mode 1
    debug1: set_newkeys: setting new keys for 'out' mode
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug1: newkeys: mode 0
    debug1: set_newkeys: setting new keys for 'in' mode
    debug1: SSH2_MSG_NEWKEYS received
    debug1: done: ssh_kex2.
    debug1: send SSH2_MSG_SERVICE_REQUEST
    debug1: got SSH2_MSG_SERVICE_ACCEPT
    debug1: Authentications that can continue: publickey,keyboard-interactive
    debug1: Next authentication method: publickey
    debug1: Trying private key: /home/nona/.ssh/identity
    debug1: Trying private key: /home/nona/.ssh/id_rsa
    debug1: Trying private key: /home/nona/.ssh/id_dsa
    debug1: Next authentication method: keyboard-interactive
    *** Password requested & supplied
    debug1: Authentication succeeded (keyboard-interactive)
    debug1: fd 5 setting O_NONBLOCK
    debug1: fd 6 setting O_NONBLOCK
    debug1: fd 7 setting O_NONBLOCK
    debug1: channel 0: new [client-session]
    debug1: send channel open 0
    debug1: Entering interactive session.
    debug1: ssh_session2_setup: id 0
    debug1: channel request 0: env
    debug1: Sending command: scp -v -t Desktop/FromPelican/Outs201201.pdf
    debug1: channel request 0: exec
    debug1: channel 0: open confirm rwindow 0 rmax 32768
    ~
    debug1: channel 0: read<=0 rfd 5 len 0
    debug1: channel 0: read failed
    debug1: channel 0: close_read
    debug1: channel 0: input open -> drain
    debug1: channel 0: ibuf empty
    debug1: channel 0: send eof
    debug1: channel 0: input drain -> closed
    debug1: channel 0: write failed
    debug1: channel 0: close_write
    debug1: channel 0: output open -> closed
    debug1: channel 0: rcvd eof
    debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
    debug1: channel 0: rcvd close
    debug1: channel 0: almost dead
    debug1: channel 0: gc: notify user
    debug1: channel 0: gc: user detached
    debug1: channel 0: send close
    debug1: channel 0: is dead
    debug1: channel 0: garbage collecting
    debug1: channel_free: channel 0: client-session, nchannels 1
    debug1: fd 0 clearing O_NONBLOCK
    debug1: fd 1 clearing O_NONBLOCK
    debug1: fd 2 clearing O_NONBLOCK
    debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.9 seconds
    debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
    debug1: Exit status 0

    On looking at the secure.log on the iMac with OSX10.6.8, I see these entries at each attempt to scp into the iMac:
    Dec 29 11:06:20 molika sshd[7248]: in pam_sm_authenticate(): Failed to determine Kerberos principal name.
    Dec 29 11:06:26 molika sshd[7246]: Accepted keyboard-interactive/pam for prowat from 137.110.243.132 port 35571 ssh2
    Dec 29 11:06:26 molika com.apple.SecurityServer[26]: Session 0x236a14 created
    Dec 29 11:06:26 molika com.apple.SecurityServer[26]: Session 0x236a14 attributes 0x20
    Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Session 0x236a14 dead
    Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Killing auth hosts
    Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Session 0x236a14 destroyed
    I don't know what to make of this.
    Peter R

  • Problem using scp to copy files between Macs

    I've been trying to copy a folder hierarchy containing a slew of icon files between two of my Macs. Using scp has proven to be futile.
    The command line I'm using is
    scp -r -p -C -E [email protected]:/Icons /Icons
    After a number of files are copied I receive the following error message on a file and all thereafter:
    ./icons/Agrapha-Christmas/Boxes: Too many open files
    More specifically the "too many open files" message.
    I am using Tiger 10.4.7
    What am I doing wrong here?

    One more piece of information. I ran scp with the verbose switch and have attached a portion of the feedback showing successfull copies followed by the error which occurs on all subsequent files:
    Entering directory: D0777 0 Adobe CS Icons
    Sending file modes: C0644 6148 .DS_Store
    .DS_Store 100% 6148 6.0KB/s 00:00
    copyfile(/icons/Adobe CS Icons/..DSStore, /tmp/scp.md.DJyatJ, PACK)
    Sending file modes: C0400 82 ..DSStore
    ..DSStore 100% 82 0.1KB/s 00:00
    copyfile(/icons/icons/Adobe CS Icons/..DSStore.N8P, /icons/icons/Adobe CS Icons/.DS_Store, UNPACK)
    Sending file modes: C0777 68489 Adobe CS Box.icns
    Adobe CS Box.icns 100% 67KB 66.9KB/s 00:01
    copyfile(/icons/Adobe CS Icons/._Adobe CS Box.icns, /tmp/scp.md.00r28e, PACK)
    Sending file modes: C0400 70745 ._Adobe CS Box.icns
    ._Adobe CS Box.icns 100% 69KB 69.1KB/s 00:00
    copyfile(/icons/icons/Adobe CS Icons/._Adobe CS Box.icns.K7Q, /icons/icons/Adobe CS Icons/Adobe CS Box.icns, UNPACK)
    Sending file modes: C0777 56691 Adobe CS Folder 2.icns
    Adobe CS Folder 2.icns 100% 55KB 55.4KB/s 00:00
    copyfile(/icons/Adobe CS Icons/._Adobe CS Folder 2.icns, /tmp/scp.md.EgDDb2, PACK)
    Sending file modes: C0400 58947 ._Adobe CS Folder 2.icns
    ._Adobe CS Folder 2.icns 100% 58KB 57.6KB/s 00:00
    copyfile(/icons/icons/Adobe CS Icons/._Adobe CS Folder 2.icns.hrC, /icons/icons/Adobe CS Icons/Adobe CS Folder 2.icns, UNPACK)
    Sending file modes: C0777 57330 Adobe CS Folder 3.icns
    Adobe CS Folder 3.icns 100% 56KB 56.0KB/s 00:01
    copyfile(/icons/Adobe CS Icons/._Adobe CS Folder 3.icns, /tmp/scp.md.rDiEBy, PACK)
    Sending file modes: C0400 59586 ._Adobe CS Folder 3.icns
    ._Adobe CS Folder 3.icns 100% 58KB 58.2KB/s 00:00
    copyfile(/icons/icons/Adobe CS Icons/._Adobe CS Folder 3.icns.5nC, /icons/icons/Adobe CS Icons/Adobe CS Folder 3.icns, UNPACK)
    Sending file modes: C0777 56289 Adobe CS Folder.icns
    Adobe CS Folder.icns 100% 55KB 55.0KB/s 00:00
    copyfile(/icons/Adobe CS Icons/._Adobe CS Folder.icns, /tmp/scp.md.CVrek6, PACK)
    Sending file modes: C0400 58545 ._Adobe CS Folder.icns
    ._Adobe CS Folder.icns 100% 57KB 57.2KB/s 00:00
    copyfile(/icons/icons/Adobe CS Icons/._Adobe CS Folder.icns.JMp, /icons/icons/Adobe CS Icons/Adobe CS Folder.icns, UNPACK)
    Sending file modes: C0777 54831 Adobe CS Logo.icns
    Adobe CS Logo.icns 100% 54KB 53.6KB/s 00:00
    copyfile(/icons/Adobe CS Icons/._Adobe CS Logo.icns, /tmp/scp.md.keUSYq, PACK)
    Sending file modes: C0400 57087 ._Adobe CS Logo.icns
    ._Adobe CS Logo.icns 100% 56KB 55.8KB/s 00:00
    copyfile(/icons/icons/Adobe CS Icons/._Adobe CS Logo.icns.M39, /icons/icons/Adobe CS Icons/Adobe CS Logo.icns, UNPACK)
    Entering directory: D0777 0 Agrapha-Christmas
    Sending file modes: C0644 12292 .DS_Store
    .DS_Store 100% 12KB 12.0KB/s 00:00
    copyfile(/icons/Agrapha-Christmas/..DSStore, /tmp/scp.md.1s6tDJ, PACK)
    Sending file modes: C0400 82 ..DSStore
    ..DSStore 100% 82 0.1KB/s 00:00
    copyfile(/icons/icons/Agrapha-Christmas/..DSStore.Jmw, /icons/icons/Agrapha-Christmas/.DS_Store, UNPACK)
    Sending file modes: C0777 0 Angel
    Angel 100% 0 0.0KB/s 00:00
    copyfile(/icons/Agrapha-Christmas/._Angel, /tmp/scp.md.hueGHQ, PACK)
    Sending file modes: C0400 44820 ._Angel
    ._Angel 100% 44KB 43.8KB/s 00:00
    copyfile(/icons/icons/Agrapha-Christmas/._Angel.ZDF, /icons/icons/Agrapha-Christmas/Angel, UNPACK)
    Sending file modes: C0777 0 Basket
    Basket 100% 0 0.0KB/s 00:00
    copyfile(/icons/Agrapha-Christmas/._Basket, /tmp/scp.md.8NWfFT, PACK)
    Sending file modes: C0400 49608 ._Basket
    ._Basket 100% 48KB 48.5KB/s 00:00
    copyfile(/icons/icons/Agrapha-Christmas/._Basket.eIY, /icons/icons/Agrapha-Christmas/Basket, UNPACK)
    Sending file modes: C0777 0 Boxes
    Boxes 100% 0 0.0KB/s 00:00
    copyfile(/icons/Agrapha-Christmas/._Boxes, /tmp/scp.md.oWFB8k, PACK)
    Sending file modes: C0400 46314 ._Boxes
    ._Boxes 100% 45KB 45.2KB/s 00:00
    copyfile(/icons/icons/Agrapha-Christmas/._Boxes.GGu, /icons/icons/Agrapha-Christmas/Boxes, UNPACK)
    Sending file modes: C0777 0 Broach
    /icons/icons/Agrapha-Christmas/Broach: Too many open files
    Sending file modes: C0777 0 Candy Cane
    /icons/icons/Agrapha-Christmas/Candy Cane: Too many open files
    Starting with the Broach file, all subsequent files display the error "too many open files".

  • Cannot copy file, file is in use

    Macbook pro 13 mid 2009 with Yosemite fresh install. (i have the same problem with the old MacOSX).
    When i try to copy a file, or a bunch of files, to the wdtvlivehub i have the message error "cannot copy file, the file is in use".
    I try the following:
    - in the wdtvlivehub activated the DNLA, WINDOWS and Itunes Server (and the linux).
    - try both via wifi and ethernet
    - repair permission on disk
    - deactivate the show miniatures on the mac and on the wdtvlivehub
    - drag & drop the file and cut e copy via keyboard or with the right click of the pad or mouse
    - connect the wdtvlivehub via SMB, CIFS
    - Try with AFP but i get a error message
    - with an app i search for a program that block the file but it didn't find anything
    -Basically i try everything suggest in this board and over the web but nothing resolve the problem.
    The file sometimes been copied but i have to try a billion times....not so comfort in this.
    What i have to do?
    P.S. Sorry for my bad english.

    Hi,
    We often see this file in use when the file has not been closed. Is it just a regular file that was opened and how did you open it? I use AppleScript to close it if it was opened with AppleScript.
    Edited: try this: Run Script Editor. Enter:
    set f to choose file -- select the file
    close access f
    run it in Script Editor.
    gl,
    kel

  • Logon Scripts for copying files in Windows 7

    Issues using Logon scripts to copy files in windows 7.  Its default is to append the file rather than copy and replace, which is what XP did.  How can I achieve the same results using
    logon scripts in W7 to copy any files to specified folders and replacing old files.  The reason for this is that we use a software that performs offsite/onsite updates and the only way all the users can have the correct version/tables is to either manually
    update each user in a 90+ user environment or use a logon script to perform the coping of the updates.  Unfortunately the software support won’t create a (while logging in to software) patch for this.  So we have to force it during the user logon.

    Hi Novice,
    It should depend on your script content. it's recommended you ask in the official scripting guys forum for professional help:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Karen Hu
    TechNet Community Support

  • Windows Scripting to copy files

    Hi there,
    New to Windows scripting. 
    I have tried to create a simple script to copy file but failed. Most probably the syntax is wrong. Pls help. thanks.
    I give you my code below:
    @ECHO OFF
    SETLOCAL
    REM SET INDIR="\\sge-fs01\enablers_development\ptc\OUTGOING"
    SET SLIFTCMD="C:\Program Files\PrivyLink\SLIFT-Ez Classic\1.4\SLIFTC.exe"
    SET PFX="C:\PrivyLink\KeyPeer\111111.pfx"
    SET PFXPWD="pass12345"
    SET CER="C:\PrivyLink\KeyPeer\sgesftpuser.cer"
    SET PATTERN="*.IN"
    SET DSTDIR="C:\SFTP\OUTBOUND"
    SET BKDIR="C:\SFTP\BACKUP"
    SET SENDDIR="C:\SFTP\SENDTO"
    SET INDIR="C:\SFTP\PTC\OUTGOING"
    REM ####### MAIN CALL #########
    CALL:MainScript
    GOTO :EOF
    REM ####### Check Files in PTC OUTGOING #########
    :MainScript
    SETLOCAL
    @ECHO OFF
    PUSHD %INDIR%
    IF EXIST "C:\SFTP\PTC\OUTGOING\*.IN"
    COPY "C:\SFTP\PTC\OUTGOING\*.IN" %DSTDIR%
    ELSE 
    echo "There are no files today - %date:~-4,4%%date:~-7,2%%date:~-10,2%" >> C:\SFTP\PTC.log
    pushd %~dp0
    start "" cmd /c cscript SMTP.vbs
    POPD
    ENDLOCAL
    GOTO :EOF
    REM ####  END ########

    I tried myself and it works now. 
    EXISTS can use wildcard (no problem with that). Just that my brackets were not in right position.
    They should be like this:
    IF EXIST "C:\SFTP\PTC\OUTGOING\*.IN" (   
                                    COPY %INDIR%"\*.IN" %DSTDIR%
                                    REM COPY "C:\SFTP\PTC\OUTGOING\*.IN" %DSTDIR%
                                    REM CALL :ENCRYPT
                    ) ELSE (
                                    echo "There are no files today - %date:~-4,4%%date:~-7,2%%date:~-10,2%" >> C:\SFTP\PTC.log
                                    pushd %~dp0
                                    start "" cmd /c cscript SMTP.vbs

  • Can't copy file to network drive as "The operation can't be completed because the [Filename] is in use

    Following upgrade to Yosemite I now can't copy files from iMac to my network HDD in external media center. I have iMac connected by wi-fi to airport extreme and media center connected to airport extreme by cable. I can see the HDD as a network drive on my iMac and can initiate the copy but right when copy process is finished I see "The operation can’t be completed because the [Filename] is in use". I am trying to copy different media files downloaded from internet which are not used by any program and stored on my hard drive. I actually can copy small files of 1mb and it works but anything above 20mb is halted. I can also move/copy/delete the file on iMac. Cant understand the nature of the problem. I tried to format external HDD as EXT2/EXT3/NTFS but same outcome.
    OS X Yosemite 10.10.3 | iMac late 2009 | Apple Airport Extreme | Dune HD Base 3D mediacenter

    Have you tried a restart or logging out/in?
    Some more ideas.
    Re: The operation can’t be completed because the item “ " is in use.

  • File in use error - copying from a faulty external hard drive

    Hi,
    I have a 750GB Western Digital external hard drive, which contains two partitions - (1) HDBACKUP - a Time Machine backup of my laptop drive, and (2) MEDIA - pictures including an Aperture library, and videos.
    When I plug the drive in, only the MEDIA partition mounts. And I get an error saying Disk Utility cannot repair the drive and to backup the files as soon as I can, and reformat the drive.
    When I try to copy the files onto another drive using Finder, it copies part of the file and then gives me a "File in use" error and stops. I tried copying via Terminal and its the same - this time I get a "Resource busy" error.
    There are no other apps accessing the files. And this happens for every file on the drive.
    So how do I go about copying the files off the drive?
    I tried using DiskWarrior but it was stuck on Step 1 - Searching for Volume Information, after 3 hours.
    I really need to get the Aperture Library off the drive. Any ideas on how I can copy it across?
    Thanks

    This did not work. I still get an error trying to repair with Disk Utility.
    It gets to
    Starting repair tool:
    Checking file system
    Checking Journaled HFS Plus volume.
    Checking extents overflow file.
    Checking catalog file.
    Checking multi-linked files.
    Checking catalog hierarchy.
    Checking extended attributes file.
    The volume MEDIA could not be verified completely.
    Volume repair complete.
    Updating boot support partitions for the volume as required.
    Error: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.
    So DiskUtility tells me to backup as many files as possible. However, when I try copying these files, I get a "File in use" error.

  • Using VPN to access remote servers; copying files to desktop since "upgrading" to Mavericks no longer works. Can anyone help please?

    Hi everyone,
    I work remotely using Cisco AnyConnect (company provided) to access the company servers. Until "upgrading" to Mavericks I was able to copy files directly to my desktop – from either the servers themselves, from within Bridge, and/or by using the finder - you get the idea. Now I can only copy the files by opening them while still on the server using the native app (in my case mainly InDesign/Photoshop/Illustrator files) and saving them to my desktop that way.
    I'm a designer, I use a lot of files for my specific job every day and these files are often pretty large and doing it this way is time-consuming and really frustrating seeing as I had no such issues with the previous OS. It's not a total nightmare (yet) like some of things some of you are dealing with but I've spent more time restarting, freezing and trying to fix issues than I have actually using my darned machine. I have no choice but to access my work this way; I'm part of a much larger team and we all work on these files off and on during the day so I'm constantly needing to copy files and make sure I'm working on the most current version. Working off the server isn't an option as the speed decreases considerably... making the slightest task cringingly slow. As in 25 minutes for a PDF to be created slow.
    I've been used to my system running smoothly, without issues and fast so this upgrade is turning into a bit of a nightmare. Before I throw in the towel and try and downgrade, does anyone have any ideas? My technical knowledge where these things are concerned isn't beginner but I'm no expert  and I'm stumped. I just don't know where to start and I'm afraid of screwing something else up during the process of trying to fix this (so far) one issue and creating a snowball effect.
    I'm using a 27" iMac (late model 2012 purchased in March 2013) with a second Viewsonic monitor attached. I have a Cintiq 22HD hooked up (but not on all the time) and a Wacom tablet in use. I currently use both CS5 (work hasn't upgraded to CC yet) and Adobe CC (for personal use) on my system.
    Any help/ideas would be greatly appreciated!
    Thanks!
    G.

    Hi,
    By default, the Remote Desktop (RD) Gateway component that encapsulates RDP in HTTPS packets listens on port 443 (for TCP) and port 3391 (for UDP). After you changed the ports in Transport Settings tab, please make sure that you have opened the custom ports
    you selected in Windows Firewall.
    In addition, since you have mentioned the registry key, would you please share the entire path?
    It seems that you need to manually update the gateway in the RDP file with the port. Have you created an .rdp file? You can also refer to the link below:
    Create an .rdp file
    Best regards,
    Susie

Maybe you are looking for

  • DVD SP burned disc won't play on DVD player

    I recently compiled a FCP HD project into Standard Defintion 16:9 and imported it into DVD SP 4. I build, format and burned a DVD-R disc without any problems. However the disc won't play on any of the DVD players in my house (1 philips and 1 Pioneer)

  • PPP Mulilink problem

    Need Help! Got problem with ppp multilink. Set up it, but the interface show down, like that in both side: Serial4:0                  unassigned      YES manual down                  down Serial5:0                  unassigned      YES manual down    

  • Help With Loading an Image In AIR

    I need to load an image (GIF) with AIR using File and FileStream, but can't figure out how to do it. I need to load the image into a Bitmap or BitmapData object, so I can't use the loader class. Here's what I have so far: import flash.display.*; impo

  • Executing acroRd32.exe execution question

    Hi everyone; Is there a way to execute acroRd32.exe without installatio?.  I have the entire reader system in one directory.  I uninstalled the reader (7.0) but I have all the components of this installation in one directory.  I executed acrord32.exe

  • Back Up Assistant freezes on LG Cosmos3 - anyone else have this issue?

    Let me share my experience. To save money, I did not renew my contract plan and went with two prepaid basic phones. (the LG Cosmos3)  Within two days, I knew there was a problem. When the back up assistant would try to execute a scheduled backup when