Easer icon indicating copy to clipboard operation
Easer copied to clipboard

Allow appending to a file

Open daraul opened this issue 2 years ago • 3 comments

I wanted to try logging my location to a file. I can configure the event, but i can't find a profile operation that might let me append some string to an existing file. I also am not sure how I would grab the location to do so.

daraul avatar Jul 15 '21 02:07 daraul

Hi, Unfortunately at the moment there is no dedicated operation for appending to a file. However, if you have root permission, you may try to execute commands to do that. For grabbing the location, you may want to have a look at Dynamics.

renyuneyun avatar Aug 15 '21 23:08 renyuneyun

Hi,

It seems root permission is not necessary. I have a profile running the following command, to append the current Date/Time/Cell ID to a file. It works without root (<<CellID>> is defined through dynamics and a previous "Cell location" Event).

echo "<<date>> <<time>> <<CellID>>" >> /storage/emulated/0/Documents/Cells

grmoth avatar Aug 23 '21 09:08 grmoth

Thanks @grmoth for the example!

Whether requiring root permission seems to depend on the device/ROM you are using. I received different results from previous feedbacks.

renyuneyun avatar Sep 04 '21 23:09 renyuneyun