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 <[email protected]> wrote:
>
>
> On Mar 17, 5:34 pm, rocky84 rocky84 <[email protected]> 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
> [email protected]<android-beginners%[email protected]>
> 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
[email protected]
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.