Execute command and save output in a HTML File

Hello Guys,
I have a requirement and for that i have to do following. a) read a file in an array and then execute a command for each value in that array. after that i want to store the output of command and value of array in another array.
i am doing something like below.
set objtextfile = objfso.opentextfile _
("c:\temp\aaaa.txt", forreading)
j=0
Do until objtextfile.atendofstream
redim preserve arr123(j)
arr123(j) = objtextfile.readline
j = j+1
Loop
for each server in arr123
chk_status = "command" &" "& server
set objexecobject = objshell.exec(chk_status)
'Here i am not sure how to proceed further to achieve what i described above.
Next
Can someone help me with this?
-KAKA-

Thank you for your response.
So here is what i want to do.
Query a database using odbc from my management server (odbc is configured and connection is tested) and based on the query it will result out few list of servers. then from the same management server i want to execute a command against all the resulted server
(management server has a binary which can execute remote action). this remote action will get output back.
then i would like to store the name of server and resulte output in a html file which should look like below.
which i will later host on apache.
YOu do not need to move things in and out of arrays and files.
>>>> You are right but as i stated, i am not a core programmer and due to nature of my job i have to work on perl, shell and VB Script, apart from my actual technology so it becomes difficult to write it with perfection.
I hope you understand.
-KAKA-
-KAKA-

