How to create shell script on solaris "TOP" command

Hi All,
i need to write a shell script on unix top command.
Requirement:
In top command grep the more than 25% CPU utilization f60webmx process and that f60webmx process time stamp is more than 3HR's and also needs to grep the load average information in top command.
Please help me some one.

i need to write a shell script on unix top command.You have our permission to begin to do that.
These forums are NOT for doing your work for you. They are here to provide assistance for YOUR work.
I suggest you go get paper and pencil and write down all the steps you think you need to take to accomplish that. Write it down as if you were going to do that manually at the command prompt. Then put it all into a text file and save it with a file name of your script.
When you have that "script", you can run it and examine whether it succeeds or whether it has errors. Work at it for a while and fix whatever errors might happen.
When you are really, really stuck at it, you can paste your script into a reply of this thread and maybe someone will respond with suggestions for improvement.

Similar Messages

  • Creating shell script for cloning

    Hi,
    I am cloning 11.5.8 instance. For copying of files from source to production I use rcp command. I want to create shell script that copies the files and lwhen it is complete send an email to my rediffmail account.
    There are 2 problems:-
    1. How to track if rcp commaind has completed.
    2. How to send out an email. I tried to send an email using sendmail but it gave me an error "stdin: Value too large for defined data type".
    Please help.
    Thanks & Regards,
    Neeraj

    Hi Neeraj,
    I'd suggest using the exit code from the rcp command to drive your email step. For most commands in Linux, and exit code of 0 indicates success, and in most shells, the environment variable $? stores the exit code of the most recent command. So, you could do something like this:
    rcp source_files target_location
    if [[ $? -eq 0 ]]
    then
    echo "Huzzah\!" | mailx -s "RCP from source to target successful" your_username@your_host
    else
    echo "Bummer.  Got exit code $? from rcp" | mailx -s "RCP from source to target failed" your_username@your_host
    fiThe preceding advice is offered with three disclaimers:
    1) I don't know which shell you're using (ksh, bash, csh?) -- my code snippet assumes ksh, but the principles should be the same in any shell
    2) My morning coffee has not yet taken effect, so I may be completely wrong about something important :-)
    3) The code above is untested, and will probably not work in any shell without modification.
    Despite all that, hopefully this will put you on the right track.
    Regards,
    John P.
    Message was edited by:
    jpiwowar (minor clarification)

  • How to create Raid 1 on Solaris 10 step by step by DVD Media?

    Please help me figure out "How to create Raid 1 on Solaris 10 6/06 while installation?" The system is Sun Fire X2100
    Thank you very much.

    Please help me figure out "How to create Raid 1 on Solaris 10 6/06 while installation?" The system is Sun Fire X2100
    Thank you very much.

  • How to create installation scripts in packaged application

    can u tel me How to create installation scripts for packaged application.
    also tell me , i have to first install scripts and then supporting objects or
    supporting objects first then installation scripts..

    Hi,
    Depending upon your usecase there are different ways to implement this logic.
    Check this for example (Read my answer in this post):
    https://forums.sdn.sap.com/thread.jspa?threadID=349151
    Also check these senarios:
    http://help.sap.com/saphelp_nw70/helpdata/en/42/9ddf20bb211d72e10000000a1553f6/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/42/9ddcc9bb211d72e10000000a1553f6/frameset.htm
    Also the delegation may be interesting for you:
    http://help.sap.com/saphelp_nw70/helpdata/en/a0/44b742cafec96ae10000000a155106/frameset.htm
    Greetings,
    Praveen Gudapati

  • How to create sap scripts?  script is a language  how to create script ?

    how to create sap scripts?
    script is a language  how to create script ?

    hi ,
    step by step procedure.
    SAP Scripts
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp
    http://www.allsaplinks.com/dialog_programming.html
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://www.geocities.com/ZSAPcHAT
      http://www.sappoint.com/abap/ssintro.pdf
    http://www.sappoint.com/abap/sscript.pdf
    http://www.sappoint.com/abap/sscript.pdf
    http://www.sappoint.com/abap/lsetssap.pdf
    http://www.sappoint.com/abap/sscrtpex1.pdf
    http://www.sap-img.com/sapscripts.htm
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
    http://www.sappoint.com/abap/sscrtpex1.pdf
    http://www.sap-img.com/sapscripts.htm
    http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    sri

  • How to call shell scripts

    Hi,
    Please let me know how to call shell scripts from WDA
    Thanks
    Bala Duvvuri

    Hi Bala
    You can not call any client side funcitons using Web Dynpro ABAP, it is possible in BSP using JavaScript.
    You can use Suspend and Resume Plugs to navigate to a BSP page and perform the shell script and return to WDA using Resume Plug.
    http://help.sap.com/saphelp_nw04s/helpdata/en/45/19bf8c16f25d7ae10000000a11466f/frameset.htm
    Now, you can use JavaScript to execute shell script:
    http://www.itjungle.com/mpo/mpo052302-story01.html
    Abhi

  • Xgettext for perl and shell scripts on Solaris 9

    Hi......I have to internationalized perl and shell scripts on Linux and Solaris 9.
    I have used gettext on linux to internationalized both perl and shell scripts but on solaris i m not able to
    achieve the same.
    If we see help of xgettect on Linux, it shows input file options for Perl, Shell, C, C++ etc but help for
    xgettext on Solaris shows input file option for C only.
    Can you please provide me some way of using xgettext for perl and shell scripts on Solaris 9 or
    is there any other way of internationalizing perl and shell scripts on Solaris 9.
    Many Thanks,
    Lokesh

    Signature link blocked.
    db
    Contentprise wrote:
    Hi......I have to internationalized perl and shell scripts on Linux and Solaris 9.
    I have used gettext on linux to internationalized both perl and shell scripts but on solaris i m not able to
    achieve the same.
    If we see help of xgettect on Linux, it shows input file options for Perl, Shell, C, C++ etc but help for
    xgettext on Solaris shows input file option for C only.
    Can you please provide me some way of using xgettext for perl and shell scripts on Solaris 9 or
    is there any other way of internationalizing perl and shell scripts on Solaris 9.
    Many Thanks

  • SAP XI: How To Write Shell Script And use it in File Adapter On XI Server

    Hi,
    I want to split file at sender side in XI using Shell Script and then after i want to do
    Mapping.
    Can anyone tell me what exactly it means "write a script in UNIX shell on XI SERVER"?
    Regards,
    Akshay.

    Hi,
    You can execute a Unix script running in the XI server from the File communication channel. Ie. if you want to do something which was not part of XI adapter configuation , then you can make use of external unix script and you can execute those from the XI.
    For this, write a unix script and place in the XI OS level provided that path is accessible from PI Channel.
    E.g
    So u can use this in either Sender Channel to modify the data before it reaches into the Integration Server or in Receiver channel it is generally used to transfer the files into different location via Secure FTP
    SAP help: http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    Blog:/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
    XI  can be in any OS.
    Hope this helps,
    Rgds,
    Moorthy

  • How to make a script for a terminal command

    I need to find instructions on how to create a script to automatically run the following Terminal command;
    Sudo chmod 755 /private/var/spool/cups. It will also need to include the admin password as you will be prompted to enter it after the command line is entered. Apparently the only way to get Quark 7 to print adobe pdf's is to open a terminal window and type the command every time the machine is rebooted. This is a temporary fix and I do not want the MAC users to have to type the command.
    Thanks
    Sal

    This Script works here. Get you the error, when you save or checks the syntax?
    When you use in AppleScript the entry with administrator privileges, is sudo optional. This says only, if everyone can use the sudo command inside of the 5 minutes limit without to write the password again or not.
    The Syntax do shell script "sudo chmod 755 "private/var/spool/cups" password "***" doesn´t work, because you need the entry with administrator privileges for the execution as privileged user.

  • How to create multiple users in solaris using script

    hi
    how i can create multiple users (2000 users) using shell script with a common password .
    useradd is creating one user at a time.
    thanks

    I m new to solaris and scripting also.
    how i can write a script for this .

  • Encrypting password in shell script on Solaris 10.

    Hi,
    I have a shell script & in that the username & password is specified. I can see the password. Is there any way to encrpyt password in Unix scripts on solaris 10 box.
    Please suggest.
    Thanks & Regards,
    Tejas

    Here are some examples of avoiding passwords in scripts.
    First, if it's a script that needs to use remote login, you could set up ssh keys in the authorized_keys file of the remote system to allow auto-authentication.
    As a more general example, you could create a shell function that prompts for the password and stores it in an environment variable to be used by the script or utility that you want to use. Here is an example that we use in our Red Hat systems to allow yum to tunnel through our http proxy:
    function yumproxy(){
        echo -n "Enter Proxy Username: "
        read -e username
        echo -n "Enter Proxy Password: "
        read -es password
        echo
        export http_proxy="http://$username:$password@ourproxyserver:8080/"
    }This is in .bashrc so that we can run it once just before running any yum commands (not that this means anything in a Solaris forum!)

  • How to engage Shell Script resource action in an Active Sync workflow.

    A little background, at my organization I have IDM set up simply to recognize changes in LDAP and transmit those changes, via active sync, to AD. We don't yet use the IDM interface to make any changes to users, instead we use external interfaces that we have written to make changes to LDAP which then get picked up via Active Sync and synchronized to AD. However, in addition to AD, there are several other resources that we would like to gradually wrap into this active sync workflow via native and custom resource adapters. Currently I am working on a simple Shell Script resource to manage Linux home directories. I have written all the necessary code and created the resource itself within IDM. This all seems to work, I can create, delete, disable, etc.. users in our Linux environment from the IDM interface.
    Here is the problem, I would like to integrate the creation, deletion, enabling, disabling, etc.. of users into the same Active Sync workflow that engages whenever a change is made to LDAP. This way, whenever a user is created in LDAP (and consequently AD), that user will be granted a home directory in Linux. Unfortunately it seems that Shell Script Resources are not enabled for Active Sync. Any ideas on how one might accomplish this?
    Thanks in advance.

    Thank you for the prompt reply. Funny thing is that I have been banging my head on this problem for a couple weeks now (this is my first attempt at real customization ... ). I finally got desperate and decided to reach out for help. After I posted this message I came to a realization that ended up solving the problem for me, go figure.
    For anyone in my place I can relate what I ended up doing, simple as it was. Keep in mind, of course, that this is a highly customized environment that I am working in so the specifics probably wont apply. What I basically did, is I found an LDAPCreateUserProcess form that gets invoked when Active Sync is run. For all I could tell, this simply processed the new attributes that came through Active Sync and related them to their llighthouse / AD counterarts. But I noticed a line like this:
    <Field name="waveset.resources">
    <Expansion>
    <filterdup>
    <appendAll>
    <ref>waveset.resources</ref>
    <s>AD</s>
    </appendAll>
    </filterdup>
    </Expansion>
    </Field>
    and simply added the name of my shell script resource under the <s>AD</s> line. That was it.
    Anyway, thanks bobm53, I can now get on with my life :-)

  • How to create a scripting language in java?

    Hello,
    All that I want to do is to create a scripting language in java. I�m familiar with javacc, jsr223 and other things but don�t know how to start. The language syntax is java 5 syntax with some change and I want to generate java source code from small scripts. In fact I don�t know how other languages (like groovy) are created.
    I hope you can show me the required steps.
    Looking forward to hear from you.
    Thanks.

    That's all, huh?
    For a start, generally when I hear "scripting language" I'm thinking interpretter, not a system which creates compiled (or compilable) code.
    I get the impression that what you're talking about is what I'd call a "preprocessor" language, some extra syntax added to java which the preprocessor renders into ordinary java.
    As far as complexity is concerned, much depends on how deeply involved the extra syntax is with the embedded ordinary Java. Does you preprocessor need to understand the java, or is it just embedded as text? How easilly identified are your preprocesor statments? It's a lot easier to do this if preprocessor lines are instantly identifiable from Java code (e.g. start with a #).
    Basically the stages are always the same;
    1) Lexical analysis i.e. picking out words, operators, numbers, quoted strings.
    2) Construct a syntax tree.
    3) Generate code (in this case Java).
    Now, in this case, some of the nodes in the syntax tree may simply be chunks of undigested Java.

  • How to Create a Script in Greasemonkey?

    Hello all, I have a couple of things.
    One is a rather chronic problem with scrolling on Tumblr (pages with backgrounds that do not scroll have varying degrees of choppiness/stalling scrolling. Just look at my past questions to see a more detailed description), and the other is a script that fixes the problem (again, see past question replies for the script).
    While it is a very small nitpick, I would like to know how to place that script in Greasemonkey, since it is a bit annoying to have to do it manually for every page that requires the script.
    I tried looking at Greasemonkey to see if it was something I could do myself, but I decided I would go to those who (might) know, because with my luck I would mess up something crucial.
    So...my two questions:
    1) How does one make a Greasemonkey script? Or more like, how would one insert an existing script into Greasemonkey?
    2) Is there a way to make said script automatically affect only the pages that would need it (for example, only tumblr pages with non-scrolling backgrounds? Since those with no/scrolling backgrounds are fine), or would I need to manually enter in the pages in question as I encountered them?

    '''Edit: I read too fast. The rule in this thread is for content, and therefore goes into the user<u>Content</u>.css file. Please ignore this post for purposes of the above rule.'''
    Here's how to manually create/edit the userChrome.css file:
    (1) Find (or create) the chrome folder. This is a folder in your currently active Firefox settings folder, also known as your Firefox profile folder.
    * Open the your profile folder using: Help > Troubleshooting Information
    ** Windows: Click the "Show Folder" button
    ** Mac: Click the "Show in Finder" button
    * Check for a chrome folder.
    ** If it exists: double-click it to open it.
    ** If it does not exist: create a chrome folder, then double-click it to open it.
    (2) Create or Edit a userChrome.css file by adding your style rule.
    ''Note: spelling and capitalization are crucial. If Windows does not display file extensions such as .css, .js, .doc, and so forth, change that setting as described in this article: [http://support.microsoft.com/kb/865219].''
    * Check for a userChrome.css file in the chrome folder.
    ** If it exists: open it in a text editor. Check that it has this first line:<br><br>@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);<br><br>Then paste in the new style rule (not duplicating the above line).<br> &nbsp;
    ** If it does not exist: create a new text file named userChrome.css. (In Windows, right-click and choose New > Text Document and change the name to userChrome.css, making sure the file type ends up being CSS file and not Text Document.) Then see the previous step for what to place in the file.
    The rule change should take effect the next time you start Firefox.
    Note: I find it easier to use the Stylish extension, but if you don't want yet another extension, then userChrome.css makes the most sense.

  • How to create a Script in AW server

    Hi all,
             Can anybody pla help me with how to create a simpal script in AW server.
    Thanks
    Ravi Sharma

    These products are all based on the GeoTel acquisition.
    GeoTel ICR (Intelligent CallRouter) was the base product, enabling many different peripherals (i.e. PBXs like Lucent, Nortel, Rockwell etc. - and IVRs like InterVoice, Periphonics etc.) to be joined together in a functional contact center, although the initial implementation of ICR was in a different context - as a network router for service providers (AT&T, MCI, Optus, BT) through an interface called a NIC.
    The NAM was a high-end conglomeration of a Network ICR (NICR) and 1 or more Customer ICR (CICR) suitable for service providers, allowing a hosted solution to be built.
    When Cisco bought GeoTel the name was changed to Intelligent Call Manager (ICM) to avoid marketplace confusion with Cisco's existing line of routers. Thus the NAM (the hosted solution) now consisted of a NICM and several CICMs.
    Since Cisco had developed their own switch/PBX for VoIP (after the Selsius acquisition) called CallManager, it could also be treated as a peripheral and slotted into an ICM. This became IPCC - IP Contact Center.
    A couple of years ago, Cisco branding brought all products under a "Unified" umbrella.
    Although the lines are a bit blurry (and I'll probably get corrected on this ), UCCE is IPCC (well, almost), ICM Hosted is the NAM, and the term ICM is mainly used when UCCE is implemented with non-Cisco switches (i.e. not CallManager).
    Yeah, it's not that clear cut, but you get used to it.
    Regards,
    Geoff

Maybe you are looking for

  • My video zoom does not work on my iphone or ipad after IOS 7.0.2 update.

    After updating iPad and iPhone 4S to IOS7.0.2 the video zoom function does not work. I have also lost the function to zoom on video playback.  

  • My ipod touch 4g wont let me sync apps.

    I want to sync apps to my ipod but it won't let me!! I have successfully synced apps before but just recently, i thought something was wrong because the app store dissappeared from my ipod home pages and it wouldn't let me delete apps (by holding on

  • Cisco ASA VPN question: %ASA-4-713903: IKE Receiver: Runt ISAKMP packet

    Dear community, quite frequently I am now receiving the following error message in my ASA 5502's log: Oct 17 12:52:17 <myASA> %ASA-4-713903: IKE Receiver: Runt ISAKMP packet discarded on Port 4500 from <some_ip>:<some_port> Oct 17 12:52:22 <myASA> %A

  • Sql code with php code

    for example: create table testtable ( sales_area varchar2(30), sales_comp varchar2(40), sales_market varchar2(30), order_number number(20), order_date varchar2(20), item_id number(15), quantity number(20), item_desc varchar2(50) insert into testtable

  • A simple question, Plz

    I want to play multiple video files in one page, but it always play the same file in every video windows, and the file played is always the last file(for example, it play 14.rm). the main code is as following: <table> <tr> <td bgcolor="#FFFFFF" align