possible to save arduino serial port reads??

i want to save the reading of my arduino for printing o edit them, i have ubuntu so i cant have access to realterm to do that, is there a way to save the serial port into a txt file???

So the IDE serial monitor does not work in ubuntu?

yes but i have a sensor, which i need tobe reading all day long, so i need those reading in a text file

You need some sort of Serial Terminal program. It should have a Save to Text File option. Run it, tellit what communications port the arduino is on. once it is hooked up and running select the Save to Text File and it should do the job.

copachino:
i want to save the reading of my arduino for printing o edit them, i have ubuntu so i cant have access to realterm to do that, is there a way to save the serial port into a txt file???

Use stty to set the speed on the port. (stty -F /dev/ttyXXX #####)
ttyXXX is your serial port and ##### is the speed you specified in Serial.begin()

Then cat /dev/ttyXXX >> /tmp/log_file
To follow it along, tail -f /tmp/log_file
Obviously, you can write to any file you have access to. I just used an example.

#! /usr/bin/env python

import serial
import sys 


ser = serial.Serial('/dev/ttyUSB0', 1000000);
while 1:
    try:
        n=ser.read();
        
        print n;
    except KeyboardInterrupt:
        ser.close();        
        sys.exit(0)

this is a python script but how do i change it to recive many variables???

copachino:
this is a python script but how do i change it to recive many variables???

What is the format of the serial data? Are there field and record separators? What are they?

Read sensor: OK
Humidity (%): 11110
Temperature (oC): 11100
Temperature (oF): 82.40
Temperature (K): 301.15
Dew Point (oC): 8.83
Dew PointFast (oC): 8.79

this is the serial data format

you could use processing, since that works on every OS... here is a page that shows how to save to a txt file. There are enough programs in processing that communicate with the arduino, so that shouldn't be hard to find.