Get console output

Hi!
I have a problem. I would like to get a hand on the console output in my applet. Not saving it to a file, but get the info as a String(or similar) in my program.
Is this possible? If so, how do I do it? Is there any class(es) to handle this?
Thanks in advance.
Peter.

Try this....u may need some customizing...what i'm presenting is an idea. You have to choose how to use it.
regards,
DeeJay
import java.io.*;
import javax.swing.*;
public class IOTest {
     public static void main(String args[]) throws IOException {
          ByteArrayOutputStream baos = new ByteArrayOutputStream();
          PrintStream ps = new PrintStream(baos);
          System.setOut(ps);
          System.setErr(ps);
          System.out.println("Output");
          JOptionPane.showMessageDialog(null, new String(baos.toByteArray()));
          System.err.println("Error");
          JOptionPane.showMessageDialog(null, new String(baos.toByteArray()));
}

Similar Messages

  • Jarred swing app and getting console output

    Hi,
    I've created a jar app using eclipse that starts a swing application. The jar works fine, but I was curious if there was a way to double-click the file and get console output as well. When I start the program through the command line, I can get my output, but double-clicking the icon doesnt' start up a console. Is there a way to accomplish this?
    Thanks

    Normally in Windows systems the javaw executable is assigned to the jar extension. javaw is a jvm without console. You might want to change that and assign java to jar but be aware, that this affects all jar files.
    If you want to do that just for that jat file I would write a bat file which starts the application using java.

  • How do I get console output back on bootup?

    I have several scripts that put status messages to the console on bootup. Now with Greenline it all goes to /var/svc/log/.... which doesn't do me much good.
    How can I get output to the console on bootup back? Note: boot -m verbose doesn't do it.

    If you must do this, change your scripts to output the messages to
    /dev/msglog. A good way to do this is
    my_command | tee /dev/msglogso that the message goes to both the screen and the log.
    (Standard error will only go to the log in the above case.)
    It might be useful to look at some of the method scripts in
    /lib/svc/method for other examples.
    - Stephen

  • Simple question about systemd console output - can i get a timestamp?

    hello. with the old syslog program, sending the log to a console used to yield essentially the same output as /var/log/everything.log, critically including timestamps before each entry. Now with systemd, enabling console output just gives each entry by itself, so you can't tell if you're looking at 5 seconds worth of activity or 5 days. any way a timestamp can be added here? i'd find that useful on my servers, as I have a screen connected to them but no keyboard.
    thanks

