Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-13-2013, 01:46 AM   #1
LQ Newbie
Registered: Sep 2013
Posts: 4

Rep: Reputation: Disabled
User defined linux commands in a user defined shell

I am working on building a user defined linux shell using system calls and in that I have to create some user defined commands for killing all background processes, listing the processes and their statuses etc. Please tell me how to do this using system calls.
Old 09-13-2013, 02:12 AM   #2
Senior Member
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444

wouldn’t take much to translate SIGCONT to SIGTERM
Old 09-13-2013, 06:40 AM   #3
LQ Newbie
Registered: Sep 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
I don't have time to translate. So please help me if you know some other methods using system calls.
Old 09-13-2013, 07:21 AM   #4
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,706

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
You waited too long to get your homework done in time.

First you have to understand how processes work, and are organized. Then you have to track what processes your "shell" creates, and how to kill them/wait for them/suspend them...

Not to mention the syntax (and all the error handling needed) for your shell in the first place.


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
Regarding user defined shell help me please...urgent!! Sushma05 Linux - Newbie 3 09-12-2013 06:54 AM
user defined input in shell script ovaisalam Linux - Newbie 4 12-08-2010 06:44 AM
user defined shell commands ashley_31 Linux - Software 11 05-15-2006 03:27 AM
how to define user-defined commands in linux mannoulla Linux - General 1 04-05-2005 09:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:43 PM.

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