Similar Messages

  • I am trying to make a signature in MS Word (2007) which includes a jpg image, but when I save it as a HTML file and attach it the text appers OK but the image doesn't. I have tried various formats but still no luck. Can anyone help?

    I am trying to make a signature in MS Word (2007) which includes a jpg image, but when I save it as a HTML file and attach it the text appers OK but the image doesn't. I have tried various formats but still no luck. Can anyone help? edit

    C'mon! Anyone???? I'm desperate!

  • Redirects and saves process listing to a file using glance command

    Sorry for asking this in wrong forum.
    Does Anyone have script for cpu monitoring usong glance on hp-ux
    I need a command which redirects and saves process listing to a file using glance command
    Thanks for help

    glance -f /tmp/gout -adviser_only -syntax /opt/perf/examples/adviser/activity -j 10 -iterations 3
    glance -adviser_only -syntax glance_advisor -iterations 1 > /tmp/results
    cat glance_advisor
    PRINT GBL_STATDATE," , ",GBL_STATTIME
    PROCESS LOOP
    NUM_FILES = 0
    PROC_FILE LOOP
    NUM_FILES = NUM_FILES+1
    PRINT "PID: ",PROC_PROC_ID," Process Name: ",PROC_PROC_NAME," # open files: "
    ,NUM_FILES|5|0
    My question is :
    how to get top processes (cpu/memory wise)
    using glance
    for example
    glance -f /tmp/gout -adviser_only -syntax some_syntax_script -j 10 -iterations 3
    Please help me to find top 20 cpu using processes using glance.
    I need to get listing in a file so that I can use these pid to see in application or database.

  • I need to monitor a transducer block parameter and save it to a CSV file.

    How can I monitor a transducer block parameter and save it to a CSV file?  The reason is that I need to do some long-term testing of an FFb device we are developing, and I need to read the primary output parameter of the transducer block (not the scheduled AI block) every second or two and save to a CSV file.
    I have tried to figure out a way to do that with FBUS Configurator, unsuccessfully, and I purchased FBUS Monitor, as that was recommended by an industry expert, but I have been unsuccessful at getting that to work as well.

    Hi Wpinson,
    Neither FBUS Configurator nor Monitor can meet your requirement. However, there are other approaches. NI-FBUS provides APIs for C, LabVIEW, VB and C#. You can use these APIs to read a parameter value of any block and use standard file IO functions to save the date into CSV file. The LabVIEW APIs are highly recommended because they are easy-to-use and LabVIEW also provides APIs for CSV file operations. You can build the application w/ LabVIEW in a short time.
    You can find the examples of the FBUS APIs in the following folders:
    1. C: C:\Program Files\National Instruments\NI-FBUS\MS Visual C\examples
    2. VB: C:\Program Files\National Instruments\NI-FBUS\MS Visual Basic\example
    3. C#: C:\Program Files\National Instruments\NI-FBUS\MS .NET\examples\CsharpExample
    4. LabVIEW: search "fieldbus" in the LabVIEW example finder.

  • Can I speak into my mac and save it as an audio file with garage band

    Can I speak into my mac and save it as digital audio file?

    Looking at the specs, the mini does not appear to have a built-in microphone as the iMacs do. You can't just plug a microphone into the input socket, as that is line level and a microphone doesn't have enough output. Your easiest move would be to buy a USB headset such as the one Plantronics makes for use with Skype: this should work straight off.
    Sound Recorder is a simple audio recorder: I've not used it, so I don't know if it's any good, but it would at least cost you nothing to try it.
    Amadeus II and Amadeus Pro are reasonably priced and are fully featured sound recorders and editors which can save in a number of formats.

  • When I set all the tracks in the latest Garageband to the same volume levels and save, when I open the file again they've changed back to a previous setting?

    I'm trying to mix a recording in the latest 2014 version of Garageband, but when I set all the tracks in the latest Garageband to the same volume levels and save, when I open the file again they've changed back to a previous setting? Does anyone know why it changes even after saving the file?
    Below is my iMac settings.

    Do you have a back up?
    If not you're into using file recovery software like  File Salvage - you can download a free trial and it will scan the disk for you and tell you with might be recoverable. Actual recovery will require that you purchase the app. There may be many files with the same or similar names. Always recover the largest file size.
    There are other such apps. Search on Macupdate or the App Store

  • Ever since the last update I don't have my old bookmarks, can't add new ones and can't import my HTML file. How do I fix this?

    ever since the last firefox update I don't have my old bookmarks, can't add new ones and can't add my HTML file of my bookmarks

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Can I copy one frame of a movie using iMove and save the frame as a file that can be printed like a picture?

    Can I copy one frame of a movie using iMovie and save the frame as a file that can be printed like a picture?  If so, how do I do that?

    You could if you want a postcard sized print.
    Printers need a lot more "dots" per inch and even a 1920X1080 video doesn't have enough "dots" to make more than a postcard.
    Look at the "More Like This" links at the right side of this page for instructions.

  • Firefox when saving a "complete html" file is downloading a folder and "2" copies of the html file not one. One of these has the same name but "0" kb content

    Hi. The only save options for a full html type file on Firefox is as "web page, complete" and as I say when saving with Firefox the program is saving the usual yellow folder with links and artwork files etc, but is saving 2 copies of the HTML file where on of these files is empty, won't open and gets locked to the destination it was saved to. This empty file can't be moved, and can't be deleted. When this is attempted it gives message "cannot delete (or "move" if this is the case) : Cannot read from the source file or disc."
    To overcome this I now use Internet Explorer, dut prefer not to. I have also deleted Firefox from my system and re-installed it, but this did not help. How can I stop this doubling of saved files? and how can I delete the ones that are now fixed to my desktop? can you lease help?

    You said, ''Would like to sort this one out...any clues?''
    Maybe something here will help:
    *http://en.wikipedia.org/wiki/MHTML
    *http://en.wikipedia.org/wiki/Mozilla_Archive_Format
    *http://maf.mozdev.org/
    *http://maf.mozdev.org/documentation.html

  • Converting Smartforms output content into HTML File

    Hi,
    I have a requirement, Smartforms output contents needs be converted as HTML File and it should be sent as email.
    I am able to get the Smartforms output in html format but the output is shown as binary format.
    After the fm call the job_output_info parameter is holding the smartforms output content in
    job_output_info-XMLOUTPUT[]           (xsf content)
    job_output_info-XMLOUTPUT-STSHEET[]   (css content)
    job_output_info-XMLOUTPUT-TRFRESULT[] (html content)
    Help me out how to handle the job_output_info details to html format.
    Code
    DATA v_fm_name TYPE rs38l_fnam.
    DATA v_tdsfname TYPE tdsfname VALUE 'ZVR39_SF'.
    DATA output_options TYPE ssfcompop.
    DATA job_output_info TYPE ssfcrescl.
    DATA document_output_info TYPE ssfcrespd.
    DATA job_output_options TYPE ssfcresop.
    DATA w_control TYPE ssfctrlop.
    *-Finding the Smartform Layout Name
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = v_tdsfname
      IMPORTING
        fm_name            = v_fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
    *-Defining the output to HTML Format
    *-Activating XSF Output
    output_options-xdfcmode   = 'X'.
    output_options-xdf        = space.
    output_options-xsfcmode   = 'X'.
    output_options-xsf        = 'X'.
    output_options-xsfoutmode = 'A'. "
    output_options-xsfoutdev  = 'P863'.
    output_options-xsfformat  = 'X'.
    *-Calling the Smartform Layout
    CALL FUNCTION v_fm_name
      EXPORTING
        output_options       = output_options
        user_settings        = 'X'
      IMPORTING
        document_output_info = document_output_info
        job_output_info      = job_output_info
        job_output_options   = job_output_options
      EXCEPTIONS
        formatting_error     = 1
        internal_error       = 2
        send_error           = 3
        user_canceled        = 4
        OTHERS               = 5.
    Giri

    Hi,
    Check this link.In that,I am converting the output of smartform to PDF and then attaching it through mail.
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/smartforms/smartform in abap.pdf

  • Save Form As An HTML File

    Hi.
    I recently asked how to save the actual rendered HTML code for a form. However, since posting that I found out that my management really just wants to have a form saved as an HTML (.html) file. And so, I decided to post this question under a new thread so as to not add to confusion. I also marked the previous erroneous question as "answered".
    So then, how does one save a form (tabular or just a page containing form fields such as fill-in text fields, checkboxes, radio buttons, etc.), with the answers that a user supplies, as an .html file? One can do this with a report, but I do not see how to do this with a form.
    Any help would be much appreciated.
    Thank you.
    Elie

    Oh, I forgot to include some needed specifics:
    I'm using Apex 4.1 against Oracle 10.2.0.5 on Linux and OAS (mod_plsql).
    Thank you, again, for any help on this.
    Elie

  • Getting links and its names from a html file

    Hi everyone
    My problem about the a getting links with name from a html file. For example
    İn a web page in this site ?SUN? when use click SUN the browser open http://java.sun.com
    İ want both of them, so the links and name. I can succeeded the get link but i don t know how to get the link name.
    For example :
    <B>setRightComponent(Component)</B>
    &#304;n this code segment i want to get B tag. But how i don t know. To get A tag i used this code
    List result = new ArrayList();
    try {
    // Create a reader on the HTML content
    URL url = new URI(uriStr).toURL();
    URLConnection conn = url.openConnection();
    Reader rd = new InputStreamReader(conn.getInputStream());
    // Parse the HTML
    EditorKit kit = new HTMLEditorKit();
    HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
    kit.read(rd, doc, 0);
    // Find all the A elements in the HTML document
    HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
    while (it.isValid()) {
    SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
    String link = (String)s.getAttribute(HTML.Attribute.HREF);
    if (link != null) {
    result.add(link);
    it.next();
    &#304; can use B tag but i don t know hot to get its value because it has no prefix such as HREF....
    i am sorry if i use a bad explanation style or incorrect word.

    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    class GetLinks
        public static void main(String[] args)
            throws Exception
            // Create a reader on the HTML content
            Reader reader = getReader( args[0] );
            // Parse the HTML
            EditorKit kit = new HTMLEditorKit();
            HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
            doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
            kit.read(reader, doc, 0);
            // Find all the A elements in the HTML document
            HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
            while (it.isValid())
                SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
                String href = (String)s.getAttribute(HTML.Attribute.HREF);
                int start = it.getStartOffset();
                int end = it.getEndOffset();
                String text = doc.getText(start, end - start);
                System.out.println( href + " : " + text );
                it.next();
        // If 'uri' begins with "http:" treat as a URL,
        // otherwise, treat as a local file.
        static Reader getReader(String uri)
            throws IOException
            // Retrieve from Internet.
            if (uri.startsWith("http:"))
                URLConnection conn = new URL(uri).openConnection();
                return new InputStreamReader(conn.getInputStream());
            // Retrieve from file.
            else
                return new FileReader(uri);
    }

  • Open in same window and clean cache from swf + html file generate with InDesign CS5

    Hi,
    1)
    I have a Indesign web file exported to swf + html.
    In my document I have a button that point to url (this url is html file of a second Indesign swf + html).
    When I click on button, the url was find an open in another window.
    Is it possible to open this second url in the same window?
    If yes How.
    I think this information is in the swf file and not in html.(How modify the swf code?)
    2)
    How to clean the cache when you reload the url? (in the html generate file)
    I'will very please if somebody of you could help me. it's Important for me.
    Regards
    Philippe

    Okay, I found the code but I can't get it to work locally.  If you have a web server maybe you can upload the files (swf and html) after you Publish them:
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    var myURL:URLRequest = new URLRequest ("http://www.google.com");
    testlink.addEventListener(MouseEvent.CLICK, clickText);
    function clickText(myevent:MouseEvent):void {
    navigateToURL(myURL, "_self");
    you have to have on the stage a link element called "testlink" (see the code above) which would be a Movie Clip with the label testlink.  It can be anything from InDesign:  a button, a rectangle, a circle, a graphic, you get the idea.  Just select that object in Flash and label it testlink or anything you choose but if you change the name from testlink also change the name in the code snippet where the line "addEventListener" is.

  • Need someone on PC to open and save Pro 1.5 project file in CS3

    I am trying to salvage one of my old project files from when i worked on a PC. i can't do this because CS3 for Mac won't import old PC project files.
    If anyone would be so kind as to accept my small project file and save it in Premiere Pro CS3 on their PC i would be much obliged.
    -Dave

    theaveragedave,
    On the Mac, the Project file will *usually* appear without any file extension. Instead there will be one, or more, "helper/locator" files. These will usually be the filename, but with "._" (or similar) prepended to it. These are of no use to a PC.
    All that I did was Copy the Project files to a new folder, and in it, added the ".prproj" extension. All opened fine. (Actually, since this was a pre-Pro version, I think that I added ".proj," but you would use ".prproj.")
    If I were going to "convert" the Project, I'd gather up all Assets, keeping the folder structure exactly the same. Gather up the Project files (renaming, as is necessary), and furnish all of this to the person doing the conversion. This *should* keep your Asset Links working*. The other option would be to just convert the Project file, but then you will have to manually re-Link every Asset. If one gets lucky, and the Assets are stored in one folder, PP *might* be able to have you locate the first missing Asset, and then automatically locate the rest. I hesitate on this last comment, because you will have converted the Project, so things do not always work 100% the way they would otherwise. I had to do a lot of re-Linking, but I was jumping several versions and from Mac to PC. Still, once the Assets were re-Linked, all has worked perfectly.
    Good luck finding a PC operator with CS3. Should not be that hard. Wish I could help you more, but CS2 won't cut it, for what you need to do.
    Hunt
    * Keeping the drive letter the same will be a big step to keeping your links. Let's say that you are working on your D:\ drive (sure that Mac would call it something else), and you copy over to an external. I'd have the PC operator copy the Assets (with folder structure) to their D:\, just to keep the Links. Does this make sense?
    PS one little consideration is Mac's not using NTSF HDDs and the file size limitation of Fat-32 HDDs. However, you already have your Project and its Assets on a Mac, so this is probably moot.

  • How to withdraw a wrong open and save of a structured fm file in unstructured mode?

    I opened a structured fm file wrongly in unstructured mode and saved it. When I opened this fm file again in structured mode, the structure view has been blank. Does anyone no how to withdraw this?

    Dragon,
       To expand slightly on what Alex and Russ have said, whenever you delete content from a FrameMaker document  and save the result, the deleted content is gone. It doesn't matter whether the deleted content is the element hierarchy or text and graphics in the document. A recent backup, whether a version of the file that you explicitly saved or one created by FrameMaker's automatic backup, is
       Alex mentioned that a conversion table might help recreate the document's element structure. His comment assumed that a conversion table was used somewhere in the history of this document. Whether or not that is the case, you can create a new conversion table specifically for this document. If you haven't looked at conversion tables yet, a conversion table is a FrameMaker table that describes how to use tagging in an unstructured document to create an equivalent structured document. How successfully it creates the desired structure depends very much on the nature of the tags used in the unstructured document and the desired element structure.
        --Lynne

Maybe you are looking for