LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-31-2007, 07:49 AM   #1
ajaykr
LQ Newbie
 
Registered: May 2007
Posts: 3

Rep: Reputation: 0
Question How to implement "more" command?


Hi,
I am trying to implement "more" command using C, but did not get any such useful information except how to use that command through google. Any help in this is highly appreciated, Any one could help me out to implement this command?

Thanks and Regards,
Ajay,
ajaykumar.m@tcs.com
 
Old 05-31-2007, 07:54 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Do you mean call the bash "more" command from a C program?

Or maybe you want to write a C program that does the same thing as "more"??

What is the ultimate objective? (eg is it homework?)
 
Old 05-31-2007, 07:56 AM   #3
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,696
Blog Entries: 5

Rep: Reputation: 241Reputation: 241Reputation: 241
Quote:
Originally Posted by ajaykr
Hi,
I am trying to implement "more" command using C, but did not get any such useful information except how to use that command through google. Any help in this is highly appreciated, Any one could help me out to implement this command?

Thanks and Regards,
Ajay,
ajaykumar.m@tcs.com
you can take a look here
to get some idea
 
Old 05-31-2007, 08:08 AM   #4
ajaykr
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
My intention is to write a C program which behaves exactly as "more" command does. Its not a homework for me, rather I came accross this while enhancing a product command, it can only be solved by adding this implementation.
 
Old 05-31-2007, 08:24 AM   #5
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,696
Blog Entries: 5

Rep: Reputation: 241Reputation: 241Reputation: 241
Quote:
Originally Posted by ajaykr
My intention is to write a C program which behaves exactly as "more" command does. Its not a homework for me, rather I came accross this while enhancing a product command, it can only be solved by adding this implementation.
you can look at the source codes to get some inspiration. download the link i give, unzip and inside there's a more.c file. not sure is it what you want..but at least it can get you started. otherwise, searching google code search may produce more results.
 
  


Reply

Tags
command, implementation


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
"list dynamic dependency" of an executable using command other than "ldd" Amrita@3086 Solaris / OpenSolaris 3 04-04-2007 04:56 AM
Could you implement a "search" for subscribed threads JZL240I-U LQ Suggestions & Feedback 3 08-22-2006 10:15 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
IS there a way to implement a weekly "downloading quota"? linux-addict Linux - Networking 9 01-13-2004 10:42 AM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM


All times are GMT -5. The time now is 07:13 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