Re: [android-beginners] Re: How to know the size of a file in adb shell prompt
Hello pskink all, i am more inerested in size of a particular file rather than other details as with ls -l command. i issued the below commands utility in perl to calculate the size of a file abc.txt *system(adb shell cd /data/app); $filename = abc.txt; $size_of_file = -s $filename; print The file Size is . $size_of_file. Bytes.\n;* but in o/p i am getting blank... The file Size is Bytes can anybody suggest me the most robust way to calculate the file size. regds rocky On Thu, Mar 18, 2010 at 7:36 PM, skink psk...@gmail.com wrote: On Mar 17, 5:34 pm, rocky84 rocky84 hulkman...@gmail.com wrote: *Hello all, i want to extract the size of a file in adb shell using some perl utility. this works fine for me as below in windows but does not work in adb shell prompt (#) i used this function in windows stat($filename); can anybody please let me know how can i get file size in #prompt? regds rocky * ls -l filename l is for long pskink -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-beginners] Re: How to know the size of a file in adb shell prompt
rocky84 rocky84 wrote: Hello pskink all, i am more inerested in size of a particular file rather than other details as with ls -l command. i issued the below commands utility in perl to calculate the size of a file abc.txt *system(adb shell cd /data/app); $filename = abc.txt; $size_of_file = -s $filename; print The file Size is . $size_of_file. Bytes.\n;* but in o/p i am getting blank... The file Size is Bytes can anybody suggest me the most robust way to calculate the file size. http://exampledepot.com/egs/java.io/GetLength.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe from this group, send email to android-beginners+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-beginners] Re: How to know the size of a file in adb shell prompt
On Mar 17, 5:34 pm, rocky84 rocky84 hulkman...@gmail.com wrote: *Hello all, i want to extract the size of a file in adb shell using some perl utility. this works fine for me as below in windows but does not work in adb shell prompt (#) i used this function in windows stat($filename); can anybody please let me know how can i get file size in #prompt? regds rocky * ls -l filename l is for long pskink -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en