Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Programming & Scripting
Reload this Page Making a "fakeshell"
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Programming & Scripting C, Perl, PHP, Bash Scripts, anything programming or script related post in here!

Reply
 
Thread Tools Display Modes
Old 12-30-2003   #1 (permalink)
Just Joined!
 
Join Date: Dec 2003
Posts: 3
Send a message via MSN to stathis_xr
Making a "fakeshell"

Hi guys!I really need your help!i want to make something like a fake shell.this shell will have these two commands:
1)ls , ls -l ,ls -a ,ls -i (generally ls)
2)grep ,grep -i ,grep -v (generally grep)
i want these commands to have the same behaviour as used in linux.the program will be written in c(i mean ls.c or grep.c).can u write me some kind of code to use in order to have these 2 commands as they are represented above work?
any suggestion welcomed!

(you can use pipes or system calls in order to get the code work)
stathis_xr is offline   Reply With Quote
Old 12-30-2003   #2 (permalink)
Linux Guru
 
Join Date: Apr 2003
Location: London, UK
Posts: 3,284
I dont think you fully understand what you are trying to acheive...

When you figure it out, come back and ask your question again.

Please note, we are not here to help you crack your school network. Cheers.
jasonlambert is offline   Reply With Quote
Old 12-31-2003   #3 (permalink)
Linux Engineer
 
Join Date: Nov 2002
Location: Queens, NY
Posts: 1,319
Send a message via AIM to bpark
I'd think using system calls to achieve those things are the easy way out. Back when I was writing code for my system programming course, I wasn't allowed to use that stuff.

stathis_xr,
If I were you, I'd first attempt to write some kind of code first than post it here using the "code" tags.
__________________
The best things in life are free.
bpark is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 06:53 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0