ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: free space on CF

To:
Subject: Re: [ts-7000] Re: free space on CF
From: Jim Jackson <>
Date: Sat, 15 Jan 2011 15:18:37 +0000 (GMT)


On Sat, 15 Jan 2011, josue.cubero wrote:

> hello and use these commands
> df-h for a rundown of the space on mounts
> du-h for the current directory
> but what I do in a C program, is there any function like system, to return 
> information to the program I did.
> I say return to the program that displays information on the console, for 
> example, that I return the information system ("date ");

The source code for busybox is easily available and it has an 
implementation of df and du.

I'm not sure how you capture the output of a command run from the system() 
call, I've never had to do it. But Have you looked at using the popen() 
function?

> 
> 
> 
> --- In  Jason Stahls <> wrote:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > On 01/14/11 21:17, josue.cubero wrote:
> > > Is there any program that lets me know how much space I have in the CF, 
> > > or a file system that can read and tell me the space.
> > > I tried to use this program
> > 
> > df -h for a rundown of the space on mounts
> > 
> > du -h for the current directory
> > 
> > - -- 
> > Jason Stahls
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v2.0.16 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> > 
> > iQEcBAEBAgAGBQJNMQoNAAoJEBWmhVAMrS/g3p4H/3OiHC28vZ9o/65zCIrkpZ5H
> > f24sOFFiK/eYppABGdJiva9Bd+ZpfexwOPwZwdE9/S/Jnkj2RUuRLvoXaYfOpVlR
> > qj1dnE/c4bFznY3BNx5dVDL4BVM5+8ruxjrSEYH3YeEXDKhJvDcltTM5kWxpJH/s
> > 90cYTUELLlKI6OvFcU+h9r087sNbSQnOBUtaOR6r5wTrG76grbGuak5ChJUncVKX
> > ZZBQpb+CoY6zbMKntnEjFSXsADZm2Ro5TqY+soJR9FK/VcH3dZqupSREmrOs6nYq
> > Jh92OG3p+vG7bUWZEPNNPcVvl8etJ8cGCbKfqjzHgawtkvimQG+EyjJ2g8q+ZuI=
> > =qoQ6
> > -----END PGP SIGNATURE-----
> >
> 
> 
> 


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU