Joe, are you trying to timestamp the data received in the logfile, or create a logfile based on the time and date on the PC? Either way, I have some examples on the samples page of my site that should get you started.
I'am looking for a simular script.
All i want is to open a vt100 session and timetamp every line that comes in tot the terminal in logfile and/or screenoutput.
in the past, but it only stamps every 60 seconds instead of every line.
To do what you want with every line, you would need to use the rget command (which causes data to not appear to the screen) to first get the line from the screen. You would then need to create the time stamp, probably using ltimeints or the $DATE and $TIME system variables. Finally, you would use strcat to combine the timestamp and the line, and then use fputs to write that to an open text file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.