How to save terminal command as application

Does anybody know how to save this terminal command as an application? This is the command that I use to backup my computer, but it is annoying having to copy and paste it into terminal every time I want to use it. Here is the command:
sudo rsync -auE --progress / /Volumes/Backup
If I Paste this into terminal, it asks me for my password, then starts backing up. When I enter it into automator or applescript editor, there is an error. Thanks in advance!

I tried saving a shell script command in an Applescript but when I run the script, it runs but then I get a spinning wheel, as if the script is in an endless loop. Can someone clarify what I need to do?
My script:
do shell script "/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder & disown"

Similar Messages

  • How to save terminal command and output history to pdf on exit?

    When I exit a terminal session (terminal.app), I would like to automatically save the commands and output from the session to a PDF (or text file) as a reference. 
    I can do this manually in Terminal by selecting Shell --> Print... --> PDF --> Save as PDF...
    Unfortunately, I'm too forgetful to remember to do this each time before I exit. 
    Is there an alias I could set or some other method to automatically save the contents of my session to a PDF when I exit?
    Thank you in advance,
    jjw

    Frank,
    Your response was helpful, but I realized after looking at my .bash_history file that only the commands entered are listed, not the output.  I would like my commands to be printed out, but also the result from the commands (in this simple example, the directory listing):
    myuserid[~/galaxy-dist/tools]$ cd ncbi_blast_plus
    -------------------------------------------------------------------------------- ----------------------------------------------------- 09:48:37
    myuserid[~/galaxy-dist/tools/ncbi_blast_plus]$ ls
    blastxml_to_tabular.py   hide_stderr.py           ncbi_blastp_wrapper.xml  ncbi_tblastn_wrapper.xml
    blastxml_to_tabular.xml  ncbi_blastn_wrapper.xml  ncbi_blastx_wrapper.xml  ncbi_tblastx_wrapper.xml
    -------------------------------------------------------------------------------- ----------------------------------------------------- 09:48:38
    myuserid[~/galaxy-dist/tools/ncbi_blast_plus]$
    I'm thinking that there is an automator script or an alias that I could use so that when I type, "exit", the commands and output for the session would be sent to a PDF and then the session would close.
    I know it seems like an odd thing to want, but sometimes I'll forget the sequence of commands that gave me the correct output (plus, my command prompt has a timestamp on it, too).
    Thanks, though, for the .bash_history information.
    jjw

  • How to run Terminal commands in Xcode?

    Anyone knows how to include Terminal commands ( like sudo) in Xcode?  for example in a line of my program I need to run this:
    sudo open/Library/Preferences/com.apple.sharing.firewall.plist
    I searched the library but found no class or routine for that.

    Well, I am not a professional programmer, but one of the things I continue to learn is how to wade through all of the Cocoa documentation (and it does get deep in spots).  Chances are though, no matter what you are trying to do, Apple or some third party has created a class to make it easier - you just have to find it.  My Xcode documentation bookmarks continue to grow, but you might start with some of Apple's documentation, such as
    Cocoa Fundamentals Guide
    Foundation Framework Reference
    Application Kit Framework Reference

  • How to save CSV file in application server while making infospoke

    How to save CSV file in application server to be used as destination while making infospoke.
    Please give the steps.........

    Hi
    If you want to load your flatfile from Application server,then you need to trasfer your file from your desktop(Computer) to Application server by using FTP.
    Try using ARCHIVFILE_CLIENT_TO_SERVER Function module.
    You Just need to give thesource path and the target path
    goto SE37 t-code , which is Function module screen, give the function name ARCHIVFILE_CLIENT_TO_SERVER, on click F8 Execute button.
    for path variable give the file path where it resides like C:\users\xxx\desktop\test.csv
    for target path give the directory path on Application server: /data/bi_data
    remember the directory in Server starts with /.
    U have to where to place the file.
    Otherwise use 3rd party tools to connect to ur appl server like : Core FTP and Absolute FTP in google.
    Otherwise...
    Goto the T.code AL11. From there, you can find the directories available in the Application Server.
    For example, if you wanna save the file in the directory "DIR_HOME", then you can find the path of the directories in the nearby column. With the help of this, you can specify the target path. Specify the target path with directory name followed by the filename with .CSV extension.
    Hope this helps
    regards
    gaurav

  • How to save and  move an application

    Hi,
    I have made an application on Oracle Express. How to save and move that to another machine ?
    Many thanks.

    I'm in the process of porting my XE app to a 10.1 instance.
    I created an app export and export file of the schema. Then I installed a client on the same machine so I could connect and I get errors detailed in the end of this thread when attempting to import. Most of the tables are successful however, none of the procedural code goes in. The app export imported fine.
    Now, I can manually copy the objects that remain but only if I can connect to XE and this ability seems to have been lost with the install of the 10.1 client.
    Does anyone know how I can connect to XE using PLSQL Developer or is it indeed possible to connect to XE on a machine that is configured to also connect to a 10.1 remote server? I have installed the 10.1 client into a new Oracle home.
    . importing CODESPEED's objects into PRIMPATH
    IMP-00008: unrecognized statement in the export file:
    IMP-00017: following statement failed with ORACLE error 1950:
    "CREATE TABLE "FOLDER" ("FOLDER_ID" NUMBER NOT NULL ENABLE, "STAFF_ID_CREATE"
    "" NUMBER NOT NULL ENABLE, "STAFF_ID_MODIFY" NUMBER, "FOLDER_NAME" VARCHAR2("
    "100) NOT NULL ENABLE, "FOLDER_CREATED" DATE NOT NULL ENABLE, "FOLDER_MODIFI"
    "ED" DATE NOT NULL ENABLE, "FOLDER_NOTES" CLOB, "FOLDER_OWNER" NUMBER NOT NU"
    "LL ENABLE, "DRA_VERSION_ID" NUMBER, "ASSIGNED" NUMBER NOT NULL ENABLE, ""
    "UNASSIGNED" NUMBER NOT NULL ENABLE, "APPROVED" NUMBER NOT NULL ENABLE, "FOL"
    "DER_STATUS" VARCHAR2(1) NOT NULL ENABLE, "CODING_RULE_SET" NUMBER) PCTFREE"
    " 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FR"
    "EELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING NOCOMPRESS "
    "LOB ("FOLDER_NOTES") STORE AS (TABLESPACE "USERS" ENABLE STORAGE IN ROW CH"
    "UNK 8192 PCTVERSION 10 NOCACHE LOGGING STORAGE(INITIAL 65536 FREELISTS 1 F"
    "REELIST GROUPS 1 BUFFER_POOL DEFAULT))"
    IMP-00003: ORACLE error 1950 encountered
    ORA-01950: no privileges on tablespace 'USERS'
    IMP-00017: following statement failed with ORACLE error 2248:
    "ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL = 2 NLS_LENGTH_SEMANTICS = 'BYTE' PL"
    "SQL_CODE_TYPE = 'INTERPRETED' PLSQL_DEBUG = TRUE PLSQL_WARNINGS = 'DISABLE:"
    "ALL'PLSQL_CCFLAGS = ''"
    IMP-00003: ORACLE error 2248 encountered
    ORA-02248: invalid option for ALTER SESSION
    IMP-00000: Import terminated unsuccessfully
    C:\Documents and Settings\PWin>

  • How to save favorites in librivox application

    How to save favorites in the Librivox application on iPhone 5s?  Even the book currently in progress does not show anywhere and I have to search it every time.  It however, resumes from the place I left when I do find it in the search bar

    Hi soma let me know how we upload flat   files from application server in real time...i dont have real time experience

  • Save terminal commands?

    I use the terminal often for my java programing class and I was wondering if there is a way to save a certain command? I usually have a long annoying file path its a pain to type it to change the directory every time I load the terminal. Its not a big deal, but it would be nice if I could somehow save the command in a way to quickly get it back??
    Thanks in advance for your input

    There are several things you can do to make this work easier.
    File paths can be easily brought into terminal. Drag the file/folder that you want the path to onto the Terminal window. The path is entered automatically.
    If you have an entire command you have to retype, you can use the up arrow key to find it in your command history and then edit as needed and hit return.
    There are lots of other ways to do things in Terminal, but those are the ones I use most often. Another good idea would be to learn the various commands available in the shell you are using in Terminal. I use the bash shell (it says so at the top of my Terminal window) so a good reference for me can be found at http://www.gnu.org/software/bash/manual/bashref.html. I found this through Google. Presumably the other shells have similar references.
    Good luck. Hope this helps.
    PM G5, PB G4 17", iMac G5 20", iPod video 30GB, iPod Nano 1st Gen, iPod Shuffle 2nd Gen   Mac OS X (10.4.9)  

  • How to undo terminal commands

    ...sigh... being new to MAC I shouldn't have just assumed I could putz around and make changes like I used to with PC.
    So, I use Gradebook (I'm a teacher) and unfortunately, it's reliant on Java.
    So the other day I made the mistake of updating Java and it sent my world into a tailspin.  Gradebook suddenly stopped working.  It would just bounce in my dock but never open.
    Then I found out it was having issue with the new Java.  So I found instructions  to reverse the Java update  and go back to Java 6 here which required me to go into terminal and make changes:  http://support.apple.com/kb/HT5559?viewlocale=en_US
    I did that.  Now everyone claims that Gradebook fixed their issue with the new Java.  But I'm still having that bouncing then nothing problem.  So someone suggested I upgrade to Mavericks.  So I did... and when I re-tried Gradebook it told me I needed to download Java 6 for it to work, so I got excited thinking my problems were solved.  But nope... bouncing in the dock then nothing.
    Now I'm thinking those changes I made in Terminal are what the problem is.  So I googled how to remove those entries and I went into .bash and deleted them (kept a copy of what I was deleting though, just in case)  Didn't work.  So now I've read that I have to UNDO my changes and not delete them.  But I have no idea how to do that.
    This was my entire history in that .bash file:
    /Applications/Android\ File\ Transfer.app/Contents/MacOS/Android\ File\ Transfer ; exit;
    'lookupd -flushcache''lookupd -flushcache'
    'lookupd -flushcache'
    'lookupd -flushcache
    'lookupd -flushcache'
    /Applications/Gradebook.app/Contents/MacOS/JavaApplicationStub ; exit;
    sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
    sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
    sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled
    sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI .plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws
    sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
    sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
    sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled
    sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI .plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws
    sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo update_prebinding -root / -force
    sudo update_prebinding -root/-force
    exit
    sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws
    man sudo
    sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws
    The red are the ones I put in.  That blue one references Gradebook but I don't recall entering that.
    Help me please???   I'd really, really appreciate it! 

    There are instructions at the bottom of the page you linked to that tell you how to undo it.
    Editing the .bash_history file only removes commands from the recorded history, it doesn't undo them. Although doing that isn't going to cause any problems, it does reveal a tendency to fiddle with "arcane knowledge" without fully understanding it. That's very, very bad, as doing the wrong thing in the Terminal could easily cause irreversible damage to the system that can only be fixed by reinstalling. It could even lead to data loss.

  • How to clear terminal command history?

    Is it possible to clear the previous commands in terminal (up arrow key cycles through every entered line)?

    Hi, blankets.
    You wrote: "Is it possible to clear the previous commands in terminal (up arrow key cycles through every entered line)?"Yes. At the terminal prompt, type
    history -c
    and press Return.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How to save files into the application directory

    In Struts..i am using FileWriter to create a new file in struts..
    What path name shd be given for it be saved in Webapps/Application directory?

    You should get the context path first,then you can construct a absolute path for you destination file.To get the context path by the following way:
    public class TestInServlet extends HttpServlet{
         public void doPost(HttpServletRequest req,HttpServletResponse res){
                                               //The getRealPath() is deprecated.
              String ctxPath = req.getContextPath();
    }Regards,
    mauvespan

  • How to undo terminal Command ?

    Hey All ,
    I recently added a command to increase my magic mouse tracking but i would like to undo it, command is below.
    defaults write -g com.apple.scaling 5.0
    thank you

    First google hit agrees with Kappy. 1.0 is the default value. So to undo your damage, type:
    defaults write -g com.apple.scaling 1.0
    ...into the console. If you had written a longer, more complex command into the console, occasionally it helps to use up-arrow to go back to what you just wrote, and then edit it. In your case however you probably had to restart finder or logout/logon to make the change stick, right?

  • How to make Grid command or save grid preferences

    Hi there,
    long time user of macromedia / adobe suite with high use of fireworks
    Have finally got around to installing CS4, and its all very nice, but having trouble setting up the grid as a command.
    Previously in CS3, one could set the grid size via the drop down. But now one has to go to preferences to change the grid size.
    I used to use a command to change the grid size to cut down on workflow in CS3, but now I can't save the command steps in CS4 as they don't appear in the history panel.
    Anyone know how to save a command or change the preferences so that I can define something other than the standard (and painful) 36x36 grid? I only want a 10x10 grid *sigh.
    Thanks
    Dave

    Dave,
    (Sorry about the previous post - I would upload the command directly, but the forums seem to be having some problems, and I get an error every time I try to upload a file.)
    Here is a command to create a 10x10 grid.  Copy the following four lines of code and put them in a simple text file, save it, then rename it something like 10x10_grid.jsf.  It needs to have the .jsf file extension for Fireworks to understand it.
    fw.getDocumentDOM().setGridSize({x:10, y:10});
    fw.getDocumentDOM().setGridColor("#cccccc");
    fw.getDocumentDOM().setShowGrid(true);
    fw.getDocumentDOM().setSnapToGrid(true);
    Put the file in the Commands folder of your personal Fireworks settings. On a Windows XP PC this should be something like:
    C:\Documents and Settings\<USERNAME>\Application Data\Adobe\Fireworks CS4\Commands
    The next time you start Fireworks it will appear in the bottom section of the Commands list from the main menu.  You can edit each line of the command to change the grid size, grid color, and whether or not to show the grid and use snap to grid.
    Hope this helps.

  • Terminal Command, how to set defaults write, make application(s) use directory path where file last saved?

    Does anyone know whether there's a terminal command to make all applications remember/use the last directory/path where I last saved a file?
    For example, let's say there are (10) ten PDF's on a website, and I want to use Preview.app to open and save each file to the same directory.
    Problem is, after each time I save a file, Preview.app doesn't automatically remember/use the last directory where I saved my file(s).
    Forcing me to navigate back to the same directory after each time I save a file; super-annoying.
    But, for some reason, when saving images from the web, Firefox remembers the last directory where I saved the file (jpeg).
    So I'm hoping there's some way, possibly a terminal command to set/force all applications (including Preview.app) to remember/use the directory/path where file(s) were last-saved.
    Anyone?

    Get the third-party utility Default Folder X 4.4.9.

  • HT2370 How do I enable/activate/save line commands to host file?

    I'm a newbie to terminal and I am trying to add lines to block a few websites, I successfully used the sudo nano command for the host file but I have no idea how to "save" my modified (added) lines to the file so that it is activated. Help?? I currently running Yosemite.

    Go to Options>Applications tab > search MPEG Layer 3 audio(audio/mpeg) > use "Save File" option on drop down menu.

  • How to save a fmb in the database thru command prompt?

    Hi,
    How to save a fmb in the database thru command prompt?
    I have around 25 fmb template files which needs to be saved in the database.Every time when we apply the new dump , we need to resave the templates in the database to compile other application related fmb files.Its a time consuming process and Monotonous for me. Is there anyway to save the forms in the database thru batch file, so that just I have to execute the batch file every time.
    Expecting your earliest feedback.
    Thanks & Regards,
    G.S -
    [email protected] / [email protected]

    Hi Frank,
    Thanks for your feeback.
    I am using forms6i.Basically our application was migrated from 4.5 to 6i two years back. Due to some reasons our technical team members are insisting us to store the template FMB's into the database to do the coding activities at site.
    Once in a month we are receiving the live dump for test database.Hence the problem.
    Please suggest the easiest way to store the template FMBs in the database.
    Thanks & Regards,
    G.S

Maybe you are looking for

  • Recording tv shows from dvr to my pc

    I have a brighthouse DVR and want to record some of the show's from it,I have a HP 9500y pc equiped with burnning/labaling abilty but no idea how to hook them together,or if it's even possible. any info would be great thanks

  • Link color won't use 'default'

    Hi, I've used a DW template and built my pages from there.   Several links on all pages in different colors.   When designing, the proper color chosen, does show.  When I go to Page Properties to make the link categories (rollover, viewed, etc.) the

  • How to set wireless security for Officejet Pro L7750 printer?

    Hi there. I connected Officejet Pro L7750 to wireless broadband router and all is well. Only problem is that all computers on the network can install the drivers and connect to the printer. How do I limit the printing capabilities only to 2 computers

  • Error while doing Repair Full Req on ODS

    HI ALL, I am trying to load the data in the ODS starting from 2005 to July 2009 through a Repair  Full Req loads. Data source is 2lis_11_vaitm. I have splitted the loads and wheni try to run the Repair Full Req load into ODS its throwing error in sou

  • Adding Business Partner as Partner Funcation in Case Managment

    Hi, Happy new year to all, I am working on migrating an old PCUI applications to the new web client under CRM 6.0 /2007. Our applications developed using CRM Case Management. Since,  Case Management does not support partner determination we had to co