LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Stop & running Batch (https://www.linuxquestions.org/questions/linux-newbie-8/stop-and-running-batch-4175461527/)

Tareq9959 05-11-2013 05:12 AM

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 ...?

YoHoo Comics 05-11-2013 09:14 AM

You mean a shell script? You can stop any running terminal process with Ctrl->Z

TB0ne 05-11-2013 11:07 AM

Quote:

Originally Posted by YoHoo Comics (Post 4949095)
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/

TB0ne 05-11-2013 11:10 AM

Quote:

Originally Posted by Tareq9959 (Post 4949024)
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.

YoHoo Comics 06-04-2013 04:36 PM

Quote:

Originally Posted by TB0ne (Post 4949139)
...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.


All times are GMT -5. The time now is 10:57 PM.