LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-13-2006, 08:51 PM   #1
falloon
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Linux Command.. Need answer A.S.A.P. please


What command is used to suspend the execution of a script?? and what command can execute a command after any event??

thank you for reading
 
Old 11-13-2006, 08:59 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
I usually use CTRL+C to terminate a script or command I just issued.. Not sure if that's what you are looking for..

Not sure what you are asking with your second question.. maybe chaining multiple commands ?

to compile and install an application you wouuld typically use the following commands.

./configure
make
make install

you can chain all that together as a single command as follows..

./configure && make && make install

&& basically means if the previous command completed successfully do this command next..

I really have no idea if that is along the lines of what you were looking for or not..
 
Old 11-13-2006, 09:05 PM   #3
falloon
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Answer

Nah man... i need 2 commands... its for school. i tried lookin online but couldnt find anything.

thank tho bud
 
Old 11-13-2006, 09:18 PM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Quote:
Originally Posted by falloon
its for school.
Shouldn't have said that. Read the rules. Forum members aren't supposed to do peoples homework.
 
Old 11-13-2006, 10:11 PM   #5
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
a tips for you, searching for 'expect'
 
Old 11-13-2006, 10:31 PM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
There is a signal which stops execution of any running program, including scripts. Clue: kill -l and then lookup the meanings of the different signals.

There is a way to process all but one type of signal in UNIX-like OSes. Yes, youo can do it from a script. Thing of synonyms for the word "capture", and search your shell's man page.

I hate to be so obtuse, but just giving the answers for a school project is so lame.
 
Old 11-13-2006, 11:39 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by falloon
Nah man... i need 2 commands... its for school. i tried lookin online but couldnt find anything.

thank tho bud
First, the rules say "Don't **expect** us to help you." We are free to do what we wish.
The unwritten rule is to come in an ask informed questions which show that you have done--and are willing to do--your own research.
"Need an answer ASAP" is NOT a good way to start. The quote above is also not particularly helpful.

Quote:
and what command can execute a command after any event??
I don't understand this one: Do you mean execute a command in **response to** an event?

Finally, to get good homework help, describe more about what is the class, what kinds of things you have already learned, etc.
 
Old 11-14-2006, 03:25 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by pixellany
First, the rules say "Don't **expect** us to help you." We are free to do what we wish.
The unwritten rule is to come in an ask informed questions which show that you have done--and are willing to do--your own research.
"Need an answer ASAP" is NOT a good way to start. The quote above is also not particularly helpful.
I find the emphasis on your quote of the rules arguable; I'd
personally interpret is as

Quote:
Do not expect us to do your homework. ;}

Cheers,
Tink
 
Old 11-14-2006, 06:25 AM   #9
vimalkumar_k
LQ Newbie
 
Registered: Nov 2006
Posts: 14

Rep: Reputation: 0
the command:

1. kill -TERM <process id>

to find process id of a running process, use

ps - A

or

top
 
Old 11-14-2006, 12:11 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by vimalkumar_k
the command:

1. kill -TERM <process id>

to find process id of a running process, use

ps - A

or

top
Two things here:
a) we DON'T answer homework question directly, we nudge
people in the right direction.

b) kill -TERM <pid> is just wrong; it DOESN'T suspend execution,
it makes the process terminate.


Cheers,
Tink
 
Old 11-14-2006, 07:18 PM   #11
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
pgrep/pkill might be handy
 
  


Reply


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
BASH: How to answer command prompts using redirects ?? swedish_lunacy Linux - Newbie 1 07-25-2006 03:28 AM
Linux Answer mimithebrain LQ Suggestions & Feedback 5 12-23-2005 05:05 PM
Linux Answer LinuxLala LQ Suggestions & Feedback 2 05-03-2004 02:20 PM
Mini Answer: scriptable smb message with AT command andguent Linux - General 0 10-31-2003 01:10 PM


All times are GMT -5. The time now is 08:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration