how to delete jpg files

Tokra

Member
Joined
Jul 17, 2015
Messages
77
Reaction score
6
Country
Croatia
ok.. so.. going little crazy.. how do I delete all jpg files from card, while I have enabled raw+jpg

rm -f /DCIM/100MEDIA/*.jpg is not working
rm -f /DCIM/100MEDIA/*.JPG is not working
rm -f /DDISK/DCIM/100MEDIA/*.jpg is not working where DDISK is name of my card
rm -f /DDISK/DCIM/100MEDIA/*.JPG is not working
lu_util exec 'rm -f /tmp/fuse_d/DCIM/100MEDIA/*.JPG' is not working
lu_util exec 'rm -f /fuse_d/DCIM/100MEDIA/*.JPG' is not working
lu_util exec 'rm -f /DDISK/DCIM/100MEDIA/*.JPG' is not working
lu_util exec 'rm -f /DDISK/DCIM/100MEDIA/*.jpg' is not working

what am I doing wrong ?
this is in autoexec:

sleep 7
#RAW+JPG
t app test debug_dump 14
sleep 1
rm -f /DCIM/100MEDIA/*.jpg
 
rm \DCIM\100MEDIA\*.jpg works fine here. Do you understand that it will be delete next time that the camera power on? ash script only run when power on the camera.
 
but if I add this

#MAIN LOOP thanx VOTerra
while true
do
t app key shutter
sleep 5
done


will it not run in loop and delete files ?
 
but if I add this

#MAIN LOOP thanx VOTerra
while true
do
t app key shutter
sleep 5
done


will it not run in loop and delete files ?
maybe if you add it just before done.

while true
do
.
.
rm ...
done
 
sleep 7
#RAW+JPG
t app test debug_dump 14
sleep 1
#MAIN LOOP thanx VOTerra
while true
do
t app key shutter
sleep 5
rm -f /DCIM/100MEDIA/*.jpg
done
 
put it that way.. started and stoped camera for 3 times.. just to see.. nop.. all files there.. nothing deleted
 
I read that for some people show as /DCIM/103MEDIA , it might be your case
 
nop.. its 100.. i am sure, just checked
 
... what am I doing wrong ?
...
You posted:
rm -f /DCIM/100MEDIA/*.jpg is not working
Aldo Duran posted:
rm \DCIM\100MEDIA\*.jpg works fine here
... See the difference? :)
 
Yes !!! :))

so, this is what it works, to delete .jpg files

sleep 7
#RAW+JPG
t app test debug_dump 14
sleep 1
#MAIN LOOP thanx VOTerra
while true
do
t app key shutter
sleep 5
rm \DCIM\100MEDIA\*.jpg
done
 
Well done - Bravo!
Thanks for the script.
 
Last edited:
Back
Top