Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have run the command to backup 7 accounts and then i want to quit that command while its running. How can i quit from command line

I want that it should quit backing up all accounts not just current account and then i have to press again untill all accounts open

share|improve this question

3 Answers 3

Ctrl+C will kill the command if you ran it in the foreground from the same shell.

kill -9 will destroy everything in its path if you are killing it from a different environment, or you ran the command in the background.

share|improve this answer
    
i tried ctrl c but it then come to shell but processing is still going on –  John Mar 4 '10 at 1:33
4  
Please don't do kill -9 when it's not necessary. sial.org/howto/shell/kill-9 and mywiki.wooledge.org/…... –  Dennis Williamson Mar 4 '10 at 1:45

Use ps aux command to determine process which runs next backup and kill it, for example with kill -9.

share|improve this answer
4  
Please don't do kill -9 when it's not necessary. sial.org/howto/shell/kill-9 and mywiki.wooledge.org/…... –  Dennis Williamson Mar 4 '10 at 1:46

Use ps aux to determine the processid. Then kill it with kill -15 1234(where 1234 is the processid)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.