Runtime output redirect.

Hi guys, I am new to this forum, not sure where this question belongs. Please let me know if you think I should post elsewhere.
I want to re-direct the output of an active process on Solaris 8. Can that be done?
Thanks, Wade.

Once a program is in execution, I don't think, you can redirect the output of that process from outside.
Process as such can manipulate its stdin/stdout/stderr during its life time.

Similar Messages

  • Issues with using the output redirection character with newer NXOS versions?

    Has anyone seen any issues with using the output redirection character with newer NXOS versions?
    Am receiving "Error 0x40870004 while copying."
    Simply copying a file from bootflash to tftp is ok.
    This occurs for both 3CDaemon and Tftpd32 softwares.
    Have tried it on multiple switches - same issue.
    Any known bugs?
    thanks!
    The following is an example of bad (NXOS4.1.1b) and good (SANOS3.2.1a)
    MDS2# sho ver | inc system
      system:    version 4.1(1b)
      system image file is:    bootflash:///m9200-s2ek9-mz.4.1.1b.bin
      system compile time:     10/7/2008 13:00:00 [10/11/2008 09:52:55]
    MDS2# sh int br > tftp://10.73.54.194
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    TFTP put operation failed:Access violation
    Error 0x40870004 while copying tftp://10.73.54.194/
    MDS2# copy bootflash:cpu_logfile tftp://10.73.54.194
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    |
    TFTP put operation was successful
    MDS2#
    ck-ci9216-001# sho ver | inc system
      system:    version 3.2(1a)
      system image file is:    bootflash:/m9200-ek9-mz.3.2.1a.bin
      system compile time:     9/25/2007 18:00:00 [10/06/2007 06:46:51]
    ck-ci9216-001# sh int br > tftp://10.73.54.194
    Trying to connect to tftp server......
    |
    TFTP put operation was successful

    Please check with new version of TFTPD 32 server. The error may be due to older version of TFPT server, the new version available solved this error. Files are getting uploaded with no issues.
    1. Download tftpd32b.zip from:
    http://tftpd32.jounin.net/tftpd32_download.html
    2. Copy the tftpd32b.zip file into an empty directory and extract it.
    3. Copy the file you want to transver into the directory containing tftpd32.exe.
    4. Run tftpd32.exe from that directory. The "Base Directory" field should show the path to the directory containing the file you want to transfer.
    At this point, the tftpserver is ready to begin serving files. As devices request files, the main tftpd32 window will log the requests.
    Best Regards...

  • Runing an exec from class Runtime and redirecting its output ...?..?

    Hello!
    I am trying to run a C exec by using th eRuntime class.
    This works well ...
    But, I want to redirect its output to my transcript.
    This also works with small output (some lines !) ...
    But the out put is up to 3000 lines, my program does
    not continue. It is suspended in a waiting state.
    I suspected that the buffer is filled, but there is still some lines to be written ...?
    Anyone knows this problem and the solution ..?
    Thanks by advance
    Yaz

    You could try something like thisjava.util.List al = new ArrayList();
    try {
         Process p = Runtime.getRuntime().exec("cmd.exe /c dir");
         BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
         String s = "";
         while ((s=br.readLine()) != null) {
              al.add(s);
         ListIterator li = al.listIterator();
         while (li.hasNext()) {
              System.out.println(li.next());
    catch (IOException ioe) {}Mark

  • Command output redirect question

    Hi guys,
    I am putting in a kron function to transfer the command output from all the switches and routers on our network to a tftp server.
    I have the kron occurence and policy lists set up the way I want them and have tested the redirection of the command line output to the server.
    The problem I have is that I want to back up the switches 3 or 4 times once a week to compare the configs to make sure that no unwanted changes are being made over the course of the month.
    Is there a way to use a variable to change the file name when it redirects? Currently when the occurence runs the file modified time on the tftp server changes but the output doesnt append as I had hoped it would, i.e one file having the config copy in to the file over and over.
    Thanks for your help

    You might want to consider the built-in Config Archive feature instead of kron.  With Config Archive, you can periodically take backups of your config (even to a network server), and you can adjust the filenames using either date or hostname (or both).  Check out the documentation at http://www.cisco.com/en/US/docs/ios/12_3t/12_3t7/feature/guide/gtrollbk.html#wp1100253 for more details.
    In addition to Config Archive, you also have the option of going with the Embedded Event Manager.  EEM also has a cron feature which will allow you to run CLI commands periodically.  Depending on your IOS version, it may be possible to do what you want using a simple EEM applet, or you might have to use a Tcl script policy.  More on EEM can be found at http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_eem_overview_ps10592_TSD_Products_Configuration_Guide_Chapter.html .
    All that said, most TFTP servers have a security requirement that a file must exist on the server before one can write to it.  Therefore, if you try and create new files (i.e. a new file each day), the TFTP server may reject the WRITE REQUEST unless a file with that name already exists.  In light of that, you may need to use something like SCP or FTP instead.

  • Output redirection

    The new JDeveloper only stores a small amount of the output in the message window.
    How do I change this to store all of it, or better yet, redirect System.err and/or
    System.out to a file?
    Also, the forum pages appear blank on my Mozilla Browser 10/19 build!
    So does the preview

    javac will only generate output to stderr, so you need javac 2> somefile.txt instead of javac > somefile.txt

  • Output redirect in ttisql

    Hi,
    I am trying to use TimesTen for benchmarking tpc-h queries. My first approach is to use:
    time ttisql < query > /dev/null
    , as I do not want to account for result printing. However, opening and closing the ODBC connection introduces a delay of 2-3 seconds, while the query execution time is 1-2 seconds, which is unacceptable.
    Another thought was to connect through ttisql and use "timing 1" to get execution times. Still, I have not managed to find any way of redirecting the output to /dev/null inside ttisql (starting with ttisql > /dev/null will make execution time printing impossible).
    What is the best way of running benchmark queries in TimesTen?
    Thanks.

    The 'best' way is usually to run the queries from a program that includes timing logic but for long queries such as TPC/H ttIsql is okay.
    If you issue the command 'verbosity 0' in ttIsql it will suppress the display of returned data while still outputting the timing information. That should do the trick for you.
    Chris

  • Cisco PI configuration template output redirection

    hi all,
    I need to configure a configuration template to find the output of "show cdp neighbor" using Cisco PI and redirect the output to another server like ftp or tftp.
    please advise

    Hi Mohamed,
    Go to Design > Feature Design >CLI template > System CLI template  >> select any template and click on "Save as new Template"
    that new template will be under Design > Feature Design > My template > EDIT it and add the command that you want to use " show cdp neighbour".
    Then DEPLOY it against the devices that you want to deploy.
    You can export the output  , print it , however you will not be redirect the output directly to ftp or tftp server
    Thanks-
    Afroz
    ****Ratings Encourages Contributors ****

  • Forms runtime output

    I installed Oracle 10g Developer Suite and when I ran a form it asked to install Jinitiator; I did and then the form output comes as HTML code having fmx name username ... etc

    Soma,
    New installs of Oracle 10g Dev Suite is a frequently discussed issue. Rather than summarize all of the the different posts regarding installation, I suggest you search the forum for "10G Install". The problem you are encountering is a "SETUP" issue and can easily be resolved with the information found by searching the forum. The following link will give you a quick list of things to check [10 Forms - what else do I need to install to run on web?| 10 Forms - what else do I need to install to run on web?
    Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question, please mark the response accordingly. Thanks!

  • Runtime.getRuntime().exec()  unix shell

    When I try to run commands like Runtime.getRuntime().exec("ls *")
    I got null returned buffer
    If I use commands like Runtime.getRuntime().exec("ls file.dat")
    i got the right details
    Anybody know why it happens???
    Thanks

    Input-output redirection, filename wild-card-expansion, metacharacter evaluation etc. are performed by the command shell.
    You should try String [] {"sh","-c","ls","*"}

  • Runtime.Exec with cmd and problem in waitFor

    Hi
    I am running
    Process p1 = Runtime.getRuntime().exec("cmd /c start /min <some.exe> <args to exe>");
    then I am checking
    Int ExitVal = p1.waitFor;
    If (ExitVal != 0) and so on.
    However, the problem is that the p1.waitFor does not really block the thread. It returns 0 and the program continues even though the some.exe has still not completed its execution.
    My guess is that Java is giving the exitcode of cmd.exe and not some.exe.
    If this analysis is correct, I am stumped. How do I get the exit code of some.exe?
    If my analysis is wrong, please help me in the right direction.
    Regards
    Shreekar

    "Enables a user to start a separate window in Windows
    from the MS-DOS prompt."<p>
    Again, I read it afterwards. However, another funny thing is happening now. Initially my command was
    "cmd start /min (some.exe) (some args) > somefile.txt"
    (I know I missed to show the output redirection in my original post.)
    </p>
    <p>
    Then I removed "start /min", it is working as expected.
    Then I removed the output redirection and now it hangs !!!
    I put back the output redirection and it is working. Does the output redirection make it wait in some way and force it to exit gracefully?
    </p>
    Any ideas?

  • Can you tell the output type within template?

    Hi all,
    we're using Oracle apps 11.5.10 and we have the usual leading zero problem when exporting to Excel.
    From what I've read, Excel uses the 'TypeGuessRows' registry setting to read through a specify number of rows to decide whether a column is numeric and then drops the leading zeros. I've also seen the proposed solution of putting a quote mark to trick Excel. We have a requirement to display the right numbers including leading zeroes in both PDF and Excel. So now I'm down to 2 choices.
    1) create a separate template for PDF without the quote or my question
    - Within a template, can you tell what the runtime output type is? Does the XML Publisher engine provide a way to obtain this value within a template?

    Hi Mike,
    I used
    <fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?D_INVOICE_NUM?></fo:bidi-override>
    and it still didn't work. The invoice number is alphanumeric an sometimes just contains numbers with leading zeroes which is what I'm testing with.
    Cheers
    Kofi

  • Problems with the output of an array

    Hallo,
    I have got problems with giving out an array.
    I declared two arrays and puted them out, but with the
    resultarray it doesn�t work. Cansomebody help me?
    Here is a runtime output:
    Grad eingeben!
    1
    Koeffizienten eingeben!
    1
    2
    1x^0 + 2x^1 +
    1
    Grad eingeben!
    3
    Koeffizienten eingeben!
    2
    3
    4
    5
    2x^0 + 3x^1 + 4x^2 + 5x^3 +
    3
    p:1
    this:3
    And here is the source code
    // Die Klasse Polynom dient dem Umgang mit dem Polynom
    //Sie enth�llt die Methoden:
    //   > public void readCoeffizients()
    //   > public void show()
    //   > public int getGrad()
    //   > public Polynom add(Polynom p)
    //Und den Konstruktor:
    //   > public Polynom(int  n)
    public class Polynom
      private int grad;
      int [] coeffizient;
      private Polynom q1;
      public Polynom(int  n) //Konstruktor mit Stanard-Initialisierung
        this.grad = -1;
        this.coeffizient = new  int [n+1];
        for(int i=1; i<(n+1); i++)
          this.coeffizient[i] = 0;
      public void readCoeffizients() // Methode zum Einlesen der Koeffizienten
        this.grad = (coeffizient.length)-1;
        System.out.println("Koeffizienten eingeben!");
        for(int i=0; i<(grad+1);i++)
          this.coeffizient[i] = Eingabe.intValue();
      public void show() // Methode zum Ausgeben des Polynoms
        for (int i=0; i<(this.getGrad()+1);i++)
          System.out.print(coeffizient[i] + "x^" + i + " + ");
        System.out.println();
      public int getGrad()
        return this.grad;
      public Polynom add(Polynom p) // Methode zum Addieren zweier Polynome
        System.out.println("\np:" + p.getGrad());
        System.out.println("this:" + this.getGrad());
        if(p.getGrad() >= this.getGrad()) // Vorgehen falls p.getGrad() gr��er als this.getGrad()
          q1 = new Polynom(p.getGrad());
          grad = p.getGrad();
          for(int i=0; i<(this.getGrad()+1);i++)
            q1.coeffizient[i] = this.coeffizient[i] + p.coeffizient;
    for(int i=(this.getGrad()+1);i<(p.getGrad()+1);i++)
    q1.coeffizient[i] = p.coeffizient[i];
    else // Vorgehen falls this.getGrad() gr��er als p.getGrad()
    q1 = new Polynom(this.getGrad());
    grad = this.getGrad();
    for(int i=0; i<(p.getGrad()+1);i++)
    q1.coeffizient[i] = this.coeffizient[i] + p.coeffizient[i];
    for(int i=(p.getGrad()+1);i<(this.getGrad()+1);i++)
    q1.coeffizient[i] = this.coeffizient[i];
    return q1; // R�ckgabe des Ergebnisspolynoms
    // Diese Klasse testet die Klasse Polynom
    public class Test
    public static void main(String[] args)
    System.out.println("Grad eingeben!");
    Polynom p1 = new Polynom(Eingabe.intValue());
    p1.readCoeffizients();
    p1.show();
    System.out.println(p1.getGrad());
    System.out.println("Grad eingeben!");
    Polynom p2 = new Polynom(Eingabe.intValue());
    p2.readCoeffizients();
    p2.show();
    System.out.println(p2.getGrad());
    //Polynom p3 = (p2.add(p1));
    //p3.show();
    (p2.add(p1)).show();
    Thanks for your help!

    Ehm, this should really be obvious: because in the
    first two cases you are using the constructor
    and readCoeffizients(), whereas in the third
    case you are only using the constructor.You?re right, but I initiate grad in the add method.Then look again: you don't! You are calling the constructor, but the constructor is not assigning grad in a proper way. If you are refering to the line grad = p.getGrad();this is in fact equal to this.grad = p.getGrad();But this.grad is not q1.grad (which is private). Assign grad in the constructor only (where it belongs) or better still don't use grad at all and derive the degree of the polynom from the length of the coefficients array.

  • Disabling runtime in explorer for forms 9i

    Hi
    Can we disable the forms runtime output to explorer temperorily in forms 9i so that it function like forms 6 or lower ?
    thanks in adv
    Ranjeet

    Ranjeet,
    not sure if I understand the question. Do you mean that Forms should run in the Browser but on the client ? This is not possible in Forms9i because its Web only. Please refine the question if I didn't get the question right.
    Frank

  • Sh -x output

    How to have the sh -x output of the trace be redirected to a file

    This is a function of the output redirect of the shell you may be using.
    The output from the '-x' option is being sent to the STDERR output file descriptor. This is so that if you are sending the output of the script to one file you can send the output of this some place else, or even keep it going to the screen.
    So what you want is something like this:
    sh -x command > /tmp/command.out 2> /tmp/xoption.outMake sure there is no space between the 2 and the '>'. This tells the shell to redirect STDERR to /tmp/xoption.out. Of course you can make these any files you like. You can even use this shortcut to redirect both to the same file:
    sh -x command > /tmp/command.out 2>&1Make note that these get processed in order so if you put '2>&1' before the '>' redirect you will just sent STDERR back to the original STDOUT (usually the terminal) and it won't have the desired results.
    Hope that helps.

  • Differenct between Lookup Error Output and Lookup No Match Output

    Hi All
    I'm new in SSIS and reading book for SSIS and unable to understand the difference between Lookup Error Output and Lookup No Match Output in Lookup transformation. Are these terms same or is there any difference between them ?. Please guide
    Thanks
    Regards
    Muz

    Nope. Error output is more generic ie any errors happening inside lookup can be redirected to error output by default. This includes lookup match failures as well as data conversion error, truncation error etc. Upto SSIS 2005 this was the only output available
    in addition to match output inside lookup so if you want to capture unmatched rows you had to redirect them to error output itself.
    But from SSIS 2008 onwards they've introduced one more output called no match output. This gives you ability to redirect only no matched rows through no match output so that you'll be able to distinguish between unmatched rows and other error rows.
    You can configure this option inside Specify how to handle rows with no matching entries option in Lookup Editor. You can choose Ignore Failure,
    Redirect rows to no match output,Redirect rows to error output etc as options
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • Aperture stopped syncing photos to iPad & ATV via iTunes

    Out of the blue my iTunes has completely stopped syncing my Aperture photo library to both iPad and ATV devices. In iTunes the drop-down selection for iPhoto and Aperture is there but when I click sync nothing happens. My video, audio and apps all sy

  • Message no FH017 Open item management only allowed for balance sheet accounts

    Dear All, i try to change one Balance Sheet account to P&L Account. However i failed changing the account. it pops up the error Message no FH017. For this error, i have already untick the Open Item Management Can anyone help me on this? Very apprecia

  • Problems playing music in itunes

    I recently installed Itunes on my laptop as I had sold my PC with it on. I don't know if I managed to successfully create an export library, but when I tried to import it, it didn't work. I managed to download my music again through 'purchased' howev

  • How do I get Itunes to play my TV programmes continuously and shuffle the series'?

    I have 3 Series' of The Big Bang Theory and as i have the laptop hooked up to my TV, i would like to be able to just put them all in a playlist and press shuffle, but it only ever plays one then stops. I tried putting them in a smart playlist, but th

  • Roaming Profile RDS + NetApp

    Hello everybody. I need some help with a problem on my RDS 2008r2 project, which has to deal with Roaming Profile and inheritable permissions from parent folder. We have NetApp storage and through GPO, we want to store these users roaming profiles in