Shell Script - Need to Open terminal and Print output?

Hi All,
I have a script to update a git version of a software, but I would like to be able to check the output of the script in a terminal.
So in a nut shell, I want when launching the script:
- Terminal to Open
- All command to be executed in the terminal
- Terminal to close only if no error (do not know if it's possible?)
See below my very simple script:
Many thanks in advance for your time and advice,
rm -r /home/sweetth/banshee &&
cd /home/sweetth &&
git clone git://git.gnome.org/banshee &&
cd /home/sweetth/banshee &&
./autogen.sh &&
make

Right,  I manage it differently
So I got my script to dl those PKGBUILD for those Ipod library needed for the latest Banshee, then dl the latest banshee git and "make" it.
for those who might be interested to keep their banshee-git update:
#!/bin/bash
xterm -hold -e "mkdir ~/libpod;
cd ~/libpod;
mkdir ~/libpod/gtk-sharp-beans-git
cd ~/libpod/gtk-sharp-beans-git
wget http://aur.archlinux.org/packages/gtk-sharp-beans-git/gtk-sharp-beans-git/PKGBUILD;
wget http://aur.archlinux.org/packages/gtk-sharp-beans-git/gtk-sharp-beans-git/autogen_fix.patch;
makepkg -s;
mv gtk-sharp-beans-git** ~/libpod;
cd ~/libpod;
rm -rf ~/libpod/gtk-sharp-beans-git;
mkdir ~/libpod/gio-sharp-git;
cd ~/libpod/gio-sharp-git;
wget http://aur.archlinux.org/packages/gio-sharp-git/gio-sharp-git/PKGBUILD;
makepkg -s;
mv gio-sharp-git** ~/libpod;
cd ~/libpod;
rm -rf ~/libpod/gio-sharp-git;
mkdir ~/libpod/gkeyfile-sharp-git;
cd ~/libpod/gkeyfile-sharp-git;
wget http://aur.archlinux.org/packages/gkeyfile-sharp-git/gkeyfile-sharp-git/PKGBUILD;
makepkg -s;
mv gkeyfile-sharp-git** ~/libpod;
cd ~/libpod;
rm -rf ~/libpod/gkeyfile-sharp-git;
mkdir ~/libpod/gudev-sharp-git;
cd ~/libpod/gudev-sharp-git;
wget http://aur.archlinux.org/packages/gudev-sharp-git/gudev-sharp-git/PKGBUILD;
makepkg -s;
mv gudev-sharp-git** ~/libpod;
cd ~/libpod;
rm -rf ~/libpod/gudev-sharp-git;
mkdir ~/libpod/libpod-sharp-git;
cd ~/libpod/libpod-sharp-git;
wget http://aur.archlinux.org/packages/libgpod-sharp-git/libgpod-sharp-git/PKGBUILD;
makepkg -s;
mv libgpod-sharp-git** ~/libpod;
rm -rf ~/libpod/libpod-sharp-git;
cd ~/libpod;
sudo pacman -U gtk-sharp-beans-git** gio-sharp-git** gkeyfile-sharp-git** gudev-sharp-git** libgpod-sharp-git**;
rm -rf ~/banshee;
cd ~;
git clone git://git.gnome.org/banshee;
cd ~/banshee;
./autogen.sh;
make;
rm bin/Banshee.NotificationArea.dll*"

Similar Messages

  • What shell script found in /usr/sbin and /usr/bin in OS X made out off?

    What shell script found in /usr/sbin and /usr/bin in OS X made out off?
    thanks.

    You may have to provide more detail on what you're wanting to know if this doesn't answer your question.
    Shell scripts are just text files. You can create or open them with any text editor. They are executed by one of the command interpreters (such as sh, bash, csh, etc) or by a language interpreter (like perl or ruby). However, many of the items in the directories you mention are not shell scripts but rather binary executables. These are executed by the OS.
    You can use something like this to show you which are which:
    file /usr/bin/*
    Steve

  • CS5 Extremely Slow to Open, Save and Print

    We have recently installed InDesign CS5.  We are experiencing extreme slowness when open, saving and printing documents.  We have installed on Windows XP Service Pack 3.  I have upgrade to 7.0.3 to no avail.  Has anyone else experienced this?  If so, were you able to resolve it?

    pooh071567 wrote:
    I can create and save new CS5 files fine both to the desktop and the network.  I tried copying our existing files to the desktop to see if there was a network issue.  It is also extremely slow to open from the desktop.  I'm beginning to wonder if it is our documents.  They were created in CS3.  I tested one that was 2 pages of text with a few graphics.  It took a considerable amout of time to open.  I made some edits to it and saved it to the desktop.  I would have thought that saving it in the new CS5 format would have improved the slowness.  It did not.
    I was on a support call with Adobe yesterday for 2 1/2 hours.  To say it was extremely frustrating is an understatement.  They have asked me to re-download the install, uninstall and reinstall.  I did not re-download, but did uninstall and reinstall from the EXE we have.  Slowness is still an issue.  I'm inquiring regarding our antivirus, however, I don't think that is the issue.  We were able to open files in CS3 just fine.  It seems to be since the upgrade to CS5 that we are having issues.
    Whenever you contact anybody's tech support:
    * Get the name of the tech, and any other identifying info
    * Get a case number
    * Explain your question/problem briefly; begin by saying, "I'm going to explain my problem briefly. Before we spend lots of time on it, I'll ask you if you have expertise in this particular area. I don't mean to be rude, but if you don't have sufficient expertise here, we'll both waste our time. If this isn't OK with you, I understand; we all have strong and less-strong areas. If you don't have the expertise, please give me the name of someone who has the the greatest amount of the expertise needed to solve the problem, and then transfer me to that person. If you can't do this, please give me your supervisor or manager's name, and transfer me to that person. Would you like me to state my problem briefly, now, so that we can go ahead?"
    * If you have the slightest inkling that you're being told to do wasteful things like re-download, uninstall and reinstall, ask the tech, "Is this a known fix for my problem? If it's not, why are you asking me to do this?" (Some techs suggest these steps to get you off the line and move on to another call, either because their call clearance rate is slipping, and that's how many are paid. Others suggest them because they don't have the expertise to solve the problem.)
    * If you're transferred to a manager or supervisor, summarize why you asked for him or her. Then, ask the manager to transfer you to the highest-skilled person for the problem you'll now explain briefly. If the manager/supervisor balks, ask for the highest-level person in the department, or the division. IOW, ESCALATE (use that word, when asking to change people.)
    It's not the customer's job to teach customer service folks to serve customers, but we're the best ones to teach them now NOT to do it.
    Now, if you don't have the expertise to do these things, please give me the name of your superior, so I can escalate this matter, and then connect me to that person!
    Seriously,
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • I just downloaded a pdf form and need to open it and fill in blanks but can't figure ohow to find the file

    I just downloaded a pdf form and need to open it and fill in blanks but how can I find the file in Adobe so I can open it??
    Thank you in advance.

    Hi Steve Odem,
    If you downloaded the file from a web page, it most likely went into a Downloads folder on your computer. If you don't know where that folder is, the easiest thing to do may be to use the Find feature of Mac OS or Windows (whichever you use), to search for the PDF form. Once you know where the file ended up, you can easily navigate to that folder in Reader. (Choose File > Open in Reader, then navigate to the file in the Open dialog box.)
    Please let us know if you have additional questions.
    Best,
    Sara

  • Trying to turn off spotlight because it's a resource hog.  open terminal and enter command but it won't respond or even ask for password.

    trying to turn off spotlight because it's a resource hog.  open terminal and enter command but it won't respond or even ask for password.

    Step #1:
    In System Preferences click on Spotlight.
    Step #2:
    Click on the Privacy tab here.
    Step #3:
    Click on the + button here and when the window opens click on "Macintosh HD" (or whatever you've named your HD) and then click the Choose button.

  • I use a PC - I need to open ai and eps files - what adobe program do I need to purchase?

    I use a PC - I need to open ai and eps files - what adobe program do I need to purchase?

    You need Illustrator to open .ai files. That is, if you want to edit them.
    If you just need to place them, then tell us what you want to do with the files.

  • Bash script "open terminal and launch command

    I need a script to do this:
    launch a terminal, from this change working directory and then launch a command; the terminal have to remain opened after the command execution.
    Something like:
    $terminal cd $dir && $command
    If I open a terminal and I do:
    cd $dir && $command
    it works
    If I do a .sh script with this:
    xterm -hold -e cd $dir && $command
    or
    terminal -H -x cd $dir && $command
    when I launch it (the script) it doesn't work.
    Last edited by buntolo (2012-01-05 23:44:52)

    karol wrote:
    xterm -hold -e "cd ~/test/ && ls"
    works too.
    I don't know what $command do you mean, but this will list th ~/test directory.
    It works also for me.
    With urxvt and xfce4-terminal don't work.
    But xterm is too minimalist, is there an advanced terminal based on it?
    And I don't unerstand why it doesn't work for xfce4-terminal but for it does for xterm...
    man xfce4-terminal:
    -H, --hold
    Causes the terminal to be kept around after the child command has terminated
    -e, --command=command
    Execute command inside the terminal
    man xterm:
    -hold
    Turn on the hold resource, i.e., xterm will not immediately destroy its window when the shell command completes. It will wait until you use the window manager to destroy/kill the window, or if you use the menu entries that send a signal, e.g., HUP or KILL.
    -e program [ arguments ... ]
    This option specifies the program (and its command line arguments) to be run in the xterm window. It also sets the window title and icon name to be the basename of the program being executed if neither -T nor -n are given on the command line. This must be the last option on the command line.
    What the ...?
    Is only my opinion that there aren't differences between:
    terminal -H -e "cd $dir && $command"
    and
    xterm -hold -e "cd $dir && $command"
    Last edited by buntolo (2012-01-06 13:11:58)

  • Open Terminal and Run Commands

    Hi I have to ping several IP adresses on a regular basis. Therefore I would like to create an Applescript application that will run terminal and ping the specified IPs so that I can see the results. Any ideas on how to best complete this?

    This script will prompt you to enter the number of times you want to ping each server. You'll need to specify the servers to ping in the "set serverAddresses..." line. It writes the results of each ping to a text file on your desktop and opens the file when finished. The next time you run the script if the text file exists it deletes it first.
    set theDesktop to (path to desktop)
    set serverAddresses to {"www.microsoft.com", "www.apple.com", "www.cnet.com"}
    set pingTimes to text returned of (display dialog "Ping each server how many times?" default answer "1" giving up after 10)
    tell application "Finder"
    if exists file (theDesktop & "ping replies.txt" as string) then
    delete file (theDesktop & "ping replies.txt" as string)
    end if
    set fileID to (open for access file (theDesktop & "ping replies.txt" as string) with write permission)
    repeat with aServer in serverAddresses
    try
    set pingReply to (do shell script "ping -c " & pingTimes & " " & aServer)
    on error
    set pingReply to "No reply from server " & aServer
    end try
    write (pingReply & return & return & "########################" & return & return) to fileID
    end repeat
    close access fileID
    open file (theDesktop & "ping replies.txt" as string)
    end tell
    Robert

  • [solved] script/keybinding to launch terminal and run command

    the answer is probably simple. but here's the idea.
    i use cmus as my music player. at the moment, i have to open a terminal and then type 'cmus'. i'd like to set up a keybinding to run cmus. (incidentally, i'm trying to do this in i3.)
    the code
    exec cmus
    doesn't work, presumably because 'cmus' has to be loaded from within the terminal. (is that right?) what's the syntax for passing on the command 'cmus' to the terminal? what's the best way to do this?
    Last edited by anti-destin (2012-03-15 23:52:40)

    bindsym mod+c exec urxvtc -name cmus -e cmus
    urxvtc => Your terminal here if you use something else. Most support -name and -e. Please read their man pages.
    -name => Useful for xprop. It assigns the WM_CLASS which can be used for tagging clients.
    man urxvt
    -e command [arguments]
    Run the command with its command-line arguments in the urxvt
    window; also sets the window title and icon name to be the basename
    of the program being executed if neither -title (-T) nor -n are
    given on the command line. If this option is used, it must be the
    last on the command-line. If there is no -e option then the default
    is to run the program specified by the SHELL environment variable
    or, failing that, sh(1).
    Last edited by Earnestly (2012-03-15 19:19:25)

  • What do I need to fill out and print a PDF form?

    I need to type on this form save and print it, how do I do that?

    Hi nette7,
    To fill in, save, and print your form, you can use the free Adobe Reader. You can download the free Reader from here: PDF reader, PDF viewer | Adobe Reader XI.
    Of course, if you have a full version of Acrobat, you can use that as well. But Reader will definitely give you the tools you need to get the job done.
    Best,
    Sara

  • Skeleton Shell script needed to start jClient from prompt

    Hi,
    we like to call a class which uses an application module directly from command line. I wrote a little shell script which wraps the direct "java myClass" call (later on, we plan to use cron for automatic calls).
    We use the Configuration.createRootApplicationModule method for creation of our application module (the class and the bc4j.xcfg are both packed in the same jar).
    We run into some issues concerning setting the correct classpath:
    I suppose our classpath isn't set properly.
    Can anyone give me a list of BC4J jars (and other standard Oracle JARS) that must be in the classpath in that specific order? (incl. location where to find)
    Or maybe an extract of your shell script if any exists.
    Many thanks,
    Stefan

    Hi Arno,
    thank you for your help.
    @All:
    Below please find a working script to start a batch job(which uses an application module in local mode) under a linux environment where Oracle 10g iAS is installed.
    Have fun.
    Stefan
    # set up your directory where iAS 10g is installed
    IAS_HOME=/usr/bin/oracle/product/appserv
    export IAS_HOME
    # set path for proper lookup of java.bin
    export PATH=$PATH:$IAS_HOME/jdk/bin
    # minimum amount of jars to start an application module
    CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/lib/bc4jmt.jar
    CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/lib/bc4jct.jar
    CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/lib/bc4domorcl.jar
    CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/lib/collections.jar
    CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/lib/bc4jimdomains.jar
    CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/jlib/bc4jdomgnrc.jar
    CLASSPATH=$CLASSPATH:$IAS_HOME/jdbc/lib/classes12.zip
    CLASSPATH=$CLASSPATH:$IAS_HOME/lib/xmlparserv2.jar
    CLASSPATH=$CLASSPATH:$IAS_HOME/jlib/jdev-cm.jar
    CLASSPATH=$CLASSPATH:$IAS_HOME/jlib/ojmisc.jar
    CLASSPATH=$CLASSPATH:$IAS_HOME/jlib/share.jar
    CLASSPATH=$CLASSPATH:$IAS_HOME/j2ee/home/lib/ojsp.jar
    CLASSPATH=$CLASSPATH:$IAS_HOME/j2ee/home/jsp/lib/taglib/ojsputil.jar
    # define further project specific APIs here (e.g. Batch-Job JARs, Apache Jakarta FOP JARs)
    export CLASSPATH
    # set java options (here: allow minimum of 512 Mb and a max. of 1 GB of heap memory) and start Batch-Job
    java -Xms512m -Xmx1g MyBatchJob

  • Please help with medical files I need to open immediately and cannot.

    I have some medical files sent to me that I desperately need to open. The instructions were to copy the file to the desktop, a zip file by the way, left click using the mac button and "I" at the same time. A menu would open saying "open with" and I was to choose stuffit. Then enter the password when prompted. I was able to get to the stuffit part and the password prompt and entered the password, but nothing happened. I keep getting the error message: Unable to unarchive "LoganRobertPEME.zip" into "Desktop". (Error 1-Operation not permitted.)
    Can anyone help me open this file?
    Thanks

    Contact whoever sent you the file. Perhaps it's a bad archive. Or be sure you entered the password correctly. They are case sensitive.

  • After update to 10.1.3 the menus can't open normally and printing is not possibe

    Hello,
    Does anyone recognise this problem and can help me ?
    After the update to 10.1.3 I the menus open fuzzy. So I can still read the pdf , but when I push the print button, the printscreen gets fuzzy and I cant continue.
    This also happens when I try to read other menus like preferences etc.
    I can still open and read pdf files normally and printing from other programs like word f.e. is still possible.
    I downloaded the update again, but this didn't help. Then I tried to delete with the cleaner and do a full installation, but I still have the same problem.
    Can anybody help me please ?
    Greetz

    OK.... what I've tried so far is creating an archive..... That worked but no import.....
    I also tried Russ' suggestion of using the card reader. Interestingly I was able to import.
    Now I plug in the card and it's importing fine as I write this.
    I don't know what the deal is but it's working after I tried the card reader.
    For now.
    Thanks for the suggestions.

  • New to shell script need help for script

    Hi,
    I have following shell script which takes database name from file sql.config. this file has names of all staging database. I want to modify this script to run below analyze index commands if database is staging and if its production database then i want to run different set of commands say analyze user schemas. How can i implement this in below script (something like if then else)?
    connstr=`grep "gemsit_staging" /cronacle/tools/informatica/sql.config`
    sqlplus -S<<EOF1
    $connstr
    whenever sqlerror exit failure;
    ANALYZE TABLE GEMSIT_STAGING.AR_TRANS_DETAIL_STG COMPUTE STATISTICS;
    ANALYZE TABLE GEMSIT_STAGING.GLOBAL_SET_S COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_DEL_TRANS_DETAIL_STG_PK COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_DEL_TRANS_DETAIL_STG_01 COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG_PK COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG01_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG02_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG03_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG04_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG05_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG06_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG07_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.GLOBAL_SET_S_PK COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.GLOBAL_SET_S_PK1 COMPUTE STATISTICS;
    EOF1
    thanks

    if test $? -ne 0 ; then
                                    echo 'Processing Error' >> $Log_Dir/$Log_File
                                     exit 1
                            else
                                    echo 'Processing Completed' >> $Log_Dir/$Log_File
                                    rm -f  $Script_Dir/$Flag_File
                                     exit 0
                            ficreate two sql files one form test and for prod say test.sql and prod.sql with relevant sql statements
    this is a sample if else construct, you nned to get the env using "host"/"hostname" cmd on linux and assign this to a variable say envname
    if envname $? -ne 'PR' ; then
                                    echo 'Processing Test SQL' >> $Log_Dir/$Log_File
                                     <call the test sql here>
                                     exit 1
                            else
                                    echo 'Processing Prod SQL' >> $Log_Dir/$Log_File
                                   <call the Prod sql here>
                            fi

  • Form9i open word and print direct to printer

    I upgraded developer forms 6i to 9i and found problem in case of print direct to printer.
    The report was not create from develop reports but it create from Microsoft Word.
    I generate this report via developer forms call function to generate microsoft word and print it directly not preview but I found the problem when I printed it directly to printer. It didn't have any response from printer although I set up printer at printer server machine already.
    I try to test other printers and do the same but the problem still occur.
    My platform for testing shown as follow :
    ORACLE DBMS 9i
    Develop Form 9i
    Microsoft Word 97, XP
    Windows 98, XP
    Thank you for your suggestion.
    Best Regards,
    Pongsak S.
    Thailand
    [email protected]

    Use DESTYPE=PRINTER.
    http://docs.oracle.com/cd/E14571_01/bi.1111/b32121/pbr_cla005.htm#i637246

Maybe you are looking for

  • Oracle Database Migration Verifier - Can it be used for diff table structur

    Hello, We have re-engineered the existing sybase tables to a new structure in Oracle for few of the tables.For example a table in sybase is normalized to two tables in oracle.In these cases can the "Oracle Database Migration Verifier" be mapped such

  • Problems with my iPhone 6 Plus 128 GB

    Hello everyone, 2 weeks I got my iphone 6 plus ago and I am inspired that € 999 then the iphone is "something" faster than my iPhone4 2010. I have suffered spontaneous rebooting the terminal, some applications do not open or hung, even Apple's own. P

  • Changing Tab Focus Behavior

    I have two machines running Firefox 4.0. Both have Tab Mix Plus installed. Each exhibits a different behavior when opening multiple tabs. To open multiple tabs, I simply highlight a number of links on a page, right click and select Open Links in New

  • File type on Yosemite iCloud drive

    Hello, before upgrading to Yosemite, I want to check what file types I can use on iCloud drive. I work a lot with Sketchup and Layout, it would be great if i could keep the files on Drive and then work on them on either my MBP or my iMac. Presumably

  • Need help with syncing error!

    hey guys... kam here... every time i try to sync my iphone 4 up with itunes i get an error message saying unable to sync... i've updated all the dumb updates and all that crap but it still won't work... any ideas?