    Console output of what? Please post the exact command you're using and the output.
    # journalctl -b
    -- Logs begin at Sun 2013-08-11 17:23:43 CEST, end at Wed 2013-09-11 05:36:39 CEST. --
    Sep 10 19:11:44 localhost systemd-journal[36]: Runtime journal is using 184.0K (max 49.8M, leaving 74.8M of free 498.4M, current limit 49.8M).
    Sep 10 19:11:44 localhost systemd-journal[36]: Runtime journal is using 188.0K (max 49.8M, leaving 74.8M of free 498.4M, current limit 49.8M).
    Sep 10 19:11:44 localhost kernel: Initializing cgroup subsys cpuset
    Sep 10 19:11:44 localhost kernel: Initializing cgroup subsys cpu
    Sep 10 19:11:44 localhost kernel: Initializing cgroup subsys cpuacct
    Sep 10 19:11:44 localhost kernel: Linux version 3.11.0-1-ARCH (tobias@testing-i686) (gcc version 4.8.1 20130725 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Sep 3 0
    Sep 10 19:11:44 localhost kernel: e820: BIOS-provided physical RAM map:
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x0000000000100000-0x000000003f6effff] usable
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x000000003f6f0000-0x000000003f6fafff] ACPI data
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x000000003f6fb000-0x000000003f6fffff] ACPI NVS
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x000000003f700000-0x000000003f77ffff] usable
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x000000003f780000-0x000000003fffffff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec0ffff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x00000000ff800000-0x00000000ffbfffff] reserved
    Sep 10 19:11:44 localhost kernel: BIOS-e820: [mem 0x00000000fffffc00-0x00000000ffffffff] reserved
    <cut>
    Sep 10 19:11:56 black kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    Sep 10 19:11:56 black systemd-logind[164]: Watching system buttons on /dev/input/event2 (Power Button)
    Sep 10 19:11:56 black systemd-logind[164]: Watching system buttons on /dev/input/event1 (Power Button)
    Sep 10 19:12:00 black login[167]: pam_unix(login:session): session opened for user karol by LOGIN(uid=0)
    Sep 10 19:12:00 black systemd[1]: Starting user-1000.slice.
    Sep 10 19:12:00 black systemd[1]: Created slice user-1000.slice.
    Sep 10 19:12:00 black systemd[1]: Starting User Manager for 1000...
    Sep 10 19:12:00 black systemd-logind[164]: New session 1 of user karol.
    Sep 10 19:12:00 black systemd[1]: Starting Session 1 of user karol.
    Sep 10 19:12:00 black systemd[191]: pam_unix(systemd-shared:session): session opened for user karol by (uid=0)
    Sep 10 19:12:00 black systemd[1]: Started Session 1 of user karol.
    Sep 10 19:12:00 black login[167]: LOGIN ON tty1 BY karol
    Sep 10 19:12:00 black systemd[191]: Failed to open private bus connection: Failed to connect to socket /run/user/1000/dbus/user_bus_socket: No such file or dir
    Sep 10 19:12:00 black systemd[191]: Mounted /sys/kernel/config.
    Sep 10 19:12:01 black systemd[191]: Stopped target Sound Card.
    Sep 10 19:12:01 black systemd[191]: Starting Default.
    Sep 10 19:12:01 black systemd[191]: Reached target Default.
    Sep 10 19:12:01 black systemd[191]: Startup finished in 619ms.
    Sep 10 19:12:01 black systemd[1]: Started User Manager for 1000.
    Sep 10 19:12:00 black dhcpcd[168]: eth0: leased 192.168.1.4 for 259200 seconds
    Sep 10 19:12:00 black dhcpcd[168]: eth0: adding host route to 192.168.1.4 via 127.0.0.1
    Sep 10 19:12:00 black dhcpcd[168]: eth0: adding route to 192.168.1.0/24
    Sep 10 19:12:00 black dhcpcd[168]: eth0: adding default route via 192.168.1.1
    <cut>
    (No idea why there's 'Sep 10 19:12:01' followed by 'Sep 10 19:12:00')

  • I want to show console output in my cmd prompt in C# winform application

    Hi,
    I'm launching the some process in C# .net Winform appliaction. But i couldn't able to see console output on the screen. The process is getting launched but inside cmd prompt window, it is showing nothing. I would like to show something on cmd prompt. Please
    help on this.
     using (Process comxdcProcess = new System.Diagnostics.Process())
                            comxdcProcess.StartInfo.FileName = fileName;
                            comxdcProcess.StartInfo.Arguments = args;
                            comxdcProcess.StartInfo.RedirectStandardError = true;
                            comxdcProcess.StartInfo.RedirectStandardOutput = true;
                            comxdcProcess.StartInfo.UseShellExecute = false;
                            comxdcProcess.Start();
                            this.errorComment = comxdcProcess.StandardError.ReadToEnd();
                            StreamReader myStreamReader = comxdcProcess.StandardOutput;
                            //// Read the standard output of the spawned process. 
                            this.errorComment = myStreamReader.ReadToEnd();
                            comxdcProcess.WaitForExit();
    click "Proposed As Answer by" if this post solves your problem or "Vote As Helpful" if a post has been useful to you Happy Programming! Hari

    @Hariprasadbrk
    Do you mean you have use process class to start "cmd prompt" And want to display some output in it?
    If so, there is no need to use RedirectStandardOutput property. This property means the output of an application is written to the
    Process.StandardOutput stream.
    // Setup the process with the ProcessStartInfo class.
    ProcessStartInfo start = new ProcessStartInfo();
    start.FileName = @"C:\7za.exe"; // Specify exe name not cmd exe.
    start.UseShellExecute = false;
    start.RedirectStandardOutput = true;
    // Start the process.
    using (Process process = Process.Start(start))
    // Read in all the text from the process with the StreamReader.
    using (StreamReader reader = process.StandardOutput)
    string result = reader.ReadToEnd();
    Console.Write(result);
    Output
    This section shows the output of the process.
    7-Zip (A) 4.60 beta Copyright (c) 1999-2008 Igor Pavlov 2008-08-19
    Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
    [<@listfiles...>]
    So you can start a cmd exe.
    Please also take a look at the article from codeproject
    How to redirect Standard Input/Output of an application
    In summary, the shutdown proces is invoked from my application, and it displays the output from the process in RichTextBox control.
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Help needed in getting formatted output ?

    Hi members,
    I am a newbie in Java programming. I know C, C++ upto a good level. I was trying to print a pattern like:
    1
    12
    123
    1234
    12345
    But wasn't able to get the output in desired format. I just wanna know how can i get the above mentioned output. The code i written is shown below alongwith the output:
    /* This program is used to print the Pattern of 1,12..... */
    class pattern
         public static void main(String args[])
              int i=1,j=1;
              while(i<=5)
                   j=1;
                   while(j<=i)
                        System.out.println("\t "+ j);
                        j++;
                   i++;
                   System.out.println("\n");
    output:
    F:\Jprograms>java pattern
    1
    1
    2
    1
    2
    3
    1
    2
    3
    4
    1
    2
    3
    4
    5
    F:\Jprograms>
    Any help will be appreciated.
    With regards
    Real Napster

    It's the statement you're using to print to the console:
    println() means print, then go to next line.
    print() doesn't go to the next line.
    So:
    System.out.println("1");
    System.out.println("2");
    Gives
    1
    2
    But System.out.print("1");
    System.out.print("2");
    Gives
    12

  • Can't get console up and running in eclipse

    Hi tried to get the system.console() up with a console object, using code from java tutorial, here: http://java.sun.com/docs/books/tutorial/essential/regex/test_harness.html
    But when I try to run the code, the console never pops up and the return is null. I am using eclipse with java 1.6 installed. I have programmed on this with many other classes before and have not had a problem.
    I am using the fall 07 version of eclipse on windows vista home premium.
    Please advise
    Thanks
    -Z
    Edited by: zhuberg on Aug 16, 2008 9:19 PM
    Edited by: zhuberg on Aug 16, 2008 9:22 PM

    Hi tried to get the system.console() up with a console object,Do you mean you invoked System.console()? If so, you should take the [API docs|http://java.sun.com/javase/6/docs/api/java/lang/System.html#console()] at face value: "Returns the unique Console object associated with the current Java virtual machine, if any". If any.
    If I compile and run the following within Eclipse:
    public class ConsoleEg {
        public static void main(String[] args) {
            System.out.println("System.console()=" + System.console());
    }then I get the output:
    {noformat}
        System.console()=null
    {noformat}The [Console documentation|http://java.sun.com/javase/6/docs/api/java/io/Console.html] elaborates: "Whether a virtual machine has a console is dependent upon the underlying platform and also upon the manner in which the virtual machine is invoked. If the virtual machine is started from an interactive command line without redirecting the standard input and output streams then its console will exist and will typically be connected to the keyboard and display from which the virtual machine was launched. If the virtual machine is started automatically, for example by a background job scheduler, then it will typically not have a console.
    If this virtual machine has a console then it is represented by a unique instance of this class which can be obtained by invoking the System.console() method. If no console device is available then an invocation of that method will return null."
    Perhaps you should use the other methods for I/O: buffered reader and the print stream methods.

  • How do i get a output in CSV of a SQL query executed via SQL Command prompt

    Hi All,
    I have a question with reference to SQL command prompt. I have a sql query which runs properly and gives proper execution in SQL Management console in GUI.
    This report is used to pull the free disk space report of our servers
    As i want to schedule it as a report so i want to script it to run via SQL command prompt. I made the script and it works fine if i enter it in SQL command prompt. When i try to extract the output to a CSV File it fails. Below is the details of the command
    i am using to query to pull the data. Can anyone help me in getting the output of this query in SQL command prompt.
    sqlcmd -W -s , -S Servers FQDN
    use operationsmanager
    Go
    Query:"select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "C:\DataSqlCmd.csv"
    Go
    When i enter the command without the quotes when the query is starting and ending and also without the output command (-s "," -o "C:\DataSqlCmd.csv") it is working and shows the output in the command prompt. Below is the screen shot for
    your reference.
    Due to security reasons i have to erase the server names:
    But when i add the line to extract the output ( -s "," -o "C:\DataSqlCmd.csv") It gives me this error:
    The exact command would be:
    sqlcmd -W -s , -S CINMLVSCOM01.e2klab.ge.com
    use operationsmanager
    Go
    "select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "C:\DataSqlCmd.csv" -h-1
    Go
    saying the syntax is not correct or some thing as per the below screenshot.
    Can any one please help. Below is just the query whi i use to get the output in SQL management studio.
    Can any one make a command for the below quer so i can directly execute and test for getting the output.
    select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled
    Gautam.75801

    Can you try the below query?
    select Path, InstanceName, SampleValue
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < 20 and CounterName like '% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled
    -- replace the below query part in the below SQLCMD C:\>SQLCMD -S SERVERNAME -E -d operationsmanager -Q "select * from sys.databases ds with (nolock) where name='master'" -s "," -o "F:\PowerSQL\MyData.csv" -h -1
    SQLCMD -S SERVERNAME -E -d OperationsManager -Q "select Path, InstanceName, SampleValue
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "c:\MyData.csv" -h -1
    Refer for the other ways 
    http://dba.stackexchange.com/questions/23566/writing-select-result-to-a-csv-file
    --Prashanth

  • Server console output

    Hi,
    I have been using flex from last six month. I have develped one application and now its time to deploy the application. But, I am facing one issue regarding server console output. In my application I have various remote call to java class deployed on JBOSS server. My problem is that, whenever I made any remote call the information of that remote call gets printed on server console. I want to stop this server console printing. How can I do this? Please suggest. I have checked in my code, there is no trace() or system.out.println() command is used. Please help me out of this. Its very urgent.
    Thanks.
    Regards,
    Ravindar Kumar

    Hi
    You can setup properties so that we can save stdout and stderr to files.
    In the setDomainEnv.cmd file of your domain, you can set the properties so that the ouput will be saved to a file
    %WLS_STDOUT_LOG%
    %WLS_STDERR_LOG%
    Vimala-

  • How to set echo of console output  as ' * ' ?

    I've made a bank application in java using console input/output and when the password is typed,it echo the same word as typed.
    So how can i change the echo of console output specially when asking for password ?

    Thankue very much.
    But do me a favour i've jdk 1.5 installed in my system.
    I don't have java.io.Console class file, so will you please send me only that class file or give me link from where i can get that.
    My email address is -
    [email protected]

  • Console output - way too much info...

    when i debug my application i get loads of the following statements in the console output..
    [SWF] /blah/blah/blah.swf/[[DYNAMIC]]/1 - 172 bytes after decompression
    [SWF] /blah/blah/blah.swf/[[DYNAMIC]]/1 - 121 bytes after decompression
    [SWF] /blah/blah/blah.swf/[[DYNAMIC]]/1 - 172 bytes after decompression
    [SWF] /blah/blah/blah.swf/[[DYNAMIC]]/1 - 121 bytes after decompression
    I am using the flash builder beta 2 plug in with Zend Studio 7 and I have got swfs embedded in mx:image tags.
    Maybe it is an issue with Zend Studio and what it displays in the console...  Maybe it is a setting I don't know about in Flash Builder or it could be the embedded swfs... but if anyone can help i would really appreciate it..
    at the moment there are so many messages it is hard for me to locate my trace statements. blessings..

    still looking for an answer if anyone can help..?

  • Visual Studio 2013 Update 4 - VSTest.console Output SDOUT Messages DURING Test Run, NOT After Test Run Completes

    I am using vstest.console.exe and running a test from our internal CI build system, our internal CI build system requires console standard out to be updated at least every 30 minutes to
    ensure that the process has not hung. 
    I am executing the following command using a customer logger and test settings files:
    vstest.console.exe /testcasefilter:"TestCategory=LongTest" /settings:"C:\testing\CodedUI.testsettings" /logger:TRX /logger:CodedUITestLogger "C:\AppTests\CodedUITest.dll" /InIsolation
    I have copied and modified the following custom logger(see
    here for more info):
    https://github.com/ppiotrowicz/AwesomeLogger
    Such that after the test is executed the pass/fail/success information is printed to the standard out console.
    Tests run: 1, Errors: 0, Failures: 0, Inconclusive: 0, Time: 00:00:87.9331298 minutes
    Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
    It's important to be clear that the test run takes 90 minutes, it's a long running test.
    Time: 00:00:87.9331298 minutes
    When the test run is executed for 90 minutes I see the following and our CI build system kills the process after 30 minutes of no output, so in the failure log I see:
    vstest.console.exe /testcasefilter:"TestCategory=LongTest" /settings:"C:\testing\CodedUI.testsettings" /logger:TRX /logger:CodedUITestLogger C:\AppTests\CodedUITest.dll
    Microsoft (R) Test Execution Command Line Tool Version 12.0.31101.0
    Copyright (c) Microsoft Corporation. All rights reserved.
    Running tests in C:\testing\bin\debug\TestResults
    Starting test execution, please wait...
    However I have a data-driven codedUI test pulling from a csv data source, that successfully executes, however the test takes 90 minutes to run....which means that for 90 minutes the console output displayed is only:
    Running tests in C:\testing\bin\debug\TestResults
    Starting test execution, please wait...
    How can I have vstest.console output to standard out DURING the test run to the console?
    Is there a way in the .testsettings file to enable more verbose logging
    DURING the test execution?
    In MSTest it was possible to use the parameter (/detail:stdout) which would display info while the test was running.  
    MSTEST /testcontainer:MyDllToTest.dll /testSettings.local.TestSettings /detail:stdout
    Ian Ceicys

    I ended up solving the issue for our internal CI system with the following threaded coded. I don't like that it just prints: CodedUI Test Run in progress. How can I query for a percent complete for test execution status or get a reading on the iteration
    that's running for each row in the csv data source?
    [Test, Category("RunCodedUITest")]
    public void RunVsTestConsole()
    //ARRANGE
    var outputPath = "C:\Tests\bin\debug"
    var codedUIAssembly = Path.Combine(outputPath, "CodedUITest.dll");
    string output;
    string codedUIAssemblyFile = @codedUIAssembly.ToString();
    if (File.Exists(codedUIAssemblyFile))
    //ACT
    CodedUITestRunner codedUiTestRunnerObject = new CodedUITestRunner();
    Thread workerThread = new Thread(codedUiTestRunnerObject.RunTest);
    workerThread.Start();
    while (workerThread.IsAlive)
    TimeSpan oneminute = new TimeSpan(0, 1, 0);
    Console.WriteLine("CodedUI Test Run in progress...");
    Thread.Sleep(oneminute);
    workerThread.Join();
    Console.WriteLine("CodedUI Test Run completed.");
    else
    Console.WriteLine("ERROR: CodedUI Test Assembly file Does NOT exist @ Path : " + codedUIAssemblyFile);
    Assert.IsTrue(File.Exists(codedUIAssemblyFile), "CodedUI Binary DLL exists!" + codedUIAssemblyFile);
    public class CodedUITestRunner
    // This method will be called when the thread is started.
    public void RunTest()
    var outputPath = "C:\Tests\bin\debug"
    var codedUIAssembly = Path.Combine(outputPath, "CodedUITest.dll");
    string output;
    string codedUIAssemblyFile = @codedUIAssembly.ToString();
    output = TestFrameworkHelper.Exec("vstest.console.exe", string.Format("/testcasefilter:\"TestCategory=LongTest\" /settings:\"C:\\tests\\CodedUI.testsettings\" /logger:TRX /logger:CodedUITestLogger {0}",
    codedUIAssembly), WorkingDir: outputPath, RequestEC: false);
    StringAssert.Contains("EXIT CODE: 0", output, "Exit code was not 0.");
    Ian Ceicys

  • Seeing zone console output without "zlogin -C zonename ?"

    You can see any output written to a non-global zone's console while running command
    zlogin -C <zonename>
    What happens to my console output while NOT running zlogin?
    Suppose output get dropped to the floor!?
    Is there any way to configure some sort of zone-console-logging?
    Let's say, we want to catch all output written to a non-global console while not running "zlogin -c ...", collected to some log file.
    1. Yes, I certainly know about syslog and configuring syslog.conf. But that's not the point. There might be some output written to console which syslog never sees.
    2. I've checked properties of "svc:/system/console-login". There is no log option of that sort.
    3. And obviously using a serial console server would not help either, because we are not in the global zone.
    I think it's not possible to catch non-global console output without "zlogin -C", right?

    Output which is displayed on your console are basicly messages whihc are usually send out by syslog (check /etc/syslog.conf). You'll notice that in some cases it will send out a message to just about everywhere (*, which only makes sense if someone is logged in) or the most important part here: /dev/sysmsg.
    I suggest taking a look at 'sysmsg(7D)' and 'syslog.conf(4)' for more information on all this. Needless to say; the messages you refer to are not merely dropped into the bitbucket, unless you want them.

  • Weblogic 4.5.1 disabling console output on server

    Is there a property file setting which will disable console output on
    the weblogic log?
    Any help would be much appreciated

    Rob Woollen wrote:
    I develop and run WebLogic on Linux with IBM's JDK 1.1.8.
    Sun and Blackdown both have Java2 that are preliminary versions. I had
    some problems with the Sun version, but the Blackdown 1.2.2 vm seems pretty
    good.
    -- Rob
    Tim Clotworthy wrote:
    Hi,
    We currently use 4.5.1 on Linux with JDK 1.1.7b. Has anyone did the same
    only with JDK2.0. I realize its not supported by weblogic on Linux, but
    would like to know whether anyone has tried it anyway and how it worked out.
    Thanks. TC
    Hi,
    I am running WL 5.1 on RedHat 6.1 with the JDK 1.2.2 RC4 from Blackdown.
    Touch wood, I haven't had major issues yet, other than really basic ones. Of
    course, things get interesting when you begin to realise the little bits and
    pieces that are supported on other platforms, but not on Linux, such as the lack
    of apache support (even though it is forthcoming in 5.1 GA from what I
    understand).
    Prashanth Nandavanam

  • Controlling PowerShell's console output

    How do you control PowerShell's console output and overwrite the last character written?
    I want to overwrite a character with a loop, like the spinning baton in UNIX while some Job.status -eq running. You know like cycle through |/-\| so it looks like a spinning bar.
    I have the loop written but the console never seems to want to overwrite the last chacter. I am using write-host -nonewline, so at least I'm on the right line.
    I have tried using `b and then the write-host, but it actually get this box character written to the screen instead of a backspace.
    I have tried using [console]::cursor stuff but I can't set the cursor to less than zero and zero just leaves the cursor where it was anyway.
    I also tried using [string]::format and {0,1} type stuff, but it always writes next to the last character. There's a guy who wrote a countdown timer, and when I run his code it doesn't work for me (http://poshtips.com/2010/03/29/powershell-countdown-timer/).
    The timer just keeps writing to the side after 40 whitespaces.
    The only way I have been able to do it is by calling cls before each character; of course i'd rather not clear the entire screen.
    I'm hoping you will enlighten me...

    function myWaitJob($job) {
    $saveY = [console]::CursorTop
    $saveX = [console]::CursorLeft
    $str = '|','/','-','\'
    do {
    $str | ForEach-Object { Write-Host -Object $_ -NoNewline
    Start-Sleep -Milliseconds 100
    [console]::setcursorposition($saveX,$saveY)
    } # end foreach-object
    if ((Get-Job -Name $job).state -eq 'Running')
    {$running = $true}
    else {$running = $false}
    } # end do
    while ($running)
    } # end function
    Start-Job -ScriptBlock {Start-Sleep 10} -Name j1
    myWaitJob j1
    rjb j1
    [string](0..9|%{[char][int](32+("39826578840055658268").substring(($_*2),2))})-replace "\s{1}\b"

Maybe you are looking for

  • Can i email just one page from my spreadsheet?

    Can I email just one page (tab) from my spreadsheet?

  • Slideshow Transitions No Longer Work After Installing iLife08

    Hi: I previously used the '06 version of iPhoto, and the transitions I selected for my slideshows worked as expected. After upgrading to '08, the transitions no longer work, even if I reset them on some of the slides. It looks like there is no transi

  • Random Green Frames in Premiere Render and Export Files

    Hello! I just switched a new MacBook Pro and am having a render issue in Premiere CC. Random green frames pop up sporadically throughout my video. This happens both on my rendered timeline and in the exported file. It seems to affect the clips with h

  • Delta don't detect characteristics news?

    Hi friends! Im working with 2LIS_02_SCL, the delta load read records when amount or quantity (key figures) has changes, but seems dont detect the changes where only characteristics are changed. Is this ok?  how can I do to solve this? Thanks in advan

  • Printing/hookup problems

    HI all I picked up a lot of printers, and can get all the usb printer to print in os9 and X. They are a HP640--870--940--970 They all work fine after a little work getting them found by the computer. But I can't get the computers to see any of the pr