Arduino log file directly to file I have problem because I need to read values and then save them in a .txt file, but Arduino doesn't have a physical connection with my computer. It only has a connection with a computer using Ubuntu without Arduino IDE or other programs. Also, I don't have an ethernet connection and SD card. I need only to have this data stored. The best way is to send them at the end of cycle to a special text file. Has anybody faced that before? 



I'm thinking about writing a bash script for reading all values sent by serial and then save them, but how do I get that information from serial?
Any serial terminal emulator application can connect to the Arduino. Select one that has log-to-file capability and open its log file after you've connected it to your Arduino's /dev/tty... device. 

Start the Arduino and let it collect &amp; send the data to your terminal program. Close the terminal app's log file (easy step to forget - ask me how I know :) and there's your data.