Copy command

Hi,
I want to prompt for user input in cp command.
eg: cp a1.txt d1
But instead of hard coding the file name(a1.txt) i want to make the code dynamic that will prompt for
user input.
Plz tell me

How about the following:
<pre>
read -p "Enter filename: " fname && cp $fname d1
</pre>

Similar Messages

  • Copy Command in ABAP report

    HI Gurus,
    I have a ABAP report - basic list, with lot of batch data on it. based on the report they will copy the batch numbers and paste in standard transactions.
    Users complaining to do a Ctrl + Y and then Ctrl + C then Ctrl + V to paste the batch numbers.
    Is there anything we can do programatically using hot sopt on batch numbers so we get the selected BATCH and execute copy command programatically when they click on BATCH number on basic list.
    All they need to do is Ctrl + V on standard transactions.
    Is there anyway to achieve this?
    Thanks Giri

    Giri - you would probably get more results if you mark this as a question. That way you can assign po1nts to helpful answers.
    In any event why don't you just do a CALL TRANSACTION when the user double clicks on a line?
    Rob

  • Copy command not working for Search Results

    Hello,
    We have a Search Form that triggers a  TREX URL search.  We also add a custom Layout Set on the search URL.  (see URL below)
    <b>URL Search:</b>
    http:
    <server name> &ConfigFileName=Navigation.xml&layoutSetMode=exclusive&ResourceListType=com.sapportals.wcm.SearchResultList&SearchType=ctrlpers&QueryString=*&rndLayoutSet=CustomLayoutSet&SelectedMatchesPerPage=15&SearchVisible=false
    In the custom Layout Set, we've made our own UI command group to include the following commands:  Search_from_here, details, copy, move etc…
    The problem is that whenever we click on the 'Copy'  or 'Move' command of a resource, we get the following error message:
    =====================================
    Item not found       
    The item you are attempting to access is not available. Check that the name or link is correct. You might also check whether the associated repository is currently accessible.     
    ======================================
    The error message in the KM log files simply states "ERROR: RID not found".
    Would anyone know how to fix this issue!  I've tried many layout sets, but the copy command always gives me the same error message!
    Any help or suggestions on this would be much appreciated...
    Thanks,
    Harman

    Hi Harman,
    yes, this is a known issue.
    It's fixed with NW04 SPS 13.
    Regards Matthias Röbig-Landau

  • Copy Command in Pl/Sql block

    Can I use Copy command in Pl/Sql.For example :-
    Declare
    cursor c1 is select table_name from all_tables
    where owner = 'LSP' and rownum = 1;
    v1 varchar2(2000);
    Begin
    for c2 in c1 loop
    v1:='copy from lsp/lsp123479@dvlaq to scott/[email protected] create '|| c2.table_name ||' using select * from '||c2.table_name;
    execute immediate v1;
    end loop;
    end;
    Its not running properly giving an error as invalid Sql statement .
    Is it bcoz Copy command cannot be used in a Pl/Sql Block.

    Is there any other way to move the Table & data to another Data Base .Database link is the obvious one. And the SQL statement would look something like this (on the target database):
    SQL> create table FOO nologging as select * from FOO@sourcedb;
    However, the first question I always ask if why? What one may think is the solution to a problem is not always the best solution. So one need to identify the problem first, and then see what solutions there are and which one is the best fit.
    Other options are replication (using materialised views for example), Data Pump (available with 10G) - even could be Data Guard, a standby database, or a Real Application Cluster... depending on just what the problem and actual requirements are.
    Also important to note that SQL*Plus has its own set of commands. Do not confuse these commands (like EXEC, COPY, CONNECT, HOST etc) with the SQL and PL/SQL Languages. Not only are they executed by different software products, SQL*Plus commands are executed on the client and SQL (and PL/SQL) runs inside the Oracle database instance.

  • Copy command in Sqlplus

    I am using 8.1.6 and 8.1.7, but the copy command does not seem to work on either cases, the sqlplus just crash, did you guys have the similar problem? Is it a bug in oracle or there is some parameter I need to set up correctly?
    Your help is highly appreciated.

    it works i tried
    null

  • Copy command in oracle

    hi how i can do this following in copy command-------------
    t1 t2
    id1 val1 id1 val1
    copy from user1/pass1@db1 to user2/pass2@db2 insert t2 using select *from t1
    now in my case i have some data in t2 in such a way that id1(tab2) and id1(tab1) are same but their value(here val1(tab2) and val1(tab1)) are different.
    as id1 is primary key in tab2 i cannot insert this matched values.
    now i want to do this checking in the copy command where tab1.id1<>tab2.id1

    hi
    Create DB link like
    CREATE DATABASE LINK local
    CONNECT TO hr IDENTIFIED BY hr
    USING 'local';
    Try to access or insert the rows in the remote table by using the following command
    insert into tab1 SELECT * FROM tab1@local where pkid not in ( select pkid from tab1);
    Regards
    Singh

  • Copy command in OEM

    Hi all,
    I have a "copy" command in batch file, I scheduled this batch file from OEM, it gave me an error that "Access Denied", I know that "copy" command won't work in this way after I did some research.
    Anyone have this problem before? if so how you make it work?
    or anyone know how to fix this?
    Thanks for your help!
    Floyd.

    You may have run into bug 1504702. As a workaround you will need to use command line, as you've already figured out. I don't think a patch is available for Windows yet, although there is for Solaris (in the 8.1.7.4 patch set).
    Alison

  • Copy command in SQL

    What is the Copy Command in SQL ?

    COPY Command is used to COPY database table from one Schema to another Schema.

  • COPY command in SQL*Plus 8.1.6 returns ORA-65535

    The COPY command in the windows version of SqlPlus (SQLPLUSW) does not work any more. I get the following error
    << Array fetch/bind size is 5. (arraysize is 5)
    Will commit after every array bind. (copycommit is 1)
    Maximum long size is 80. (long is 80)
    ERROR:
    ORA-65535: Message 65535 not found; product=RDBMS; facility=ORA >>
    Interestingly, I can run the same COPY command successfully if I use SQLPLUS.exe ( the command line version ). No error & it completes the copy.
    I recently changed my Oracle client from 7.3 to v8.1.6.
    I had not encountered this problem with the same command in v7.3.

    You may have run into bug 1504702. As a workaround you will need to use command line, as you've already figured out. I don't think a patch is available for Windows yet, although there is for Solaris (in the 8.1.7.4 patch set).
    Alison

  • How to configure host copy command inside EM Console

    hi,
    I want to copy a file from one server to my production server. i found that through host copy command its is possiable in command prompt.but when i configure host copy command inside em console it is not working. i am getting following error
    ORA-06550: line ORA-06550: line 3, column 6: PLS-00103: Encountered the symbol "COPY" when expecting one of the following: := . ( @ % ; , column :
    Any solution for this
    Edited by: mithun on Jun 16, 2011 2:36 AM

    mithun wrote:
    hi,
    I want to copy a file from one server to my production server. i found that through host copy command its is possiable in command prompt.but when i configure host copy command inside em console it is not working. i am getting following error
    ORA-06550: line ORA-06550: line 3, column 6: PLS-00103: Encountered the symbol "COPY" when expecting one of the following: := . ( @ % ; , column :
    Any solution for this
    Edited by: mithun on Jun 16, 2011 2:36 AMThis makes no sense whatsoever.
    Now, as for your original question, there is not "host copy" command. Not in sqlpus, not in em.
    What you are doing in sqlplus is the sqlplus command "host". That is a sqlplus command, documented in the SQLPlus Reference. The sqlplus command "host" takes an argument of an os command (in your case, the OS command is "copy") and creates a sub-process to ask the os to execute that command.
    I can't even imagine what you are referring to when you say "when i configure host copy command inside em console". Can you explain in more detail?

  • [svn:bz-trunk] 21277: Added ds-console source to package-oem and removed copy command for datavisualization .swc which doesn't exist in the specified location.

    Revision: 21277
    Revision: 21277
    Author:   [email protected]
    Date:     2011-05-18 11:35:28 -0700 (Wed, 18 May 2011)
    Log Message:
    Added ds-console source to package-oem and removed copy command for datavisualization.swc which doesn't exist in the specified location. I do not find it in the most recent package-oem.zip neither
    Modified Paths:
        blazeds/trunk/build.xml

    Gusar wrote:No, it's not. I have actually seen cases where software rendering gave a higher glxgears score than hardware rendering (and no, it wasn't about vsync). Of course, with *actual* apps on the same machine, software rendering sucked compared to hardware rendering.
    Please do not jump to conclusions and make assumptions here like 'when will people finally get it??'.  I never said it was a benchmark.  I have also seen many examples of where it's results do not go with conventional performance.  I have a Radeon 9000 that goes faster on glxgears than a Geforce FX 5600 running Nouveau.  Which is the faster card?  The FX by miles.  It is not a benchmark as it can not be compared between configurations.  What I know is that on this individual system, from prior experience over many years when 3D acceleration is working glxgears gets between 300 and 400 fps.  When it is not working it gets less than 10.  That is a fact but does not mean it is benchmarkable.  Yes, a Quake 3 timedemo (I have these numbers too and they very much correlate to glxgears performance for this system given just how slow it is) would be a benchmark but when it runs less than 0.1fps and even the 2D rendering means that navigating the menu is impossible, there just isn't the time to find out.  Hence if playing around with drivers on this system I would use glxgears to check that 3D acceleration is working but not to benchmark.  Glxinfo does not give you all this evidence.
    But to clarify, I wouldn't use glxgears as a benchmark, benchmarking is different and I do a lot of that too.

  • SQL*Plus 'Copy' command and LONG datatypes

    Hi. I'm using Oracle 9.2.0.5 and wanna copy LONG to LONG without using an Interface in VB or any other programming language.
    Some of the fields (plain text) are greater than 32 Kb, and I tried the SQL*Plus 'Copy' command, without success.
    (For compatibility reasons I can't convert LONG to CLOB, I need to copy LONG to LONG)
    This is the example I'm working with:
    Table Source_LONG (ID number, DATA long)
    Table Destination_LONG (ID number, DATA long)
    The SQL*Plus command: (connected from test_database@environment)
    set long 100000
    copy from test_database/test_database@environment insert destination_long (id,data)
    I tried using both FROM and TO, but same results.
    The fields are copied into destination_long, but they are
    truncated at 32768 bytes, even with the LONG variable set to 100000. Any ideas ?
    Thanks.

    I'm working with 2 similar tables with this structure:
    SOURCE_LONG (ID number, DATA long)
    DESTINATION_LONG (ID number, DATA long)
    SOURCE_LONG contains two rows:
    ID DATA
    1 hello
    3 ....text bigger than 32kb...
    I tried your solution and it insert 2 rows, but only the ID is filled. The DATA is empty in both cases :-(
    insert into destination_long(id,data) (select id,to_lob(data) from source_long);

  • Copy Command across dblink

    Hi, i am wanting to copy a few columns from a table in db1 into a new table in db2. I can get this to work using the copy command in sql, but would like to recreate this in pl/sql.
    can the execute immediate create over the dblink?

    it all depends on the amount of data you're trying move across two differen servers.
    when you say data, what's it? is it a table or schema?
    COPY - works fine.But, the data being transferred over network. If you have very good band width, you will be fine.
    SQLLDR - To do this, You have to unload the first and load it into different servers.
    You can even try export(exp) and Import(imp) or datapump export(expdp) and datapump import(impdp)

  • GPF in SQL*PLUS Copy Command?

    Hello,
    I'm getting a GPF and crash of SQL*Plus when I use the copy command. Seems like I used to be able to make it work if I tried logging on to the source database before the copy, but now even that won't work. I issue the command, it looks out over the modem for the remote database, then the GPF occurs.
    copy from me/[email protected] to me/me@LocalDB -
    insert ARRG_BNDRY_OBJECT -
    using -
    SELECT * FROM ARRG_BNDRY_OBJECT WHERE ARRG_BNDRY_KEY IN -
    (80169);
    Ideas?
    Thanks,
    Dale

    You might also want to try the same command using SQL*Plus command line (DOS version). If you haven't used it before, enter SQLPLUS at the command prompt, eg:
    c:\sqlplus
    Alison

  • Coppy commit while using copy command

    I am seeing the following message when I used Copy command in Oracle 9i.
    Array fetch/bind size is 15 (arraysize is 15)
    Will commit when done (coppycommit is 0)
    Maximum long size is 80 (long is 80)
    Could someone tell what does it mean and is there any harm with coppycommit being ZERO ? If so how we could change it ?
    DBA was telling the following:
    In using the copy command in oracle, not specifying 'arraysize' and 'copycommit' attributes for large records will blow up the rollback segment and return errors.
    thanks,
    Karna

    SQL> show copycommit
    copycommit 0
    SQL>
    SQL> set copycommit 5000
    SQL>
    SQL> show copycommit
    copycommit 5000
    SQL>
    SQL> show arraysize
    arraysize 15
    SQL>
    SQL> set arraysize 100
    SQL>
    SQL> show arraysize
    arraysize 100
    SQL>
    SQL> show long
    long 80
    SQL>
    SQL> set long 40000
    SQL>
    SQL> show long
    long 40000
    SQL>You rollback size must be in suitably sized for the type of work you are doing. A commit in batches may or may not avoid blowing the rollback segments. A commit in batches does not gurantee not to blowup the RBS.

  • Copy command error

    I made a selection and used edit>copy but get a Photoshop Elements Editor error message, "Could not complete the copy command because of a program error." What have I dobe wrong?

    I have the CD CLASSROOM IN A BOOK ADOBE PHOTOSHOP ELEMENTS 8, and when I 
    use the CD I get an opening screen as per the attached file scan001.jpg.
    So far I have not been able to figure out how to use the Lessons. When I 
    copy the Lesson folder to my hard drive, all I get when I open the Lessons
    are a  series of pictures. Is that all there is to this CLASSROOM?
    If there is more to this CD than just a series of pictures how do I access 
    the Lessons?
    In a message dated 1/29/2010 1:21:37 A.M. Central Standard Time, 
    [email protected] writes:
    Hi,
    Please provide more information like version of the product,  the file type
    you were working on and what exactly were you doing when you  encountered
    such error. To be precise, at what step you encountered such an  error.
    Thanks.

Maybe you are looking for

  • Fetch records from Database based on Input value

    Hi Experts, In my mobile application, I have designed one input field with F4 help or input assist. I need to fetch records from database based on that input and need to display records in table. My question is: How to fetch the records from database

  • Urgent Check Constraint Error

    hi i have a check constraint on a table B mean Nvl(Quantity,0)>=0 but when i update a table from a trigger on insertion of another table A with :New.Quantity -ive it gives check constraint error. Please Note it does not turn the balance into negative

  • Setting Preferences in bpel.xml

    Hi again, in the bpel.xml you can configure preferences for setting value pair properties that are defined in the deployment descriptor of a BPEL process and can be accessed at runtime by the BPEL process eg <BPELSuitcase> <BPELProcess id="test" src=

  • Contacts do not get synchronized

    Hi, I'm using PC-Sync to synchronize my 6110 Navigator with my Outlook 2003. The configuration of PC-Sync is set to transfer data only from my mobile phone to my PC, not both directions. This is working fine for calendar data and files.  However, for

  • E72* 22.007 - "System error" message when adding n...

    When I make wlan scan through home screen plugin I can choose a new wlan hotspot. After choosing it I'm being transferred to the web app and i can start browsing. The problem happens when I leave the web application. System error message appears on t