LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-09-2009, 03:11 AM   #1
kpmsiva
LQ Newbie
 
Registered: Dec 2008
Posts: 8

Rep: Reputation: 0
Exclamation File Creation inside /Sys


Hi !

I want to create a file inside the /sys folder. How to acheive? I need any shell script or c program for achieve it..... Please help me....


Advance thanks.....
 
Old 02-09-2009, 04:41 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

Files in /sys are managed by the kernel, so you'll have to modify the kernel code / write a new kernel module to insert an arbitrary file in there.

Why do you want to put files in there anyway?

Dave
 
Old 02-09-2009, 02:07 PM   #3
tmcguinness
LQ Newbie
 
Registered: Dec 2008
Posts: 11

Rep: Reputation: 0
Um - I think the above poster said it best - why would you want to put files in there?
 
Old 02-10-2009, 01:02 AM   #4
kpmsiva
LQ Newbie
 
Registered: Dec 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for your reply... Regarding our project we need to save a password for the usb device inside the usb bus folder.... thats why we needed.... Any how thanks for your reply...
 
  


Reply



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
how to find time of file creation of a given file??? raklo Linux - General 4 08-13-2007 05:28 AM
Cannot use copy_to_user inside the open() sys call routine archieval Programming 4 05-26-2007 09:09 AM
unable to put file 4GB file INSIDE iso saravkrish Linux - Software 2 03-23-2005 03:41 PM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 10:36 PM
How to Retrive /etc(sys file) !! hitesh_linux Linux - General 4 02-08-2003 07:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration