Shell Scripting Tools - If any?

Does anyone know if there are any Shell Scripting tools (GUI Based) where we can test our scripts in different shells and see the outputs or stuff like that?

That would be a good idea.
Usually you write on a standard shell, i.e. in many places ksh is the standard for scripting.
If you want to run the same script on csh will require sintax changes, you may write a template for the most commonly used commands and use them as a reference to translate the scripts from ksh to csh or viceversa.
When a gui is out to do this tell us ;-)
Regards,
Alejandro

Similar Messages

  • Airport Command Line / Shell Script Tool

    Hi,
    Is there a way to issue a command to cause an Airport Extreme to reboot? I need to restart my airport extreme fairly often.
    Thanks,
    Bruce

    Hi,
    try OMBPlus.
    #Connect to repository:
    OMBCONNECT owbrep/passwd@mydesignhost:1521:mydesignrep USE REPOSITORY 'owbrep'
    #Export
    OMBEXPORT MDL_FILE 'C:\\file.mdl' FROM PROJECT 'MY_PROJECT' WITH DEPENDEE_DEPTH MAX INCLUDE_USER_DEFINITIONS OUTPUT LOG 'C:\\file.log'
    OMBDISCONNECT
    This export one project. If you want to export all projects, don't forget the project "PUBLIC_PROJECT", that contains all public stuff.
    Put this into a script and here you go.
    Checkout the OWB API and Scipting Guide for more options on OMBEXPORT.
    Regards,
    Carsten.

  • How to Prompt for User/Pass Running Shell Script Remotely through ARD

    So I finally got my Active Directory Script working! However, I realized that I'm not the only one going to be running this script and to have my user name and password in the script itself is beyond foolish. While I know it's possible just to have whoever's running the script to manually add their username and password, I'd prefer to have prompts to make things easier for the rest of my team.
    Here's my current script. I've tested it on the machine I'm connecting to Active Directory and it works fine if you run it on the machine itself in terminal. However, I'm going to be doing this on about 150 machines and the whole point of the script is to do it remotely.
    #! /bin/bash
    MACNAME=$(scutil --get ComputerName)
    read -p "User Name: " USER
    read -p "Password for $USER: " PASS
    dsconfigad -add "CORP.DOMAIN.NET" \
    -username $USER \
    -password $PASS \
    -computer $MACNAME \
    -mobile disable \
    -mobileconfirm disable \
    -localhome enable \
    -useuncpath enable \
    -shell /bin/bash \
    -ou OU=Macs,CN=Computers,DC=corp,DC=DOMAIN,DC=net \
    -force \
    -localpassword "PASSWORD" \
    -groups "GROUPS"
    When I run the UNIX script through ARD to a machine, I get no prompts for USER or PASS. In fact, it gives me the following error "dsconfigad: Authentication server encountered an error while attempting the requested operation. (5202)" So it's not asking for a user name and password.
    Is there any way to make a shell script prompt you for a User Name and Password when you're sending commands remotely through ARD? Or is there another way to do this?
    Any suggestions would be greatly appreciated.
    -rks

    Best solution is to create an account that is exclusive to binding machines.  By doing this, you can embed the user name and password in the script.  Heck, you can post it on your website.  If the account is configured properly, it will only be able to create machine records in a defined container.  If you are mixing Macs and PCs in your AD domain, I also recommend creating an isolated container for your Mac records.  Now, the account has even less access rights as you can make it so it only has rights to the Mac container.
    Otherwise, ARD does not prompt.  You can play around with an expect script but the reality is that you are still embedding the credentials in the script so it really does not achieve what you want.  ARD is not an interactive shell scripting tool.  It is more a fire and forget.
    Reid
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • How can i call a Stored Procedure procedure from Unix shell script

    Hi All,
    I want to call a Strored PL-SQL Procedure through Unix shell script.
    Can any body help me with this.
    Regards,
    Saurabh

    I prefer a seperate script like the other poster mentioned. However, most shells can use a 'here' document as well ...
    sqlplus uid/pwd <<END
    exec myproc
    exit
    ENDRichard

  • Reg: UNIX shell script at File Adapter

    Hi all,
    I am doing a File to file scenario and using command line arguments in Sending file adapter. I am using UNIX shell script ".sh" file for executing the command.
    I gave the following path at "Run OS command before message processing" parameter:
    /temp/xidelivery/send/FILOSC004_shell.sh
    and this file contains following code:
    <b>#!/user/bin/sh cp /temp/xidelivery/send/FILOSC004_in.txt /temp/xidelivery/send/FILOSC004_input_copy4.txt</b>
    I put the source file, FILOSC004_in.txt and shell script files at the respective paths.
    If I give "cp" command directly in command line it is working fine. But I could not execute this with shell script. Can any body give me the reason where I gone wrong.
    Regards,
    Pavani.

    Hi,
    can you try this,
    bash /temp/xidelivery/send/FILOSC004_shell.sh
    let me know.
    hey you can check the blog below to catch the OS errors,
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    Prasad Babu.
    Message was edited by:
            PrasadBabu Koribilli

  • How to extract a subsstring in a shell script

    Hi,
    I need to extract a substring from a string in a shell script. Ideally using a regular expression, but a certain position (character n through n+4) would work in this case, too.
    I am fairly familiar with regular expressions, I just don't know the syntax to use in a shell script
    Thanks for any help!
    Ingo

    The equivalent of Bill's command in bash is:
    expr $junk : '..\(...\)'Read the man page for expr, particularly the ':' operator. You can use any "basic" regular expressions, but not "extended" REs.
    You can also use the stripping operators to remove stuff from the front or end of the string, optionally with a "greedy" match. So:
    <pre>p=/usr/local/clamXav/man/man5/clamd.conf.5
    echo ${p#????} # strip first 4 chars
    /local/clamXav/man/man5/clamd.conf.5
    echo ${p%????} # strip last 4 chars
    /usr/local/clamXav/man/man5/clamd.co
    echo ${p##*/} # greedy strip path components (basename)
    clamd.conf.5
    echo ${p%%man*} # Greedy strip from end
    /usr/local/clamXav/</pre>I dare say these all work in zsh too.

  • How to check from a shell script that a particular software is installed

    Hai friends
    I want to write a shell script which has to check whether a particular software is installed on the machine, or not. If installed, then what version is it using and the get the version number and which type of installer is it? i mean is it a .rpm installation or a tar.gz installation.
    how can i check this from a shell script. If any of you have any idea please give me a sample script to check this
    Thank you

    @Raja_Abilash
    I don't think this is a right thread & right forum to POST this question.
    better go ahead with forums related to LINUX.

  • Shell Script gives error when run through cron job.

    Hi,
    The following shell script runs without any problem when executed manulally.
    USED=$(df -h /arch | tail -1 | awk '{print $5}' | cut -d '%' -f 1)
    if [ ${USED} -gt 90 ]
    then
    find /arch/AUBUAT/ -type f -mtime +0 | xargs rm
    find /arch/AUBMIG/ -type f -mtime +0 | xargs rm
    fi
    But the same gives below error when called from a cron job:
    /backup/arch_test.sh: syntax error at line 1: `USED=$' unexpected
    We are running following version:
    bash-3.00$ uname -a
    SunOS uaeaubdbdr01.aub.af 5.10 Generic_141444-09 sun4u sparc SUNW,SPARC-Enterprise
    Kindly assist.
    Thanks
    Edited by: user13362786 on Apr 20, 2011 4:36 AM

    Hi,
    When I used #!/usr/bin/sh now even the manul execution of the script fails with the same err:
    bash-3.00$ ./arch_test.sh
    ./arch_test.sh: syntax error at line 2: `USED=$' unexpected
    And when I used #!/usr/bin/ksh the manual execution runs fine but again when the script is run from cronjob it now give dirrect err:
    /backup/arch_test.sh[2]: df: not found
    /backup/arch_test.sh[2]: tail: not found
    /backup/arch_test.sh[2]: cut: not found
    /backup/arch_test.sh[2]: awk: not found
    /backup/arch_test.sh[3]: test: argument expected

  • How to call a procedure from  Shell Script

    Friends,
    How can i call a procedure from a shell script ? If any one know the answer , let me know immediately .
    Thanks in advance .
    Chakks

    We connect using SQLPlus commands on the Unix server:-
    Our code block is below:- We've got DBMS_OUTPUT in the procedure, hence the spooling. You don't need all this, but you do need the sqlplus directory, etc... in your profile.
    sqlplus -s <<EOF > ${CREATE_LOG_FLE}
    $UserName/$Password@$SID
    SET SERVEROUTPUT ON SIZE 1000000;
    spool ${CREATE_LOG_FLE}
    EXECUTE $STORED_PROC(${Months}, ${DeleteRecords});
    EOF
    Hope that helps

  • Regarding the shell scripting

    Hi,
    i am working on supporting side for a migrated project.My application is an ASO.
    As i have to execute the MaxL scripts in Unix using shell scripting.
    Can any one help me out in writing and executing the scripts in Putty server.
    it is very apreciable if i get response soon to my id [email protected]
    Thanks and waiting for reply.
    Srinivas

    We are using Essbase on UNIX (AIX) too. Generally speaking, I always create 2 files when I want to execute a MaxL script on our UNIX server:
    1) a shell script, eg. proc.sh, that contains "essmsh -l <user> <password> proc.msh".
    The proc.sh file can be edited using the standard UNIS editor "vi" and needs to be executable (the "x" bit needs to be set).
    2) the MaxL script, eg. proc.msh, that contains the MaxL statements to be executed on Essbase
    Hope this helps.

  • Oracle 11gr2 Software Installation on Linux Using Shell Script

    Hi,
    I have requirement to install Oracle Software on Linux Using shell script, with out any manual entries.
    Thanks,
    loganathan

    Srini_Chavali wrote:
    Pl identify exact version of database and OS.
    Ed - not sure where you looked :-) but response files can certainly be used for an automated installation (which is what I think OP is referring to)
    http://docs.oracle.com/cd/E11882_01/install.112/e24321/app_nonint.htm#BABFEECI
    HTH
    Srini
    You are right.  I must be losing it.  My failure rate lately has been abnormally high.  I don't remember exactly how I searched before .. I thought I opened the Installation Guide an searched for 'silent' in "this document only" -- but all I came up with was references to dbca and emca ... nothing for OUI itself.  Now that I go back and do the same search, there it is.

  • Calling a shell script from ODI tool OS command

    hi,
    I am trying to call a shell script from the ODI tool OS command with the following command "sh /Oracle/ODI/backlog.sh"
    where "backlog.sh" is the name of the shell script. I am redirecting the output of the script to a file called "backlog.out" and this part is done in the script itself.The ODI session is successful and the output file i.e "backlog.out" gets created in the specified location but the output of the script doesnot get written to this output file.Is this the right way of calling the shell script using ODI OS command.

    Hi-
    It seems there is no input parameters for your script. Please check your script file needs any input parameters and try the syntax below:
    path/scriptname.sh input1 input2
    where input1 and 2 are input parameters for the script file which you are calling.
    Hope this will work for you.
    Thanks,
    Saravanan Rajavel

  • Can any one tell me how can i call a shell script from pl/sql

    i like to call shell script from pl/sql procedure.
    can any one suggest how can i do this

    Have you not mastered in asking the same kind of question ?
    First do write a script...
    no one will spoon feed you.
    How can i call a shell script from procedure
    How to call Shell Script from pl/sql block
    -Sk

  • BI Admin Tool - Setting connection pool via shell script - Is it possible?

    Hi,
    Here's the problem I am trying to solve.
    I am using a J2EE application that uses OBIEE for reporting.
    The *.rpd file is installed at a particular location when our J2EE product is installed.
    I then copy the *.rpd file to the BI home on a different server using a shell script.
    The shell script that deploys the *.rpd file does the following:
    1. Shuts down BI processes that are running
    2. Deletes the old *.rpd file
    3. Copies the new *.rpd file
    4. Starts all BI processes
    I am happy with the way we have automated this process, but would like to take it one step further.
    The *.rpd file does not have the connection pool hard-coded in it. And we want to keep it that way.
    What we would like to do is - pass the connection pool parameters to the shell script (that is used for *.rpd's deployment) and have it automatically update the *.rpd file. Is it possible to do this at all? How do we go about accomplishing this?
    Or in other words - Is there a way to update the connection pools WITHOUT hard-coding it in the *.rpd file or WITHOUT using the BI Administration Tool.
    Currently, we manually update the connection pools in the Physical Layer using the Oracle BI Administration Tool.
    The version of BI Administration Tool being used is 10.1.3.3.1 installed on a Microsoft Windows XP Professional SP2 machine. The BI Server itself is running on an Oracle Enterprise Linux 4.0 box.
    Do let me know if you need more information that would help answer this question.
    Thank you.

    Thank you - fiston and Gagan.
    I am going with fiston's solution - since it is easier to implement. I am on the QA team and the automated deployment is to lessen QA's deployment time.
    While one of our developer's said that she prefer's Gagan's solution - it would be over-kill to make changes to the application's schema for the said purpose.
    I will further make another post as to whether or not the automated deployment worked for us.

  • Is there any Scripting tool available?

    Hi,
    I am brand new to Web AS and wondering is there any command line scripting tool available within Web AS? For example, something similar to BEA's WebLogic Scripting Tool (WLST) that is based on Jython or IBM’s WebSphere Administrative (wsadmin) that is based on Jacl and Jython.
    Any input/comments/pointers are much appreciated.

    http://bivald.com/lessons-learned/2007/08/flash-media-server-ide.html
    or  if above link fails, try this
    http://www.igorcosta.org/?p=151
    Yes, I believe you can use any text editor, including a javascript editors to write serverside AS, but may not get intellisense in most of those editors while coding.
    check the above links for a development IDE with intellisense enjoy
    Mohamed D. Sankoh
    Calgary
    Alberta, Canada

Maybe you are looking for

  • Not to able to open the OEM on browser

    HI, I am using oracle 10.2.0.1 on OEL 5. I had confugred emca successfully, but when i try to run OEM, internet explorer throw the message "page cann;t be found" please suggest me for the same -bash-3.2$ emca -config dbcontrol db STARTED EMCA at Jun

  • Problem on upload file via ftp..

    Hi afternnon, Can have people tell me.....what is "Can't open data connection" on my upload file via ftp ????how to solve it?? regards, mike

  • Shared calendar not saving access permissions

    I have shared a calendar privately with someone, and I gave them "view only" privileges; however, every time I close calendar on my laptop, iphone, etc. and then open it back up they have "view & edit" privileges. Has anyone else encountered this pro

  • Portal's business package activation for OAOM - EAM innovation.

    Dear experts. Iu2019m looking forward to use the Optimized Asset Operations and Maintenance. Itu2019s an EAM 2010 innovation. Iu2019ve been told that it is basically some portalu2019s business package activation and I could have the user interface si

  • Oc4j server 10.1.3.3 to weblogic server 10.3.5

    Hi, I have one requirement. i have oc4j server 10.1.3.3 and Jdeveloper is 10.1.3.4. from here i need to send one message through JMS Adapter to weblogic server 10.3.5.(here one queues is there). so pls any one help me out. Thanks, Rahul