Help to make script

I would like to run this command:
sudo rsync -avzp --progress --delete --exclude=/root --exclude=/var/tmp/kde* --exclude=/proc --exclude=/home --exclude=/media --exclude=/var/cache/pacman --exclude=/tmp/* --exclude=/lost+found --exclude=/var/backup --exclude=/mnt --exclude=/usr/man --exclude=/var/abs --exclude=/sys / /media/extra/backup/archbackup
But make a script so it asks me what the destination ("/media/extra/backup/archbackup" above) will be. Any help appreciated, thanks

You could make a bash script called "backup" and call it using "backup <directory>" and use
sudo rsync -avzp --progress --delete --exclude=/root --exclude=/var/tmp/kde* --exclude=/proc --exclude=/home --exclude=/media --exclude=/var/cache/pacman --exclude=/tmp/* --exclude=/lost+found --exclude=/var/backup --exclude=/mnt --exclude=/usr/man --exclude=/var/abs --exclude=/sys / $1

Similar Messages

  • Please help explain the error "Can't make «script» into type Unicode text"

    i am writing an applescript for my eyetv installation that handles recorded shows. i have posted in their forums, without reply, so thought maybe i could get some understanding of the technicalities of the fault to try to fix myself!!
    i have a sub-routine:
    to deleteeyetvrecording(theRecordingID)
    set theScriptLibrary to load script file "Macintosh HD:Library:Scripts:ScriptLibraryv1.scpt"
    tell application "EyeTV"
    theScriptLibrary's log_event("RecordingDone", "Deleting EyeTV recording: " & (get title of theRecordingID), 2)
    try
    delete theRecordingID
    on error theErrorMessage number theErrorNumber from theErrorObject
    theScriptLibrary's log_event("RecordingDone", "deleteeyetvrecording: " & theErrorNumber & ": " & theErrorMessage & ". Object: " & theErrorObject, 2)
    end try
    end tell
    end deleteeyetvrecording
    even though the line above the error works fine and retrieves the Title property of the eyetv recording, the delete command on the next line outputs to the log file:
    Sunday, October 26, 2008 09:50:51 [ 1 ] Error deleting file (4/4): -1700: Can’t make «script» into type Unicode text.
    what does this error mean? what syntax changes are needed?
    note this sub-routine worked in v1 of my script - i only copy and pasted it to the v2 script! go figure!
    regards
    jingo_man

    Hello
    Without knowing what theRecordingID is, how deleteeyetvrecording() is called and what the actual code of log_event() is, I can only guess.
    The said error log is most likely not written by the code in the try block you provided, which should throw error by itself when theErrorObject cannot be coerced to string. I'd guess you have an enclosing try block where you call deleteeyetvrecording() and the said error log comes from there.
    As far as I can tell, you should not assume that you can always coerce theErroObject (that is obtained from 'from' parameter of 'on error' statement) to text.
    Too little information to go any further.
    H

  • Need help in creating script for "Task Schedule" in Oracle E-Bussiness Suit

    Hi,
    I need some urgent help regarding the scripting of Oracle E-Business Suite application. I am new towards working on Oracle Applications. I have been using LoadRunner 11.0 and protocol oracle applications 11i for the scripting of the application. The problem is as follows:
    Scenario- Schedule an incident to a resource.
    1) Log in to the application.
    2) Open Oracle Forms Page.
    3) Enter the details of the incident number.
    4) Right click on the incident number and then select “schedule” option.
    5) Check / Select the resource listed in the new form.
    6) Click on “schedule” Button.
    7) Exit the oracle forms.
    8) Logout from the application.
    I have recorded the scenario but when I try to run the script, it fails after completing the 4th step from the scenario mentioned above. I have done all the required co-relations..
    Another issue that I have noticed in the scipt is that it records a lot of requests to the AppsTCFServer.
    When I check the Tree View of the script, I have found that there are around 25 requests to the AppsTCFServer recorded in the script. In the header of these requests a TCF Start/Session number gets generated randomly. This number stays the same in few AppsTCFServer request headers and then a new number gets generated and the cycle continues.
    However LoadRunner does not generate this number by itself during replay. I cannot find this number in any previous responses.
    In the last few days, I have tried my hands on Oracle Openscript tool to record the above scenario, but still I am getting the same problem, i.e instead of getting the correct response from the server for the AppsTCFServer requests, I am getting the message "X-session 7098.... not found - aborting ".
    I get this message whether I use LoadRunner tool or the OpenScript tool.
    Please help me solve this issue.
    Thanks & Regards,
    Soumya Mukherjee

    This isn't much of a "code-sharing" site but a "knowledge-sharing" site.  Code posted me may be from a questioner who has a problem / issue / error with his code.   But we don't generally see people writing entire scripts as responses to such questions as yours.  There may be other sites where you can get coding done "for free".
    What you could do is to write some of the code and test it and, if and when it fails / errors, post it for members to make suggestions.
    But the expectation here is for you to write your own code.
    Hemant K Chitale

  • Need help in Java Script

    i Need some help in Java Script,
    am using the following code :
    <script type="text/javascript">
    var newwindow;
    function poptastic(url)
    newwindow=window.open(url,'name','height=300,width=400,left=100, top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
    if (window.focus) {newwindow.focus()}
    else {newwindow.close()}
    //     if (window.focus) {newwindow.focus()}
    </script>
    In HTML,
    thWorld Environment
    Day, June 5<sup>th</sup>,2005
    Am using onmouseover event, so that when my mouse in on the link, popup is opened....and when my mouse is out of the link, the new window should b closed....
    but according to the above code, the new window is opened but have to close it manually....
    Is there any other way to close the popup when my mouse is out of the link

    Prawn,
    This is not really a good way to make friends. With the cross posting and the posting in a wrong forum anyway thing you have going.
    Please kindly take your question to an appropriate JavaScript forum.
    Have a happy day.
    Cross post from http://forum.java.sun.com/thread.jspa?messageID=3797201

  • Hi Experts.. How to make scripts & SmartFrom Unicode enable

    Hi Experts..
    How to make Scripts & Smart From Unicode enable? i know for scripts we need to check with driver program & 
    For smart from we need to check the generated function module. Correct me if am wrong. 
    I wanna to know how to make layouts & from Unicode conversion....or enable??
    Thanks In Advance
    Santosh.S
    Points for sure ...

    Hi Donghai,
    Have you tried using the command
    CHAIN ENDCHAIN.
    Try displaying the message for te field you wish to within CHAIN and ENDCHAIN which will allow you to enter the data in the field even after the error message is displayed.
    Caution: Mention all the field names in CHAIN and ENDCHAIN which you want to be open for enterin the values into it.
    Thanks and Regards,
    Kunjal Patel

  • Need a Free designing program. for example: something to help me make shirt

    Need a Free designing program. for example: something to help me make shirt graphics, posters, and other designs. i do not think my mac came with any such program. i have ilife 08 but i dont think anything there can help me?

    Got to VersionTracker or MacUpdate and search.

  • Help in DELETE script

    Hi, I have duplicate records and want to delete any 2nd duplicate row. Please help in DELETE script.
    Select * from cmhrec
    Sr_no  code    date     charge   Charge2 Code_ID
    1        AAA   1-1-2014  24.0      24.0      5
    1        AAA   1-1-2014  24.0      24.0      9
    2        AAA   1-1-2014  23.0      23.0      4
    2        AAA   1-1-2014  23.0      23.0      11
    3        AAA   1-1-2014   26.0      28.0     12
    3        AAA   1-1-2014   26.0      28.0     19
    --Desired output after deleting any 2nd duplicate row.
    Sr_no  code    date     charge   Charge2 Code_ID
    1        AAA   1-1-2014  24.0      24.0      5
    2        AAA   1-1-2014  23.0      23.0      4
    3        AAA   1-1-2014   26.0      28.0     12

    Thank you
    You can simply do this
    DELETE t
    FROM cmhrec t
    WHERE EXISTS
    SELECT 1
    FROM cmhrec
    WHERE SrNo = t.SrNo
    AND Code = t.Code
    AND Code_ID < t.Code_ID
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Required help in useradd script

    friends i need help in a script i want to creat a script that adds 50 users
    but there is a problem i dont know how to assigne the passwords to the
    users in the script if some body know's about this please give me usefull
    information.
    REGARDS.
    ASIf

    Use Expect. Search google for "expect unix".

  • Is there any tool to help you make it a decision as to the quality of any particular app ?

    Is there a tool to help you make a decision on purchasing different apps from the App Store ? So categories have hundreds and hundreds of choices?

    Apps have reviews.  Check the reviews from the public and get a sense of quality from them.

  • My MacBook (10.5.8) is very slow and has significant problems loading will Snow Leopard (10.6.3) help or make my computer slower?

    My MacBook (10.5.8) is very slow and has significant problems loading will Snow Leopard (10.6.3) help or make my computer slower?
    Also why does my Macbook make so much noise (The noise concerns me because it is so loud it sounds like the laptop will break down or something at any point)?

    It depends on your Macbook model how to open the bottom case.
    Anyway you need to open up the buttom case or keyboard panel to access the CPU fan like following.
    https://www.youtube.com/watch?v=3hHA4DDEvZA
    http://www.ifixit.com/Guide/MacBook+Core+2+Duo+Lower+Case+Replacement/537
    If you think you can't do that by yourself, you'd better bring it to Apple Store Genius Bar or Authorized Servce Shop to tell them about the problem.

  • I need help writing a script that finds the first instance of a paragraph style and then changes it

    I need help writing a script that finds the first instance of a paragraph style and then changes it to another paragraph style.  I don't necessarily need someone to write the whole thing, by biggest problem is figuring how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thanks!

    Hi,
    Do you mean first instance of the paragraph style
    - in a chosen story;
    - on some chosen page in every text frames, looking from its top to the bottom;
    - in a entire document, looking from its beginning to the end, including hidden layers, master pages, footnotes etc...?
    If story...
    You could set app.findTextPreferences.appliedParagraphStyle to your "Style".
    Story.findText() gives an array of matches. 1st array's element is a 1st occurence.
    so:
    Story.findText()[0].appliedParagraphStyle = Style_1;
    //==> this will change a paraStyle of 1st occurence of story to "Style_1".
    If other cases...
    You would need to be more accurate.
    rgds

  • Need help writing a script

    I am trying to convert my prcess from DTS to SSIS. I am running this report out of SAP and then using Monarch to put into the correct form, then I am using the DTS to put it into the database on the SQL server.  I am able to get all the other info to
    move out having so much trouble here to get the plant number. The issuse is that it is on top on the page and it will change when a new plant is needed.
    Thanks for any help
    I need help wrting a script that will put that 7010 into a cloumn nnamed plant number.

    To convert from DTS packages to SSIS you can just open the DTS package in a new SSIS project (depends on target SSIS version by using SSDT or BIDS).
    The rest is mechanics how the iteration with SAP is done and may be beyond the scope of this forum.
    Arthur
    MyBlog
    Twitter

  • Help in Calculation Script

    I need your help in calculation script: Using 9.3.1 version
    In below script , I have to write same code for total 10 account members used in the same place A and all 10 accounts members are level 0 children of 1 parent.
    A = A + B / C*D
    I need to write a code where 10 Account members can be used during calculation in place of A.
    Please can you help me on this query .. How to achieve this requirement ...
    Regards
    Vishal

    Using my Very Favorite Essbase Database In The Whole Wide World, aka Sample.Basic, I wrote the following nonsense code snippet:
    FIX(@RELATIVE("Profit", 0), @LEVMBRS("Product", 0), @LEVMBRS("Market", 0), @LEVMBRS("Year", 0))
         "Actual" = "Actual" + "Actual"->"Opening Inventory" / "Actual"->"Additions" * "Actual"->"Ending Inventory" ;
    ENDFIXDon't focus on why you would never ever want to do the above with inventory, just look at the code.
    The code does work.
    Before:
              100-10     New York     Actual
    Jan               Sales     679          
                   COGS     271          
              Margin     408          
                   Marketing     94          
                   Payroll     51          
                   Misc     0          
              Total Expenses     145          
         Profit     263          
              Opening Inventory     2101          
              Additions     644          
              Ending Inventory     2066          After
              100-10     New York     Actual
    Jan               Sales     7419.164596          
                   COGS     7011.164596          
              Margin     408          
                   Marketing     6834.164596          
                   Payroll     6791.164596          
                   Misc     6740.164596          
              Total Expenses     20365.49379          
         Profit     -19957.49379          
              Opening Inventory     2101          
              Additions     644          
              Ending Inventory     2066          I can't remember if your to be affected members are under a common parent or not. If the latter, use a UDA to go after the members.
    Oh yes, this code violates one of my personal design considerations -- it modifies the source data so it can only be run once. That is really dangerous but the choice is yours.
    Regards,
    Cameron Lackpour

  • Could you please help me make this query less complicated

    could you please help me make this query less complicated
    select t1.R_OBJECT_ID
    from dm_relation_sp a, ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID
    union all
    select t3.R_OBJECT_ID
    from ddt_resolution_sp t3
    where t3.R_OBJECT_ID in (select t2.child_id
    from dm_relation_sp t2
    where t2.parent_id in (select a.child_id
    from asud_fsk.dm_relation_sp a, asud_fsk.ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID))
    union all
    select t4.R_OBJECT_ID
    from ddt_resolution_sp t4
    where t4.R_OBJECT_ID in(
    select t3.child_id from dm_relation_sp t3
    where t3.parent_id in (
    select t2.child_id
    from asud_fsk.dm_relation_sp t2
    where t2.parent_id in (select a.child_id
    from asud_fsk.dm_relation_sp a, asud_fsk.ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID))
    and t3.relation_name = 'RESOLUTION_RELATION')
    union all
    select t5.R_OBJECT_ID
    from ddt_resolution_sp t5
    where t5.R_OBJECT_ID in
    (select t4.child_id
    from dm_relation_sp t4
    where t4.parent_id in(
    select t3.child_id from dm_relation_sp t3
    where t3.parent_id in (
    select t2.child_id
    from asud_fsk.dm_relation_sp t2
    where t2.parent_id in (select a.child_id
    from asud_fsk.dm_relation_sp a, asud_fsk.ddt_resolution_sp t1
    where a.parent_id = '0900000283560456' -----------ID
    and a.child_id = t1.R_OBJECT_ID))
    and t3.relation_name = 'RESOLUTION_RELATION')
    and t4.relation_name = 'RESOLUTION_RELATION')
    Edited by: user13025450 on 29.04.2010 16:23

    Hi,
    Welcome to the forum! You'll find that there are many qualified people (such as Tubby) willing to help you. Will you do what you can to help them? In order to simplify the query you posted,someone will first have to understand what it does, what the tables that it uses are like, and what tools you have to work with (that is, what version of Oracle, and any other software you are using). To actually test their ideas, people will need versions of your tables.
    Many people, if they spent enough time, might be able to figure out roughly what you are doing, make some tables themselves and test a solution. You can help with all of that. I assume you already know what the appliction is, and what this particular query is supposed to do: you don't have to figure out any of that, you just have to say it. You know what all your tables are, what the datatypes of all the columns are, and what kinds of data are in the tables: you don't have to guess at any of that.
    Describe what you're doing. Think about it: how do we know that
    SELECT  NULL
    FROM    dual;doesn't do what you want?
    Post CREATE TABLE and INSERT statements for a little sample data.
    Post the results that this query is supposed to produce from those results. (Is it producing the right output now? Then it should be easy to post the correct results.)
    Describe, as well as you can, how the present query is doing it.
    Format your existing code, so it's easy to see what the different branches of the UNION are, and what the main clauses are in each one.
    When posting formatted text (code or results) type these 6 characters
    \(all small letters, inside curly brackets) before and after each formatted section, to keep this site from compressing the spaces.
    Say what versions of Oracle (e.g. 10.2.0.3.0) and any other relevant software you are using.
    I know it's a lot of work, but it really helps. You can do it as well (probably better) than anyone else, and if you're unwilling to do it, why should anyone else be willing?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • When extending my wifi network using an Extreme as my main and an Express to extend.. does it help to make sure that both devices are on the same channel or does it even make a difference if they are on different channels?

    when extending my wifi network using an Extreme as my main and an Express to extend.. does it help to make sure that both devices are on the same channel or does it even make a difference if they are on different channels?

    Have you even tried the process in which i have described in my previous post?
    Yes, many times.  If you are setup to "extend a wireless network, the screen looks like this:
    If you click the Wireless Options button, the screen looks like this:
    Where is it on this screen that you see a setting to adjust the channel?  It sounds like you are confusing "create a wireless network"....which does allow you to adjust channels.....with "exend a wireless network" which does not.
    Normally, when you extend a wireless network, AirPort Utility used to always assign the same channel to the extending device. That is no longer the case. It might be the same, or it might be different.  You have no control over this, so you have to accept what AirPort Utility thinks is best.

Maybe you are looking for

  • Sat M40-236 Blue Screen of Death

    Just a few days ago i've bought Toshiba Satellite M40-236. I disliked the pre-installed Windows XP Home Edition and installed Windows XP Pro with SP2 integrated. Afterwards i installed all the drivers provided and advised by Toshiba from: http://eu.c

  • CLIENT SIDE TRACING IN SQL*NET V2

    제품 : SQL*NET 작성날짜 : 1997-10-10 Client Tracing ~~~~~~~~~~~~~~ 1) Set the environment variable TNS_ADMIN to the directory where the tnsnames.ora and listener.ora files exist. The default location is $ORACLE_HOME/network/admin. Set $TNS_ADMIN to this if

  • Vendor Upload by conversion program

    HI Experts , I am uploading vendor master data by conversion program , in that due to 1 field in Control data(customer - KUNNR ) I am unable to upload vendor. In this field when i give the customer number which is already referenced for another vendo

  • Help, Discoverer Viewr Error 404

    Hello, I have a problem. When I starting Discoverer Viewer\Plus (http://host.domain:port/discoverer/viewer) with httpServer,Agent etc. started appears error: HTTP 404 Page not Found. but the page http://host.domain:port appear correctly! Why ? Excuse

  • Update available to address iFrame and button issues

    We just released an update to the DPS tools that addresses the issues around HTML/iFrame and buttons in release 25. You can download the updated components by following the links at http://www.adobe.com/go/learn_dps_install_en. Neil