Real time labels on x-axis

Hi all
I thought I had cracked the business of putting realtime labels on the
x-axis of Labview charts but today I found that the way I had done it
was failing at any times between midnight and 01:00.
In the past I have used a property node for my chart or graph (not sure
which) and initialised it with the current PC time. I'd set the x-axis
format to be time & date. This seemed to work but I had noticed that,
when daylight saving was active, that Labview would try to correct for
this. (I'm GMT, London so occasionally go GMT +1). So I'd added a
correction to subtract the "error". This works fine apart from between
midnight and 01:00. At these times my correction results in a negative
number which Labview cannot interpret as a time (not surprised by this)
and so it plots Neg on the x-axis until the time changes to past
00:59:59. The PC time zone setting also causes a problem that I hadn't
appreciated until I started looking at this.
In the Labview examples for real time graph axis, NI have used an x-axis
formatted decimal and then selected realtime from the radio boxes below.
This works OK, and is immune to DST and time zone offsets but doesn't
look like a proper time at times between midnight and 01:00.
So the only way I can get a nice looking display and for it not to
misbehave at times between midnight and 01:00 is to set the PC system
clock for GMT:Casablanca,Monrovia. This time zone has no offset or
daylight saving activity.
Have I missed something or is this way harder than it should be?
Many thanks in advance for any help or advice.
Regards
Bill
mailto:[email protected]

Hi
Sorry, was posting from a newsgroup didn't realise this was web based too.
In my example
timeongrapghs+dst correction.vi
where the chart x-axis is formatted to be date and time, for some reason Labview adds an offset according to the time zone and/or
whether or not daylight saving is active. I had corrected this offset by using a simple subtraction but at midnight the hour value is zero so, as I said in my initial post, Labview does not recognise -1 as a time and so causes the x-axis labels to be in error (they actually say Neg). My example shows this. If you set your PC clock time to e.g. 00:12 and your PC's time zone to GMT, London. If you change the PC date to be in or out of daylight saving (Apr-Oct daylight saving is active) you will see the problem come and go.
So I looked at the Labview example and they use the decimal formatted x-axis with realtime selected from the radio buttons
underneath. I tried this approach on my example (timeongrapghs decimal x axis correction.vi) and this does not seem to suffer from an offset introduced from the time zone and/or whether daylight saving is active but at midnight the time displayed on the x-axis reads without zeros, so 00:14:45 reads 14:45 - misleading.
I found that setting your PC clock to GMT:Casablanca,Monrovia results in my example behaving perfectly around the midnight time. This time zone has no offset or daylight saving activity.
timeongrapghs NEEDS GMT CASA.vi
Finally I looked at the example you linked too and although that works (but I don't understand it ), I want my display to fill from the far left to the far right, and once the x-axis is full, for the display to scroll across from right to left. If you look at my examples, they do this, although I noticed that using them in LV 7 (they were written in 6i) automatically seems to switch the autoscale x-axis on for the chart - you need to switch autoscaled x-axis off to see how I want my charts to appear. The example you linked doesn't do this, and turning off the autoscaling seems to stop the data from being displayed. Can you change the example you linked so that the chart behaves like my examples but without the time zone/DST problem - if so can you make it so I can plot more than one data set on the y-axis (same time resolution of data)?
Thanks for helping
Bill
Attachments:
timeongrapghs NEEDS GMT CASA.vi ‏45 KB
timeongrapghs+dst correction.vi ‏42 KB
timeongrapghs decimal x axis correction.vi ‏41 KB

Similar Messages

  • Trouble drawing a real time line across X axis.

    Hi,
    I am trying to draw a line across the X axis in real time, but for some reason, the simply cases are way off. For example, If I try to draw the line for two minutes. my line will only make it to about 1 min 45-50 seconds within that time. I tried to make up for the difference by checking the system clock, but that has not helped. Can anyone see something obviously wrong in my code:
    protected class GraphTimerTask extends TimerTask {
         protected static final int DELAY = 31;
         protected long currentTime = 0;
         protected long previousTime = -1;
         private boolean isOn = false;
         protected Timer timer = null;
         public GraphTimerTask(Timer t) {
              this.timer = t;
              isOn = true;
         public void run() {
              if(previousTime > 0) {
                   currentTime += System.currentTimeMillis() - previousTime;
              else {
                   currentTime += DELAY;
                    Graph.this.repaint();
                 previousTime = System.currentTimeMillis();
         protected boolean isOn() { return isOn; }
         protected long getTime() { return currentTime; }
         protected void stop() { isOn = false; timer.cancel(); }
    }currentTime is the actual time that is repainted on my graph when the repaint() is called.

    Timer does not take into account the time taken to process the Timer event. The following is one of my simple examples of how to do something similar to what you want to do and to take into account (parially) the processing time..
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    public class SimpleAnimation extends JFrame
        public SimpleAnimation()
            super("Simple Annimation Demo");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            // The model instance
            AnnimationModel annimationModel = new AnnimationModel();
            // The view of the model
            AnimationView animationView = new AnimationView(annimationModel);       
            animationView.setPreferredSize(new Dimension(640, 480));
            // The view becomes the content pane
            setContentPane(animationView);
            pack();
        private static class AnimationView extends JPanel
            AnimationView(AnnimationModel annimationModel)
                // Save a reference to the model for use
                // when the view is updated
                annimationModel_ = annimationModel;
                // Listen for the events indicating that the model has changed
                annimationModel_.addObserver(new Observer()
                    public void update(Observable o, Object arg)
                        // All we need to do is to get the view to repaint
                        AnimationView.this.repaint();
            public void paintComponent(Graphics g)
                super.paintComponent(g);
                // Update the view based on the information in the model.
                g.setColor(Color.red);
                // Convert the model positions to view positions
                // in this case by scaling to the actual width and height.
                int xScreenPosition = scaleValue(annimationModel_.getX(), getWidth() - 20 ) + 5;
                int yScreenPosition = scaleValue(annimationModel_.getY(), getHeight() - 20 ) + 5;
                // Display the position of the point
                g.fillOval(xScreenPosition, yScreenPosition, 10, 10);
            private int scaleValue(double v, double size)
                return (int)((v+1.0)*0.5 * size + 0.5);
            // The saved reference to the model
            private AnnimationModel annimationModel_;
        private static class AnnimationModel extends Observable
            AnnimationModel()
                new Thread()
                    public void run()
                        long updatePoint = System.currentTimeMillis();
                        final long delta = 100;
                        final double deltaTheta =  2.0 * Math.PI * delta / (10.0 /* seconds  */ * 1000.0);
                        // Loop forever updating the model
                        // and notifying the observers.
                        while(true)
                            // Wait until the next frame update point
                            // The approach is to calcualte how long we have to wait. In
                            // this way we partially compensate for the processing time
                            updatePoint += delta;
                            synchronized (this)
                                while (updatePoint > System.currentTimeMillis())
                                    try
                                        this.wait(updatePoint - System.currentTimeMillis());
                                    catch (Exception e)
                                        // Nothing to do
                            // Update the model - in this case it is very simple
                            theta_ += deltaTheta;
                            // Notify the observers
                            setChanged();
                            notifyObservers();
                }.start();
            // Model access methods
            public double getX()
                return Math.cos(theta_);
            public double getY()
                return Math.sin(theta_);
            // The angular position of the point
            private double theta_;
        // Simple test main
        static public void main(String[] args)
            new SimpleAnimation().setVisible(true);
    }

  • How can I make the x axis real time?

    I would like to know how to make the X axis of a chart/Graph into realtime so that I can go in increments of seconds or milliseconds. How can I do this? I am getting some really funny stuff on my graphs and I notice the manual says that the "Time" label is just a default label. So I would like to know how to get the "real" time on my axis. Do you have any good ecamples?
    Thanks,
    Brian

    Zvezdana,
    I don't have LV 7, (I have 6.1) so that executable didn't come in. Also with what you mentioned won't I just get the time and date in seconds? what I want to get is the data ploted for the amount of time that the VI is running or that my Kodak Imaging board has been programmed to cycle within. I am going to attach some of the stuff I have been getting, I don't know if it is REAL TIME ,which I want, or if it is not.
    Attachments:
    Question_for_engineers.doc ‏20 KB
    Test_for_technicians.zip ‏347 KB
    Front_Panel1d.jpg ‏83 KB

  • Real time scenario for AXIS framework in SOAP adapter

    Hello,
    Can anybody please suggest some real time scenario where AXIS framework can be used
    and what are the advanteges and disadvantages of using AXIS framework
    regards,
    Loveena

    Hi !
    have a look on these links
    Using the Axis Framework in the SOAP Adapter
    http://help.sap.com/saphelp_NW04/helpdata/en/45/a4f8bbdfdc0d36e10000000a114a6b/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    Have a look at this Pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b092777b-ee47-2a10-17b3-c5f59380957f
    Thanks !
    Abhishek

  • Waveform graph x-axis into real time recording

    Hey there,
    I have acquired voltage off a LVDT through the DAQ assistant and connected it to a waveform graph. However, the x-axis says its 'Time' but its got the white line running across it even though no time has elapsed and the time itself has funny units to it. What I need on the x-axis is real time so that I can see the line register from left to write as time passes by. I have tried a few things like connecting the DAQ to a chart graph but it doesnt have the log graph which I need. I have also fiddled with the XY graph by connecting the DAQ assistant into the 'Y Input' but I am not sure how to input time into the x input.
    If someone could help me with this problem, it would be much appreciated.
    Thanks,
    Gurung 

    Hi Gurung,
    what do you expect here? Wire waveforms to a chart:
    (DAQmxRead settings: n channels, n samples, 1D array of waveforms)
    For learning the basics you should
    - examine the examples coming with LabVIEW
    - go through the Basics course on NI website
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can I generate a real-time highchart from my database data?

    I have looked several links; however, I couldn't find a working demo showing how to implement a highchart using data from a database.
    Objective: I want to generate a real time highchart line graph getting data from my database. What I want is very similar to the
    HighChart Demo which provides a real-time highchart with randomly generated values. It is also similar by X-axis and Y-axis, for I want my x-axis to be "Time" (I have a DateTime column in my database) and y-axis to be an integer (I have
    a variable for that as well in my database).
    Please I need help in sending the model data to my razor view.
    Note that I am already using SignalR to display a realtime table. I also want to know if it can be used to automatically update the highchart as well.
    Below is the code snippet of my script in the view. I have used the code provided in
    HighChart Demo link for generating the highchart. Please tell me where should I apply the changes on my code.
    @section Scripts{
    <script src="~/Scripts/jquery.signalR-2.2.0.js"></script>
    <!--Reference the autogenerated SignalR hub script. -->
    <script src="~/SignalR/Hubs"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    // Declare a proxy to reference the hub.
    var notifications = $.connection.dataHub;
    //debugger;
    // Create a function that the hub can call to broadcast messages.
    notifications.client.updateMessages = function () {
    getAllMessages()
    // Start the connection.
    $.connection.hub.start().done(function () {
    alert("connection started")
    getAllMessages();
    }).fail(function (e) {
    alert(e);
    //Highchart
    Highcharts.setOptions({
    global: {
    useUTC: false
    //Fill chart
    $('#container').highcharts({
    chart: {
    type: 'spline',
    animation: Highcharts.svg, // don't animate in old IE
    marginRight: 10,
    events: {
    load: function () {
    // set up the updating of the chart each second
    var series = this.series[0];
    setInterval(function () {
    var x = (new Date()).getTime(), // current time
    y = Math.random();
    series.addPoint([x, y], true, true);
    }, 1000);//300000
    title: {
    text: 'Live random data'
    xAxis: {
    type: 'datetime',
    tickPixelInterval: 150
    yAxis: {
    title: {
    text: 'Value'
    plotLines: [{
    value: 0,
    width: 1,
    color: '#808080'
    tooltip: {
    formatter: function () {
    return '<b>' + this.series.name + '</b><br/>' +
    Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x) + '<br/>' +
    Highcharts.numberFormat(this.y, 2);
    legend: {
    enabled: false
    exporting: {
    enabled: false
    series: [{
    name: 'Random data',
    data: (function () {
    // generate an array of random data
    var data = [],
    time = (new Date()).getTime(),
    i;
    for (i = -19; i <= 0; i += 1) {
    data.push({
    x: time + i * 1000,
    y: Math.random()
    return data;
    function getAllMessages() {
    var tbl = $('#messagesTable');
    var data = @Html.Raw(JsonConvert.SerializeObject(this.Model))
    $.ajax({
    url: '/nurse/GetMessages',
    data: {
    id: data.id,
    contentType: 'application/html ; charset:utf-8',
    type: 'GET',
    dataType: 'html'
    }).success(function (result) {
    tbl.empty().append(result);
    $("#g_table").dataTable();
    }).error(function (e) {
    alert(e);
    </script>

    Hi Sihem,
    Thank you for contacting National Instruments.  Using the LabVIEW Real-Time module, you can do development without actually having a target.  While viewing the project explorer window, you can do the following steps:
    Right click on the project
    Select New >> Targets and Devices
    Select the "New Target or Device" radio button
    Select the target you would like to develop on.Information about the LabVIEW Real-Time Module can be found here.
    Regards,
    Kevin H
    National Instruments
    WSN/Wireless DAQ Product Support Engineer

  • How to save data in a 4D array and make partial plots in real time?

    Hi, this is a little complex, so bear with me...
    I have a test system that tests a number of parts at the same time. The
    experiment I do consists of measuring a number of properties of the
    parts at various temperatures and voltages. I want to save all the
    measured data in a 4-dimensional array. The indices represent,
    respectively, temperature, voltage, part, property.
    The way the experiment is done, I first do a loop in temperature, then
    in voltage, then switch the part. At this point, I measure all the
    properties for that condition and part and want to add them as a 1D
    array to the 4D array.
    At the same time, I want to make a multiple plot (on an XY graph) of
    one selected property and part (using two pull-down selectors near the
    XY graph) vs. voltage. (The reason I need to use an XY graph and not a
    waveform graph, which would be easier, is that I do not have
    equidistant steps in voltage, although all the voltage values I step
    through are the same for all cases). The multiple plots are the data
    sets at different temperatures. I would like to draw connection lines
    between the points as a guide to the eye.
    I also want the plot to be updated in the innermost for loop in real
    time as the data are measured. I have a VI working using nested loops
    as described above and passing the 4D array through shift registers,
    starting with an array of the right dimensions initialized by zeroes. I
    know in advance how many times all the loops have to be executed, and I
    use the ReplaceArraySubset function to add the measured properties each
    time. I then use IndexArray with the part and property index terminals
    wired to extract the 2D array containing the data I want to plot. After
    some transformation to combine these data with an array of the voltage
    values in the form required to pass to the XYGraph control, I get my
    plot.
    The problem is: During program execution, when only partial data is
    available, all the zero elements in the array do not allow the graph to
    autoscale properly, and the lines between the points make little sense
    when they jump to zero.
    Here is how I think the problem could be solved:
    1. Start with an empty array and have the array grow gradually as the
    elements are measured. I tried to implement this using Insert Into
    Array. Unfortunately, this VI is not as flexible as the Replace Array
    Subset, and does not allow me to add a 1D array to a 4D array. One
    other option would be to use the Build Array, but I could not figure
    out if this is usable in this case.
    2. The second option would be to extract only the already measured data
    points from the 4D array and pass them to the graph
    3. Keep track of the min. and max. values (only when they are different
    from zero) and manually reset the graph Y axis scale each time.
    Option 3 is doable, but more work for me.....
    Option 2: I first tried to use Array Subset, but this always returns an
    array of the same dimensionality of the input array. It seems to be
    very difficult, but maybe not impossible, to make this work by using
    Index Array first followed by Array Subset. Option 3 seems easier.
    Ideally, I would like option 1, but I cannot figure out how to achieve
    this.
    Your help is appreciated, thanks in advance!
    germ Remove "nospam" to reply

    In article <[email protected]>,
    chutla wrote:
    > Greetings!
    >
    > You can use any of the 3D display vi's to show your "main" 3d
    > data, and then use color to represent your fourth dimension. This can
    > be accessed via the property node. You will have to set thresholds
    > for each color you use, which is quite simple using the comparison
    > functions. As far as the data is concerned, the fourth dimension will
    > be just another vector (column) in your data file.
    chutla, thanks for your post, but I don't want a 3D display of the
    data....
    > Also, check out
    > the BUFFER examples for how to separate out "running" data in real
    > time.
    Not clear to me what you mean, but will c
    heck the BUFFER examples.
    > As far as autoscaling is concerned, you might have to disable
    > it, or alternatively, you could force a couple of "dummy" points into
    > your data which represent the absolute min/max you should encounter.
    > Autoscaling should generally be regarded as a default mode, just to
    > get things rolling, it should not be relied on too heavily for serious
    > data acquisition. It's better to use well-conditioned data, or some
    > other means, such as a logarithmic scale, to allow access to all your
    > possible data points.
    I love autoscaling, that's the way it should be.
    germ Remove "nospam" to reply

  • I would like to see the time in a waveform graph (real-time​)

    i need the x-axis of the waveform graph to show real time (from the computer clock). I have made a program with all the example. He read and log data when the chosen time has elapsed. the program work's well...but i dont't know why the x-axis blink every time he draw a point
    i can see two x-axis in the same time.
    i give you a picture of one of a part of my program, i hope someone can help me
    Attachments:
    my_software.JPG ‏128 KB

    Hi,
    I tried to reproduce what you were getting by building a simple VI but I havent had much luck (I have attached the VI).
    Could you post your code so that I can take a look at it?
    Feroz P
    National Instruments
    Attachments:
    Graph.vi ‏39 KB

  • Real time project Help

    Hello
    I've been given a new project to attempt which involves developing a java application which takes real time data from the internet, stores this data in a database and then allows manipulation of this data. Any info about how this could be acheived would greatly appreciated.
    Many Thanks

    I intend to design a system which takes seismic data
    from specifc web sites and calculate the risk of aSo you have a program that runs periodically to collect the data from
    different places, transform it to your format and store it to a database.
    and your sources are Webservices OR you plan to get an html pages and
    filter out what you want OR a mix of both.
    the second program can take the data present in the database at that
    moment and give the tsunami probability
    tsuinami occuring from this. I would like to know
    which database software would be the best to use.That depends on your design constraints. Firstly you need to decide what
    kind of a database you want ( RDBMS, obj dbs, ..) and then lock on a db.
    A relational db may be what you decide on and in the free domain you have
    say MySQL
    Also how can i set up the data transfer, could this
    be done with the java.net api using the url
    resource.In case you are picking htmls, yes. If webservices are available, check out
    stuff like apache AXIS..

  • Add label on y-axis and x-axis in excel using Report Generation toolkit

    Hello,
    I want to add label in x-axis(Date/Time) and y-axis(Temperature O=oC)
    There are only header and data array connection, how can i add label to the chart?
    Thank you.

    Hello,
    The way I've done this is by specifying the string inputs named "Column Header" and "Row Header" on the Excel Insert Graph.vi. This should provide the axis labels that you specify on your graph.
    Cheers,
    Emilie

  • How to measure and plot RMS value of real time data?

    hi
    i need to measure and plot real time RMS value of EMG voltage. I made a VI. But I dont know why it didn't work. Can anyone please help me out? My VI is attached  in 2013 and 2011 both version. One sample data is also attached. Thanks at advance.
    Solved!
    Go to Solution.
    Attachments:
    RMS.vi ‏47 KB
    RMS_2011.vi ‏41 KB
    Sample Data.docx ‏20 KB

    You seem to select EMG voltage vs Angle(Z-axis). Is that really what you want? More resasonable would seem e.g. EMG voltage vs. time.
    If you want to process the 3D (xyz data), you probably need to add some more math). Why are you taking the absolute value? RMS does not care about the sign anyway, right?
    They you are trying an XY graph with a single point, because your Y value is only a single number. You need an equal number of points for Y.
    Here's a quick modification that graph EMG(mV) vs. time(ms) and takes the RMS of the EMG data. See if this gives you some ideas.
    Please provide more information what you want to do with the angles.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    RMS_MOD.vi ‏18 KB

  • Time display on x-axis for front panel instead of data points

    What do I need to change or add in my block diagram so that on the waveform graph the time will be on the x-axis instead of the data points. I am running this VI on a pda for some testing and I would rather get the time on the horizontal axis. Im also using an NI USB-6008, windows xp and Labview 8.2
                                                                                                                                                  Thanks
    Attachments:
    blockdiagram.JPG ‏158 KB
    frontpanel.JPG ‏94 KB

    And since you are sending it an array of doubles rather than an array of waveforms, there is no timin information associated with it.  It will assume 1 sample per second.  If your acquisition is faster than that, you will need to set the dT of the graph or the scaling multiplier factor of the X scale of that graph.
    (PS, it is always a good programming practice to show the labels for all the terminals on your block diagram and assign the terminal a name.)
    Message Edited by Ravens Fan on 09-15-2009 09:28 PM

  • Painting in symetry in real-time?

    Hey,
    I want to be able to paint using any paint brush tool, and have Photoshop copy the brush strokes in real-time on either the X or Y or both axis'. For example, if i draw one half of a person, the other half will draw itselt exactly the same on the opposite side of the canvas.
    Can anyone help me figure out a way to do this either here or through a tutorial please?
    Thanks

    Ah ok sorry i miss understood. How do i define the texture mapping on a postcardto allow for this i can't seem to find the options for it. :\
    Thanks, Ricky
    EDIT:
    The only way i've managed to do this is by creating a poly-plane in Maya, sorting out it's UV's to mirror, then importing the OBJ into Photoshop. However i'm hoping this isnt what must be done every time i want to draw symmetrically.
    Also once i've done this, is there a way to make the plane snap to the size of the canvas and fill it? because when i opened it it was at an angle.

  • How to set real time waveform chart

    I would like to record voltage signal from built-in microphone. My block diagram is attached.
    I would to like record 1second data every 10min and then take an average of that 1s data so that I have 1 data point about every 10min. The time of the origin of the chart must be kept at start date and time all the time and the program need to run until I stop it. 
    But I cannot set the date and time to be real time. How can I make it?
    Thank you very much.
    Attachments:
    1.vi ‏41 KB

    Hello
    answers are in blue
    phx wrote:
    Freelance_LV, Thank you very much for your editing, I am testing the program. I have some questions.
    1. Why can't I just using continuously running to run my program to make to run continuously? it is a good practice to use a while loop and run the code, than use the run continuously button. my understanding is that the run continuously button will cause the code to run at the highest possible processor speed and will use up the entire load on the processor. by using a while loop and placing a small delay, we can ensure that the cpu is not loaded by our program. But, i hope our seniors could provide the correct explanation to it.
    2. From your diagram, what I realise is that in 3600s, the signal of time sends data to "elapsed time" every 0.1s until the elapesd time is the same as target time so the the "True/False" Loop" can run. My question is, once the the "True/False loop" start runnig, how long does it run? 1second? Or is my understanding about the flow wrong? check the attached code. i made some additions, to answers your question.
    3. The minimum sample rate of the "acquire sound" is set to 11025Hz which is also the sample length of the "Mean". Does it mean that the mean it takes is the mean of the amplitude of latest 11025 samples? would suggest you use Mean vi than the Mean Pt to Pt vi. logically, the mean vi should read the input array of data, calculate the mean of the values. there is no 'latest' here. the mean vi gives the mean value of the array at its input. the acquire sound vi will read the data from the microphone at the sample rate mentioned. you said the min sample rate if 11025 Hz. but your code shows 8000 Hz as input!
    4. Why isn't the x-axis the current time if I just put the diagram inside the True/False Loop out to a new VI? you will need to set the start time of the X-axis using the property node X-axis range minimum value. Else, the chart/graph will take the standard start time as 1/1/1981 and 0.00 time + or _ the GMT zone.
    Thank you very much!!
    Attachments:
    1_edit.vi ‏68 KB

  • Directing fsck output to syslog and screen in real-time

    Hello,
    I have the following under Debian 6. The procedure should check and automatically repair the file system and write the result to the user's screen and also to syslog.
    #!/bin/bash
    output=`fsck -y /dev/disk/by-label/oracle-xe; retval=$?`
    logger -is "$output"The procedure seems to work, but I don't see the output until the fsck command has completed. Is there a possibility to write the output to syslog while presenting the fsck output in real-time?
    Kind regards.
    Edited by: Dude on Jan 30, 2012 6:44 PM

    I make some progress:
    outfile=/tmp/`date +%N`
    retfile=/tmp/`date +%N`
    (fsck -y /dev/disk/by-label/oracle-xee; echo $? > $retfile) | tee $outfile
    logger -i < $outfile
    retval=`cat $retfile`
    rm $outfile
    rm $retfileThe above gives me the results I was looking for
    I also tried
    logger -is "`fsck -y /dev/disk/by-label/oracle-xee`"But it the syslog output in this case is just one long line of text without any newlines
    If there is a better way, please let me know.
    Edited by: Dude on Jan 30, 2012 6:57 PM

Maybe you are looking for