LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-12-2014, 07:08 PM   #1
Haisongtao
LQ Newbie
 
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
How to use linux commend in floppy disk


I used function to create my own commend in floppy disk.
after I excute myfile. I can type help,fmount. to call
help(),fmount() function.

But I need to use more commend which is default in linux in my floppy disk such as: ls, cd....

I use
if (strcmp(string2, fc1) == 0){
help();} to call those function.

I do not create ls function because it is already in the linux. how can I relate this commend to my function.
 
Old 11-12-2014, 11:57 PM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Guess you mean you want to write your own shell in C. Use functions fork and execve. Or function system.
 
  


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
floppy only reads first disk, if new disk is inserted data from first disk is shown. lakosked Debian 3 02-18-2006 08:44 PM
Is there a Linux on a floppy disk distribution? pengyou Linux - Laptop and Netbook 6 06-17-2004 05:57 PM
please commend some linux source code forum Huiming Linux - Software 4 05-25-2004 08:19 AM
Linux On Floppy Disk MyRee Linux - Software 5 03-05-2004 05:23 AM
Floppy Disk Linux codedv Linux - Distributions 6 11-29-2003 02:42 AM

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

All times are GMT -5. The time now is 10:22 PM.

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