LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-22-2005, 08:38 AM   #1
mp4-10
LQ Newbie
 
Registered: Jan 2005
Posts: 16

Rep: Reputation: 0
Scaning disk


Hi,
I would like to scan hard disk in my application written in gcc(c language), is it possible.
Are there already any functions or structures with linux gcc to make it work....

Thanx
 
Old 03-22-2005, 09:31 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Everything is possible with c.

In the filesystem level, or at the byte level?

What do you mean by scanning?

Looking for some strings in files? Try
Code:
grep -r foo /
Something else, what?
 
Old 03-22-2005, 10:04 AM   #3
mp4-10
LQ Newbie
 
Registered: Jan 2005
Posts: 16

Original Poster
Rep: Reputation: 0
HI

I would like to scan how muc free space is there left on hard disk and write it to some int variable in my c code!

Bye
 
Old 03-22-2005, 10:40 AM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
see
Code:
man 2 statfs
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Error with Promise ultra133TX2 Controller and UDMA 120 GB Maxtor Disk samudhanar Linux - Hardware 3 06-13-2006 06:14 PM
scaning usb ports in terminal wisdom Linux - Hardware 3 12-30-2004 08:42 PM
are there any tools for scaning windows partition with windows virus... hkl8324 Linux - Newbie 1 08-04-2004 02:23 PM
I think someone is scaning me Joey.Dale Linux - Networking 6 01-02-2004 05:20 PM
Postfix/amavisd-new virus scaning only thesnaggle Linux - Software 0 12-16-2003 10:08 AM


All times are GMT -5. The time now is 03:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration