LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-11-2013, 06:12 AM   #1
Tareq9959
LQ Newbie
 
Registered: May 2013
Posts: 6

Rep: Reputation: Disabled
Question Stop & running Batch


Hii friends,

i have tow question ?
1- if i have bath or batches are running and i want run this batch how this could be

2- if my batch is running and then i want to stop this batch how this is done ..

plz help me in this guys its very important for me and may be for others ...?
 
Old 05-11-2013, 10:14 AM   #2
YoHoo Comics
LQ Newbie
 
Registered: May 2013
Posts: 20

Rep: Reputation: Disabled
You mean a shell script? You can stop any running terminal process with Ctrl->Z
 
Old 05-11-2013, 12:07 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by YoHoo Comics View Post
You mean a shell script? You can stop any running terminal process with Ctrl->Z
...which will put the command to the background, and continue running. A CTRL-C will stop it.

http://www.thegeekstuff.com/2010/05/...ackground-job/
 
Old 05-11-2013, 12:10 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by Tareq9959 View Post
Hii friends,
i have tow question ?
1- if i have bath or batches are running and i want run this batch how this could be
Linux doesn't have 'batches'. If you mean commands, and you want to run them, you type in the command name, obviously, just like you would for any other operating system.
Quote:
2- if my batch is running and then i want to stop this batch how this is done ..
You hit CTRL-C.
Quote:
plz help me in this guys its very important for me and may be for others ...?
Spell out your words...you posted this same question THREE TIMES, which is against LQ Rules, and if it was very important for you, you should try Google, since it would have told you the answer faster than posting the question. And, I can only assume this is some sort of homework, so really your first inquiry should have been to your teacher, if you're having problems.
 
Old 06-04-2013, 05:36 PM   #5
YoHoo Comics
LQ Newbie
 
Registered: May 2013
Posts: 20

Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by TB0ne View Post
...which will put the command to the background, and continue running. A CTRL-C will stop it.

http://www.thegeekstuff.com/2010/05/...ackground-job/
My mistake, sorry. Your right. I don't use keyboard shortcuts alot...
Anyway a shell script, if run from the terminal, should exit when there are no more processes to complete and the file ends.
 
  


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
[SOLVED] Running batch file does not produce same results as running command from Terminal nmuleski Linux - Newbie 9 12-30-2011 10:52 AM
Problems running batch file Poison Ivy 30 Linux - Newbie 3 01-16-2009 03:23 AM
Running Windows batch script from Unix rrguyyala AIX 4 08-26-2007 09:43 AM
Running a DOS batch file nyghtraven Linux - General 4 02-03-2007 03:18 AM
running ssh connection into batch file jdonaldogg General 1 12-17-2005 11:25 PM


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