Copy files listed in a text file

I'm a programmer at a large university, and not normally involved in systems administration. However, I've been asked to solve a problem.
One of our departments relied on an Xserve for storage of many thousands of files (many hundreds of GB). It was decided to move it all to a Windows machine, and the person responsible used an "enterprise-quality" copy utility to make the move. This destroyed all metadata and resource forks.
So just redo the copy, you say? Unfortunately, by the time they came to me with the problem, the new server had been in production several weeks, and an indeterminate number of files had been changed in ways they don't want to lose. So a simple mass-copy won't work; it has to be selective.
My strategy is to identify the files with metadata/resource forks, that have not changed since the move. I don't want to do the actual copying myself (I'm sure there are nuances I'd miss, and I have one shot at it), and I'd prefer it if the tool I use moved many files/directories at once (the copy will take days anyway, but batching should reduce the overhead, right?).
What I'd imagine, then, is some system utility that correctly copies between parallel directory trees, working from a list of paths to files to be copied. ditto almost does what I want — the BOM is very tempting — but I don't seem to be able to generate a usable BOM from just a text listing of file paths.
Can anyone put me on to the proper facility?

Hi Frederic
First thing I thought of that might help is mdfind?
man mdfind
for usage. You could try the Unix or AppleScript Forums? You're more likely to get the right people responding sooner?
http://discussions.apple.com/forum.jspa?forumID=735
http://discussions.apple.com/forum.jspa?forumID=724
Tony

Similar Messages

  • Reading parameters lists from a text file

    Hi All,
    Using CR XI R2 with VB6  and external .rpt files - - - - -
    In a VB6 app I use VB to loop through my tables to create dynamic parameter lists (CR XI is limited to the number of parameters it can create from the table). This works well but each time the user refreshes the report the same code is run to re-create the parameter list which is redundant and slows down the report(s).
    Is it possible to manually create a series of text files - say each morning - and then read the parameter lists from the text file(s) at runtime instead of doing it on the fly each time?
    Thanks in advance!
    Peter Tyler
    Geneva - Switzerland

    I find this sentence confusing:
    Is it possible to manually create a series of text files - say each morning - and then read the parameter lists from the text file(s) at runtime instead of doing it on the fly each time?
    Typically, runtime means on the fly - I think...
    So, I'm not sure if you are trying to read a saved data report and filter that saved data so that you do not have to hit the database(?).
    Creating a text file is beyond the support of this forum, though that should be a trivial exercise. Reading a text file and passing the results to a parameter is the same thing you are doing already, so I'm not sure where the hang up would be here(?)
    Or - rather than creating a text file, why not create a temp table and query it as you do when you loop through the tables to create dynamic parameter lists(?).
    I'm pretty lost here...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • I cannot drag items (files, maps) and drop them. And neither can I copy paste anything, not even text!

    I just bought a new MacBook Air, at the start of November. And recently I can't copy files or maps, and neither can I drag and drop them. This get's really annoying as I kinda need this possibility when I study! Please help!

    Hello GiaDuke,
    i am having exactly the same issue, however my problem started prior to updating to 10.5.7. I updated in the hope that it would resolve the issue.
    copy and paste no longer works. Cut works but i can not re-paste the copied/cut text. Neither mouse or keyboard shortcuts work.
    i can select, click, double click etc with no problems. Applications and files launch when i click them, scrolling etc works fine.
    2 things i have noticed:
    1) Spotlight has dissapeared from my menu bar. Keyboard shortcuts for Spotlight no longer work. I have been into spotlight preferences and all seems normal, yet still no spotlight.
    2) When i hover over a link or icon, often additional information pops up. This is no longer happening. It's almost as if the system doesnt know where the mouse cursor actually is on the screen.
    While i still have a useable system, it is extremely frustrating not having the most basic functionality of cutting and pasting, draging and dropping, he ability to move files and icons around etc.
    HELP!!!!!!

  • HT201317 My photostream in windows 7 PC does not shows any pic. when i click on slide show it start showing me slide shows of pic but when i try to copy files i cant do as no photo is viewd in list mode. This problem has arised since IOS is updated.

    My photostream in windows 7 PC does not shows any pic. when i click on slide show it start showing me slide shows of pic but when i try to copy files i cant do as no photo is viewd in list mode. This problem has arised since IOS is updated.I reinstalled my icloud and checked if icloud sharing is ON. I can see pic in my photo stream in PC only in slide show mode. While in list mode it shows pics before i actually click on photostream folder. My phone memory is out becose of bunch of photoes. How do i copy my photostream photoes.

    Hi all.  I can’t tell you how to solve your iCloud 3.x issues.  Heck, I don’t think they’re even solvable.
    But if you had a previous version of iCloud that was working correctly then I can definitely tell you how to solve the “iCloud Photo Stream is not syncing correctly to my Windows 7 PC” problem.  …without even a re-boot.
    Log out of iCloud 3.0 and uninstall it.
    Open My Computer and then open your C:\ drive.  Go to Tools/Folder Options and click on the View tab.  Select the “Show hidden…” radio button and click on OK.
    Open the Users folder.
    Open your user folder
    Open ProgramData (previously hidden folder)
    Open the Apple folder – not the Apple Computer folder.
    Open the Installer Cache folder
    In Details view sort on Name
    Open the folder for the newest entry for iCloud Control Panel 2.x – probably 2.1.2.8 dated 4/25/2013
    Right click on iCloud64.msi and select Install.
    When finished, the synching between iCloud and your PC will be back to working perfectly as before the 3.0 fiasco.  The pictures will be synched to the same Photostream folder as before the “upgrade”.  Now all you need to do is wait until Apple/Microsoft get this thing fixed and working before you try the 3.x upgrade again.
    I think the iCloud 3.0 software was written by the same folks who wrote healthcare.gov with the main difference being that healthcare.gov might eventually be made to work.
    For those of you who hate to go backwards, think of it as attacking to the rear.  Which would you rather have, the frustration of no synching or everything working on an older version?
    Good luck…

  • When trying to 'Consolidate Files' via iTunes I get the message "Copying files failed. The name was invalid or too long."

    I am trying to copy my entire iTunes library and everything in it from my PC Desktop to my PC Laptop using the "External Drive" method as shown on the Apple website. On Part 1 (5) I am told to consolidate files. When attempting to do this I get the message "Copying files failed. The file name was invalid or too long."
    How do I resolve this?

    I have just been having this problem and it has been driving me mad.   The error message doesn't tell you which file is causing the problem so you can't fix it and it leaves your libray in a state of limbo with some files copied into the new location and some in the old location.  After many hours I found a surprisingly quick and simple solution.
    1) in iTune create a smart play list that includes everything that was added before tomorrows date.  This will include everything.
    2) Right click this playlist and export it as a text file to produce a tab delimited file.
    3) Import this into a spread sheet, or just view it in a text editor with line wrap turned off.  What you are interested in is the last column (or end of the line in a text editor).  This gives you the path of the file associated with each entry in the library. 
    The path of the files that have already been copied successfully will start with the new location for your media files you specified.  Scroll thru the rows until you get a blank path.  If you start getting paths starting with the old Media file location then you went to far and start scrolling back.
    The row with the blank path was the file that failed.  Move back to the start of the row to find out more about it.  In my case it was a podcast with a very long name. I just deleted that podcast from iTunes.
    4) Restart the consolidation by choosing File, Library as you did before and the process starts again where it left off.
    5) If it fails again on another file just repeat the process

  • How to copy file to another server from database using FTP in oracle

    How to copy file to another server from database using FTP in oracle.
    Please do the needfaul.

    Billy  Verreynne  wrote:
    BluShadow wrote:
    Not to mention that some FTP servers can return more than one return message per operation whereas others may return one message for the same operation.I had the problem using the LIST command to determine if a file exists on the server. Cannot be determined via the FTP server's return code. Which means parsing and checking the text response from the server to the command. And this vary from server to server.
    But the basics were quite easy to code. The entire package is 500 lines, includes comments and blank lines for formatting, and supports the basic FTP client command set. Not really a complex piece of software to write - but I found that many developers seem to think that writing network socket software is complex. Not really the case...Mine's a big larger, but incorporates functionality similar to what Chris provided in his, such as being able to use SQL to query a remote file using pipelined functions, or functionality to write the results of a query directly to a remove file.
    :)

  • How do I copy a list from one site to another that has a column that appends changes to existing text?

    I want to move a list from one SharePoint site to another, within the same collection. I have created a template and included the content but the column that is selected to append changes to existing text, has not copied in all cases, although it has for
    some items.
    I have a limited knowledge so won't be able to implement any solutions that require the use of code.

    Hi,
    According to your post, my understanding is that you wanted to copy a list from one site to another that has a column that appends changes to existing text.
    I recommend to use the custom workflow activity  Copy List Item Extended Activityto
    copy list items and files cross site.
    You can do this with codeless SharePoint Designer workflows as long as you can install the
    Codeplex Custom SharePoint Designer Workflow Activities. 
    These activities are also built-in to SPD2010.
    To install the custom activities, please follow the steps as below:
    Download the solution file form
    Useful Sharepoint Designer Custom Workflow Activities
    Copy the wps file to the Disk C.
    Open the SharePoint 2010 Management Shell.
    Run the command: add spsolution c:\ dp.sharepoint.workflow.wsp
    Open the Center Administration, click System Setting->Manage Farm Solution-> dp.sharepoint.workflow.wsp->Deploy to one or more Web Application.
    Open the SharePoint designer, add action from Custom Actions.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Copy file structure for reference

    So I have this internal HD that I am replacing with a bigger drive. I plan to put the old drive on the shelf as a backup. I'd like to have a document of all the files on the drive so I don't have to put it back in to see what's on it. I discovered that you can make a list of a folders contents and all sub folders by dragging them into TextWrangler. That's okay, but a little hard to scan visually. Does any one have a better solution? The text file of course is searchable but it would be nice if the snapshot of the drive looked and operated like OSX finder with twirldown folders. I just need the names of the files for reference. I suppose I could make a dummy folder in finder that had alias files of all of them. Anyone have any ideas?

    You can't just manually copy files individually from drive to drive. Permissions and metadata can actually get messed up.
    Better to use cloning software*:
    http://www.macmaps.com/backup.html
    Unless of course your data is exhibiting signs of corruption. In that case, only copy the data files known to be of good structure to the new drive after erase and installing the operating system on the new drive.
    - * Links to my apges may give me compensation.

  • My time machine always stops at some point... It always shows this message: "Time Machine Error. Unable to complete backup. An error occurred while copying files to the backup volume.

    My time machine always stops at some point... It always shows this message: "Time Machine Error. Unable to complete backup. An error occurred while copying files to the backup volume. I have tried everything and even did time machine in safe boot as told by an apple suppoprt advisor. still the same error after 16gb

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the word "Starting" (without the quotes) in the String Matching text field. You should now see log messages with the words "Starting * backup," where * represents any of the words "automatic," "manual," or "standard." Note the timestamp of the last such message that corresponds to a failed backup. Now
    CLEAR THE WORD "Starting" FROM THE TEXT FIELD
    so that all messages are showning, and scroll back in the log to the time you noted. Select the messages timestamped from then until the end of the backup, or the end of the log if that's not clear. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
    If all you see are messages that contain the word "Starting," you didn't clear the text field.
    If there are runs of repeated messages, post only one example of each. Don't post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Some personal information, such as the names of your files, may be included — anonymize before posting.

  • Can I copy files – but with certain restrictions?

    I have just finished a large project, the archives of which involves about 5000 "base" files, stored on about 80 CDs and 50 DVDs, involving about 50,000 files in total. Each of the "base" files may have had up to 30 incremental versions. i.e. a certain text file may have undergone revision 23 times, and each revision was saved and archived to (probably) a different disk, with a different suffix – a, b, c and so on. But sometimes the suffix didn't change even though the file was edited. I might have done a bit more dust removal on an image and just overwrote the old file (already archived), and so the new one was archived on a different disk.
    I now have 130 disks from which I would like to extract all the files and collapse them to one large archive that will probably span about 20 disks by the time I delete some files not needed. That way I can easily search for all versions of, say, GB097, by going to the particular DVD that has the "G" files on it. Up would come:
    GB097
    GB097a
    GB097b
    GB097b-1
    GB097b-2
    GB097c
    ... and so on.
    This is what I would like to do:
    1. Grab the first archive disk, open every folder, and copy all the files to the one folder on a hard drive.
    2. Open the second disk and repeat step (1), but with these two provisos.
    (a) If a file is identical to a previously copied file (maybe I archived it twice), the file isn't copied. However...
    (b) If a file has the same name as a previously copied file, but the data within that file is different (i.e. I removed some dust from an image file, but left the name unchanged), I'd like that file to be copied with a numbered suffix, the same way that Trash treats identically named files.
    Any suggestions how I could do this?

    Back again. This is the Terminal output when run on my +Duplicates Copy+ folder:
    Last login: Thu May 20 13:28:30 on ttyp1
    Welcome to Darwin!
    jenny-pearces-imac-g5:~ Jenny$ chmod +x /Users/Jenny/Desktop/Bash\ Test\ Documents/BashTest.txt
    jenny-pearces-imac-g5:~ Jenny$ /Users/Jenny/Desktop/Bash\ Test\ Documents/BashTest.txt /Users/Jenny/Desktop/Duplicates\ copy/
    /Users/Jenny/Desktop/Bash Test Documents/BashTest.txt: line 1: ${filePaths${count}}: bad substitution
    /Users/Jenny/Desktop/Bash Test Documents/BashTest.txt: line 17: fileSum0=d41d8cd98f00b204e9800998ecf8427e: command not found
    /Users/Jenny/Desktop/Bash Test Documents/BashTest.txt: line 1: ${filePaths${count}}: bad substitution
    /Users/Jenny/Desktop/Bash Test Documents/BashTest.txt: line 17: fileSum1=d41d8cd98f00b204e9800998ecf8427e: command not found
    /Users/Jenny/Desktop/Bash Test Documents/BashTest.txt: line 1: ${filePaths${count}}: bad substitution
    /Users/Jenny/Desktop/Bash Test Documents/BashTest.txt: line 17: fileSum2=d41d8cd98f00b204e9800998ecf8427e: command not found
    jenny-pearces-imac-g5:~ Jenny$
    I'm not sure it's worth spending much more time on this. However, if you're prepared to keep posting, JJJ, I'll keep testing.
    *SCRIPT AFTER THE EDIT*
    #!/bin/bash
    declare -i count=0
    declare -a fileSum filePaths
    # Main folder can be declared on the command line or if not then use /testpix
    MainFolder="${1:-/testpix}"
    # Set the internal field separator to newline to preserve spaces in file paths
    IFS=$'\n'
    # Use 'find' to create a list of files within the folders.
    filePaths=( $( find "${MainFolder}" -type f \! -name ".*" ) )
    # Get an MD5 checksum for each file's combined content of both data and resource forks
    for file in ${filePaths[*]} ; do
    fileSum${count}=$( cat "${filePaths${count}}" "${filePaths${count}}/rsrc" | md5 | cut -d'=' -f 2)
    let count+=1
    done
    # For each file, check for a duplicate checksum and if found, move the matching file to the user's trash folder
    # Rename files with duplicate names by appending #XX
    for ((i=0;i<${count};i++)) ; do
    [ -z "${filePaths[${i}]}" ] && continue
    dupecount=1
    for ((j=0;j<${count};j++)) ; do
    [ -z "${filePaths[${j}]}" ] && continue
    if [ "${fileSum[${i}]}" = "${fileSum[${j}]}" -a ${i} -ne ${j} ] ; then
    mv "${filePaths[${j}]}" ~/.Trash && filePaths[${j}]='' && fileSum[${j}]=''
    elif [ $(basename "${filePaths[${i}]}") = $(basename "${filePaths[${j}]}") -a ${i} -ne ${j} ] ; then
    let dupecount+=1
    dirname=$(dirname "${filePaths[${j}]}")
    fullfilename=$(basename "${filePaths[${i}]}")
    extension="${fullfilename##*.}"
    filename="${fullfilename%.*}"
    until [ ! -e "${dirname}/${filename} #${dupecount}.${extension}" ] ; do
    let dupecount+=1
    done
    mv "${filePaths[${j}]}" "${dirname}/${filename} #${dupecount}.${extension}"
    filePaths[${j}]="${dirname}/${filename} #${dupecount}.${extension}"
    fi
    done
    done
    exit 0

  • Powershell Copy-file: Username & Password

    I am very new to powershell (just a couple days). I'm sure its very simple, but cannot find any articles with a clear description.I am working on a script to push one file to multiple PC's listed in a text file. All the machines have the same admin account and password. How can I incorporate the login into the script so it doesn't prompt each time? Here is what I have so far.Thanks in advance for any help!Powershell$computers = Read-Host "Enter Location of .txt File"$source = Read-Host "Enter File Source"$dest = Read-Host "Enter File Destination"Get-Content $Computers | foreach {Copy-Item $Source -Destination \\$_\c$\$Destination}
    This topic first appeared in the Spiceworks Community

    sorry - I should of put that in my first post...
    I tried the ip ftp username and password but it didn't like the commands. Is there somethign else I'm missing that I ned to do first ?
    Here's the error I'm getting when trying ip ftp username
    mensa# config t
    Enter configuration commands, one per line. End with CNTL/Z.
    mensa(config)# ip ftp username
    ^
    % invalid command detected at '^' marker.
    mensa(config)# ip ftp ?
    % invalid command
    mensa(config)# ip ?
    access-list Configure ip access list
    default-gateway Configure ip default gateway
    default-network Configure ip default network
    domain-list Add additional domain names
    domain-lookup Enable/Disable DNS
    domain-name Specify default domain name
    name-server Specify nameserver address
    route Configure static routing
    routing Enable ip routing
    tcp Enable ip tcp path-mtu-discovery
    mensa(config)# ip
    I can ftp the file no problem using anonymous username/password when prompted, I'm just trying to pass that info in without being prompted.
    Thanks
    Will rate the posts once I get to the botto of this ;-)

  • Can no longer move or copy files between drives (not a newbie issue!)

    Copying and moving files between internal and external devices, and external to external devices is no longer working.
    *For the first time in my life, I get a "Circle with a Bar through it" when attempting to move or copy files.*
    This doesn't happen between the two internal drives at all (though I'm worried it might start). It happens between two HFS+J devices as well as HFS+J and FAT32 devices. I can delete files, create folders, and in some instances where things are acting funny, copy to, but not from the device. A noticed side effect that is now happening is that I can no longer move drive icons (CDs, DVDs, HDs) to their upper-right hand corner position on the desktop, if they didn't start there. They don't drop there, just staying where they originally sat (under a list of desktop shortcuts and files). It does not matter if the drives are USB or Firewire, and this never happened previous to about a month ago.
    I have done all the basic stuff -- verify/repair drives, reboot multiple times, mount & dismount, change connection ports, backed up-reformatted-and restored the smallest drive, fixed preferences (not at all relevant), Disk Warrior repair the devices, set all permissions to R/W, check all device related infos, researched on-line for a week... Nothing. I have even taken the devices to PCs, where they work perfectly, and as expected.
    This issue is apparently either a corruption, or a bug induced by Software Update, in the part of the system that handles files and file structures, or possibly the _USB and Firewire_ interfaces.
    I just need to know where all those relevant parts are in the system folders, so I can attempt to restore them from a backup previous to the last "Software Update," (to be sure. And to bring this one step closer to being solved).
    A system restore really is not an option, as that would require nearly two weeks of re-tweaking everything from the system to every piece of software included (updating the system about 10 times via software update, reinstalling 90% of the actual software packages... and then updating those multiple times, looking-up all the serials that get killed, etc.)
    I have to correct this fast, as we need to move the files from the work drives to the archive drives before we run out of room. So any help would be very appreciated... even if you only know where a few of the system components are located (it just might be one of those, causing the issue).
    ---TIA

    {The last link in this post is most relevant, except for your recent finding.}
    The reference was to the User permissions, per each; as when these
    become corrupted, the simple 'repair disk permissions' and other
    basic duties do not find an error with them. That is because there is
    nothing really wrong with them from that standpoint.
    Another odd error can happen if one is resizing partitions in an Intel
    based Mac, and also if one has or had a BootCamp partition and
    wanted to reclaim space. But not always. Thankfully, the only time
    I tried Windows on a Mac, the media install disc was corrupted so
    it just didn't happen. That was Virtual PC and Windows on PPC.
    Tiger brought with it the ability to non-destructively resize partitions.
    However, it was not thought to be successful in non-Intel based Macs.
    The discussion on that matter came up a few years ago, so someone
    has undoubtably tried that in a PPC and reported findings online.
    When file sharing between user-account created content runs amok,
    then the system(s) will not allow the content to be moved or shared.
    So, if any shared user-account created content (including drives
    initialized or handled without permissions ignored, clones wrong,
    etc) are not the problem, then how does one explain these wrong
    ful action circles-with-lines, or action disallowed warning symbols?
    There must be a simpler answer. Do you have cats which have
    access to your computers in the off-hours? They do keyboard.
    Some have been thought to have technical skills outside of the
    usual coy and cute play-acting people think they are limited to.
    I'm sticking to the cats theory for now; the time is 3:21AM here
    and I only am up to get a drink and look outside at +5°F. calm.
    Mac OS X 10.4 Help: I can't move or copy a file or folder
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh194.html
    • _Rearranging Files (and renaming them)_ InformIT: Mac OS X unleashed
    http://www.informit.com/library/content.aspx?b=MacOS_XUnleashed&seqNum=122
    It is good to have a backup for the backup; plus a backup Mac.
    Good luck & happy computing!
    { edited: was distracted }

  • CPU Jul-09 Installation - Error Cannot copy file from 'libjox10.so' to

    Hi All, I received this error while I was installing the last CPU on a 10.2.0.4 Oracle Instance running on a HP-UX Itanium System:
    Patch 8568398:
    Copy Action: Desctination File "/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so" is not writeable.
    'oracle.rdbms, 10.2.0.4.0': Cannot copy file from 'libjox10.so' to '/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so'
    I checked metalink' site with no similar results found.
    Could anybody help me?
    Should I run /usr/sbin/slibclean and remove the last patch (Patch 8568398) and then try again?
    This is the complete log...
    $ opatch version
    Invoking OPatch 10.2.0.4.7
    OPatch Version: 10.2.0.4.7
    OPatch succeeded.
    $ sqlplus /nolog
    SQL*Plus: Release 10.2.0.4.0 - Production on Fri Jul 17 16:29:29 2009
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    $ lsnrctl stop
    LSNRCTL for HPUX: Version 10.2.0.4.0 - Production on 17-JUL-2009 16:32:29
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Hostname)(PORT=1521)))
    The command completed successfully
    $ emctl stop dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    http://hostname:1158/em/console/aboutApplication
    Stopping Oracle Enterprise Manager 10g Database Control ...
    ... Stopped.
    $unzip p8534387_10204_HPUX-IA64.zip
    <...>
    $ cd 8534387
    $ opatch napply -skip_subset -skip_duplicate
    Invoking OPatch 10.2.0.4.7
    Oracle Interim Patch Installer version 10.2.0.4.7
    Copyright (c) 2009, Oracle Corporation. All rights reserved.
    UTIL session
    Oracle Home : /u02/app/oracle/product/10.2/Db_1
    Central Inventory : /u02/app/oracle/oraInventory
    from : /var/opt/oracle/oraInst.loc
    OPatch version : 10.2.0.4.7
    OUI version : 10.2.0.4.0
    OUI location : /u02/app/oracle/product/10.2/Db_1/oui
    Log file location : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2 009-07-17_16-38-05PM.log
    Patch history file: /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch_ history.txt
    Invoking utility "napply"
    Checking conflict among patches...
    Checking if Oracle Home has components required by patches...
    Checking skip_duplicate
    Checking skip_subset
    Checking conflicts against Oracle Home...
    OPatch continues with these patches: 7155248 7155249 7155250 7155251 7155252 7155253 7155254 7197583 7375611 7375613 7375617 7609057 7609058 8309587 8309592 8309623 8309632 8309637 8309642 8534387 8568395 8568397 8568398 8568402 8568404 8568405
    Do you want to proceed? y
    y
    User Responded with: Y
    Running prerequisite checks...
    Prerequisite check "CheckApplicable" failed.
    The details are:
    Patch 8568398:
    Copy Action: Desctination File "/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so" is not writeable.
    'oracle.rdbms, 10.2.0.4.0': Cannot copy file from 'libjox10.so' to '/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so'
    UtilSession failed: Prerequisite check "CheckApplicable" failed.
    $ opatch lsinventory -detail
    Invoking OPatch 10.2.0.4.7
    Oracle Interim Patch Installer version 10.2.0.4.7
    Copyright (c) 2009, Oracle Corporation. All rights reserved.
    Oracle Home : /u02/app/oracle/product/10.2/Db_1
    Central Inventory : /u02/app/oracle/oraInventory
    from : /var/opt/oracle/oraInst.loc
    OPatch version : 10.2.0.4.7
    OUI version : 10.2.0.4.0
    OUI location : /u02/app/oracle/product/10.2/Db_1/oui
    Log file location : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_17-53-30PM.log
    Patch history file: /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch_history.txt
    Lsinventory Output file location : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/lsinv/lsinventory2009-07-17_17-53-30PM.txt
    Installed Top-level Products (2):
    Oracle Database 10g 10.2.0.1.0
    Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0
    There are 2 products installed in this Oracle Home.
    Installed Products (190):
    Agent Required Support Files 10.2.0.1.0
    Agent Required Support Files Patch 10.2.0.4.0
    Assistant Common Files 10.2.0.1.0
    Assistant Common Files Patch 10.2.0.4.0
    Bali Share 1.1.18.0.0
    Buildtools Common Files 10.2.0.1.0
    Character Set Migration Utility 10.2.0.1.0
    Character Set Migration Utility Patch 10.2.0.4.0
    Database Configuration and Upgrade Assistants 10.2.0.1.0
    Database Configuration and Upgrade Assistants Patch 10.2.0.4.0
    Database SQL Scripts 10.2.0.1.0
    Database SQL Scripts Patch 10.2.0.4.0
    Database Workspace Manager 10.2.0.1.0
    Database Workspace Manager 10.2.0.4.0
    DBJAVA Required Support Files 10.2.0.1.0
    DBJAVA Required Support Files Patch 10.2.0.4.0
    Enterprise Edition Options 10.2.0.1.0
    Enterprise Manager Agent Core 10.2.0.1.0
    Enterprise Manager Agent Core Patch 10.2.0.4.0a
    Enterprise Manager Agent DB 10.2.0.1.0
    Enterprise Manager Agent DB 10.2.0.4.0
    Enterprise Manager Baseline 10.2.0.1.0
    Enterprise Manager Baseline 10.2.0.4.0
    Enterprise Manager Common Core Patch 10.2.0.4.0a
    Enterprise Manager Common Files 10.2.0.1.0
    Enterprise Manager Minimal Integration 10.2.0.1.0
    Enterprise Manager plugin Common Files 10.2.0.1.0
    Enterprise Manager plugin Common Files 10.2.0.1.0
    Enterprise Manager plugin Common Files Patch 10.2.0.4.0
    Enterprise Manager Repository Core 10.2.0.1.0
    Enterprise Manager Repository Core patch 10.2.0.4.0a
    Enterprise Manager Repository DB 10.2.0.1.0
    Enterprise Manager Repository DB 10.2.0.4.0
    Generic Connectivity Common Files 10.2.0.1.0
    Generic Connectivity Common Files Patch 10.2.0.4.0
    HAS Common Files 10.2.0.1.0
    HAS Common Files Patch 10.2.0.4.0
    HAS Files for DB 10.2.0.1.0
    HAS Files for DB Patch 10.2.0.4.0
    Installation Common Files 10.2.0.1.0
    Installation Common Files Patch 10.2.0.4.0
    Installer SDK Component 10.2.0.4.0
    iSQL*Plus 10.2.0.1.0
    iSQL*Plus 10.2.0.4.0
    Java Runtime Environment 1.4.2.14.0
    JDBC Common Files 10.2.0.1.0
    JDBC Common Files 10.2.0.4.0
    LDAP Required Support Files 10.2.0.1.0
    LDAP Required Support Files Patch 10.2.0.4.0
    OLAP SQL Scripts 10.2.0.1.0
    OLAP SQL Scripts Patch 10.2.0.4.0
    Oracle Advanced Security 10.2.0.1.0
    Oracle Advanced Security Patch 10.2.0.4.0
    Oracle Call Interface (OCI) 10.2.0.1.0
    Oracle Call Interface (OCI) Patch 10.2.0.4.0
    Oracle Clusterware RDBMS Files 10.2.0.1.0
    Oracle Clusterware RDBMS Files Patch 10.2.0.4.0
    Oracle Code Editor 1.2.1.0.0I
    Oracle Configuration Manager 10.2.7.1.0
    Oracle Containers for Java 10.2.0.1.0
    Oracle Containers for Java 10.2.0.4.0
    Oracle Core Required Support Files 10.2.0.1.0
    Oracle Core Required Support Files Patch 10.2.0.4.0
    Oracle Data Mining RDBMS Files 10.2.0.1.0
    Oracle Data Mining RDBMS Files Patch 10.2.0.4.0
    Oracle Database 10g 10.2.0.1.0
    Oracle Database 10g 10.2.0.1.0
    Oracle Database 10G 32 bit 10.1.0.2.0
    Oracle Database 10g interMedia Files 10.2.0.1.0
    Oracle Database 10g interMedia Files Patch 10.2.0.4.0
    Oracle Database 10g Patch 10.2.0.4.0
    Oracle Database 10g Patch 10.2.0.4.0
    Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0
    Oracle Database User Interface 2.2.13.0.0
    Oracle Database Utilities 10.2.0.1.0
    Oracle Database Utilities Patch 10.2.0.4.0
    Oracle Display Fonts 9.0.2.0.0
    Oracle Enterprise Manager Console DB 10.2.0.1.0
    Oracle Enterprise Manager Console DB 10.2.0.4.0
    Oracle Extended Windowing Toolkit 3.4.38.0.0
    Oracle Globalization Support 10.2.0.1.0
    Oracle Globalization Support Patch 10.2.0.4.0
    Oracle Help For Java 4.2.6.1.0
    Oracle Help for the Web 1.1.10.0.0
    Oracle Ice Browser 5.2.3.6.0
    Oracle interMedia 10.2.0.1.0
    Oracle interMedia Annotator 10.2.0.1.0
    Oracle interMedia Client Option 10.2.0.1.0
    Oracle interMedia Client Option Patch 10.2.0.4.0
    Oracle interMedia Java Advanced Imaging 10.2.0.1.0
    Oracle interMedia Java Advanced Imaging Patch 10.2.0.4.0
    Oracle interMedia Locator 10.2.0.1.0
    Oracle interMedia Locator Patch 10.2.0.4.0
    Oracle interMedia Locator RDBMS Files 10.2.0.1.0
    Oracle interMedia Locator RDBMS Files Patch 10.2.0.4.0
    Oracle interMedia Patch 10.2.0.4.0
    Oracle Internet Directory Client 10.2.0.1.0
    Oracle Internet Directory Client Patch 10.2.0.4.0
    Oracle Java Client 10.2.0.1.0
    Oracle Java Client Patch 10.2.0.4.0
    Oracle JDBC Thin Driver for JDK 1.2 10.2.0.1.0
    Oracle JDBC Thin Driver for JDK 1.2 Patch 10.2.0.4.0
    Oracle JDBC Thin Driver for JDK 1.4 10.2.0.1.0
    Oracle JDBC Thin Driver for JDK 1.4 Patch 10.2.0.4.0
    Oracle JDBC/OCI Instant Client 10.2.0.1.0
    Oracle JDBC/OCI Instant Client Patch 10.2.0.4.0
    Oracle JFC Extended Windowing Toolkit 4.2.33.0.0
    Oracle JVM 10.2.0.1.0
    Oracle JVM Patch 10.2.0.4.0
    Oracle LDAP administration 10.2.0.1.0
    Oracle LDAP administration patch 10.2.0.4.0
    Oracle Locale Builder 10.2.0.1.0
    Oracle Message Gateway Common Files 10.2.0.1.0
    Oracle Message Gateway Common Files Patch 10.2.0.4.0
    Oracle Net 10.2.0.1.0
    Oracle Net Listener 10.2.0.1.0
    Oracle Net Listener Patch 10.2.0.4.0
    Oracle Net Patch 10.2.0.4.0
    Oracle Net Required Support Files 10.2.0.1.0
    Oracle Net Required Support Files Patch 10.2.0.4.0
    Oracle Net Services 10.2.0.1.0
    Oracle Notification Service 9.0.4.0.0
    Oracle Notification Service Patch 10.2.0.4.0
    Oracle OLAP 10.2.0.1.0
    Oracle OLAP API 10.2.0.1.0
    Oracle OLAP API Patch 10.2.0.4.0
    Oracle OLAP Patch 10.2.0.4.0
    Oracle OLAP RDBMS Files 10.2.0.1.0
    Oracle OLAP RDBMS Files Patch 10.2.0.4.0
    Oracle One-Off Patch Installer 10.2.0.4.0
    Oracle Partitioning 10.2.0.1.0
    Oracle Partitioning Patch 10.2.0.4.0
    Oracle Programmer 10.2.0.1.0
    Oracle RAC Required Support Files-HAS 10.2.0.1.0
    Oracle RAC Required Support Files-HAS Patch 10.2.0.4.0
    Oracle Real Application Testing 10.2.0.4.0
    Oracle Recovery Manager 10.2.0.1.0
    Oracle Recovery Manager Patch 10.2.0.4.0
    Oracle Required Support Files 32 bit 10.2.0.0.0
    Oracle Required Support Files 32 bit Patch 10.2.0.4.0
    Oracle Spatial 10.2.0.1.0
    Oracle Starter Database 10.2.0.1.0
    Oracle Starter Database Patch 10.2.0.4.0
    Oracle Text 10.2.0.1.0
    Oracle Text Patch 10.2.0.4.0
    Oracle UIX 2.1.22.0.0
    Oracle Universal Installer 10.2.0.4.0
    Oracle Wallet Manager 10.2.0.1.0
    Oracle Wallet Manager Patch 10.2.0.4.0
    Oracle XML Development Kit 10.2.0.1.0
    Oracle XML Development Kit Patch 10.2.0.4.0
    Parser Generator Required Support Files 10.2.0.1.0
    Perl Interpreter 5.8.3.0.1
    Perl Interpreter Patch 5.8.3.0.1a
    PL/SQL 10.2.0.1.0
    PL/SQL 10.2.0.4.0
    PL/SQL Embedded Gateway 10.2.0.1.0
    PL/SQL Embedded Gateway Patch 10.2.0.4.0
    Platform Required Support Files 10.2.0.1.0
    Platform Required Support Files 10.2.0.4.0
    Precompiler Common Files 10.2.0.1.0
    Precompiler Common Files Patch 10.2.0.4.0
    Precompiler Required Support Files 10.2.0.1.0
    Precompiler Required Support Files Patch 10.2.0.4.0
    RDBMS Required Support Files 10.2.0.1.0
    RDBMS Required Support Files for Instant Client 10.2.0.1.0
    RDBMS Required Support Files for Instant Client Patch 10.2.0.4.0
    RDBMS Required Support Files Patch 10.2.0.4.0
    regexp 2.1.9.0.0
    Required Support Files 10.2.0.1.0
    Sample Schema Data 10.2.0.1.0
    Sample Schema Data Patch 10.2.0.4.0
    Secure Socket Layer 10.2.0.1.0
    Secure Socket Layer Patch 10.2.0.4.0
    SQL*Plus 10.2.0.1.0
    SQL*Plus 10.2.0.4.0
    SQL*Plus Required Support Files 10.2.0.1.0
    SQL*Plus Required Support Files Patch 10.2.0.4.0
    SQLJ Runtime 10.2.0.1.0
    SQLJ Runtime Patch 10.2.0.4.0
    SSL Required Support Files for InstantClient 10.2.0.1.0
    SSL Required Support Files for InstantClient Patch 10.2.0.4.0
    Sun JDK 1.4.2.17.0
    Sun JDK extensions 9.2.0.1.0
    XDK Required Support Files 10.2.0.1.0
    XDK Required Support Files Patch 10.2.0.4.0
    XML Parser for Java 10.2.0.1.0
    XML Parser for Java Patch 10.2.0.4.0
    XML Parser for Oracle JVM 10.2.0.1.0
    XML Parser for Oracle JVM Patch 10.2.0.4.0
    There are 190 products installed in this Oracle Home.
    There are no Interim patches installed in this Oracle Home.
    OPatch succeeded.
    $
    $ more /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch_history.txt
    Date & Time : Fri Jul 17 16:02:17 GMT-03:00 2009
    Oracle Home : /u02/app/oracle/product/10.2/Db_1
    OPatch Ver. : 10.2.0.4.7
    Current Dir : /u02/app/oracle/product/10.2/Db_1
    Command : -v
    Log File : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_16-02-17PM.log
    Date & Time : Fri Jul 17 16:38:05 GMT-03:00 2009
    Oracle Home : /u02/app/oracle/product/10.2/Db_1
    OPatch Ver. : 10.2.0.4.7
    Current Dir : /home/ora10g/8534387
    Command : napply -skip_subset -skip_duplicate
    Log File : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_16-38-05PM.log
    Date & Time : Fri Jul 17 17:53:30 GMT-03:00 2009
    Oracle Home : /u02/app/oracle/product/10.2/Db_1
    OPatch Ver. : 10.2.0.4.7
    Current Dir : /home/ora10g/8534387
    Command : lsinventory -detail
    Log File : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_17-53-30PM.log
    $
    Please let me know if you need more info.
    Regards, and thanks in advance!
    Martin

    You were right. It was a permissions issue:
    hostname:/root# ls -ltr /u02/app/oracle/product/10.2/Db_1/lib/libjox10.so
    -r-xr-xr-x 1 ora10g oinstall 20041728 Apr 23 2008 /u02/app/oracle/product/10.2/Db_1/lib/libjox10.so
    Thanks.
    damorgan wrote:
    "is not writeable." means one of two things.
    1. It does not exist.
    2. Permissions are not set correctly.
    Determining which it is ... that is the first step.

  • How to copy file from global zone to non-global zone?

    Hi,
    I'm new in zone.
    I have installed a zone and I would like to install some programs.
    Could you please tell me how to copy downloaded file from internet to the new installed zone?
    Kind regards,
    Daniel

    I like to use zcp which came from BigAdmin I believe.
    #!/usr/bin/perl
    # zcp - copy a file from the global zone to a nonglobal zone. Solaris 10.
    # 10-Mar-2005, ver 0.50 (first release)
    # USAGE: zcp file1 zonename:file2
    # eg,
    # zcp /etc/syslog.conf workzone1:/tmp
    # Standard Disclaimer: This is freeware, use at your own risk.
    # 10-Mar-2005 Brendan Gregg Created this.
    $ENV{PATH} = "/usr/bin:/usr/sbin";
    $VERBOSE = 1;
    # Process arguments
    # check for arguments,
    if (@ARGV != 2) {
    die "USAGE: zcp file1 zonename:file2\n";
    # check source file exists,
    $srcpath = $ARGV[0];
    if (! -e $srcpath) {
    die "ERROR1: Can't find source file $srcpath\n";
    # check destination zone exists,
    ($destzone,$destpath) = split(/:/,$ARGV[1]);
    chomp(@Zones = `zoneadm list`);
    foreach $zone (@Zones) { $Zone{$zone} = 1; }
    unless ($Zone{$destzone}) {
    die "ERROR2: Can't find zone $destzone\n";
    # check if destination is a directory or filename,
    $dir = `zlogin -S $destzone '
    if [ -d "$destpath" ]; then echo 1; else echo 0; fi'`;
    if ($dir == 1) {
    $node = $srcpath;
    $node =~ s:.*/::;
    $destpath = "$destpath/$node";
    # Print message
    print "zcp from $srcpath, to zone $destzone, to file $destpath.\n" if $VERBOSE;
    # Copy File
    system("cat $srcpath | zlogin -S $destzone 'cat - > $destpath'");
    # Verify file copied
    $srcsize = -s $srcpath;
    $destinfo = `zlogin -S $destzone 'ls -l $destpath'`;
    @Fields = split(' ',$destinfo);
    $destsize = $Fields[4];
    if ($srcsize != $destsize) {
    print STDERR "ERROR3: Copy failed, size mismatch ".
    "($srcsize != $destsize)\n";
    } else {
    print "Copy successful ($destpath, $destsize bytes).\n" if $VERBOSE;
    }

  • My Time Capsule has stopped backing up.  I have an Apple Time Capsule which backs up by wireless. For the last 3 days it has not backed up. I get this message: "The backup was not performed because an error occurred while copying files to the backup disk.

    My Time Capsule has stopped backing up.
    I have an Apple Time Capsule which backs up by wireless. For the last 3 days it has not backed up. I get this message:
    "The backup was not performed because an error occurred while copying files to the backup disk."
    I have gone into Mac Help and followed this down to stage 4:
    under shared it lists my time capsule and my husband's iMac - both use the time machine but we have switched his off temporarily.  Clicking on my Time capsule I get "Connected" and "Sharepoint" - I didn't have to enter connect or password
    I don't understand stage 5: how and where do I select the disk or volume that contains Time Machine backups ?  How do I know which it is? My disk utility lists 160.04 TOSHIBA MK... with sub-heading Macintosh HD.  It also lists (with a "CD" icon) HL-DT-ST DVDRW GS22N
    Under stage 6, how and where do I Locate your backup ? I try dragging my Time capsule from Finder to the Disk Utility side panel but it won't go.  What is my computer's name?
    Please someone help!  I'm completely stumped.
    Thanks,
    Maggie
    Mac Help says:
    If you back up to a Time Capsule or network disk:
    Open the Time Machine pane of System Preferences, and slide the switch to Off.
    Open Time Machine preferences
    Open Disk Utility, which is in the Utilities folder in the Applications folder. 
    Open Disk Utility
    Make sure the Time Capsule or network disk is turned on and available. 
    Open a Finder window, select your Time Capsule or network disk in the Shared section of the sidebar, and click Connect. If necessary, enter your user name and password. 
    On the Time Capsule or network disk, select the disk or volume that contains Time Machine backups. Depending on how your Time Capsule is set up, there may be one or more disks or volumes. 
    Locate your backup, and drag it to the Disk Utility sidebar.You can identify your backup by looking for your computer’s name in the backup’s filename.

    Hello,
    Thanks to the great Pondini...
    http://pondini.org/TM/C3.html

  • Copying files either very slow or doesn't work at all

    I've tried copying files from a DVD to an external drive, and from one external drive to another, and I've been running into troubles on my Mac Pro, namely, I get an error code 36 (corrupted files) and the copying process hangs, requiring me to reboot. However, I was able to copy the files from the DVD to my laptop HD, so I don't think that corrupt files is the problem. After rebooting my Mac Pro, I was able to copy files from one external drive to another, but it was incredibly slow (about 1GB per hour), and I was still unable to copy files from the DVD to an external drive. I've verified all the disks with Disk Utility, and I've repaired disk permissions on my Mac Pro HD but apparently need to re-run since when I verify permissions again, I'm still getting a lot of errors or comments like "Warning: SUID file "usr/bin/rlogin" has been modified and will not be repaired". Scanning my Mac Pro HD for viruses, quite a few files are coming up with the comment "did not have permission to open the file." Other than continuing to repair disk permissions, does anyone have suggestions about what might be causing this and/or on possible next steps?

    A little further info - I checked permissions and I have permission to copy the files in question. Also, it seems that most of the errors that pop up when I verify permissions are of the type that can safely be ignored, according to Apple -- I'll go through the list later and cross-check them to make sure that they're all ignore-able, but thats what they appear to be.

Maybe you are looking for