LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-28-2015, 09:28 AM   #1
tharun.mtk
LQ Newbie
 
Registered: Jul 2015
Posts: 1

Rep: Reputation: Disabled
How to kill a script running in BIOS (Ctrl + C doesn't working)


I have written a bash script that calls several other programs and executes a bunch of commands. I copied this script to the /etc/init.d and updated the run levels with default 100. Now I unable to move forward because the script is executing & programs are running. I unable to access the terminal also.

Pressing Ctrl + C sometimes doesn't working, I think because sometimes the script is executing another program, and for some reason the kill signal doesn't work.

Is there any option to kill the script ??
Please any one tell me how to kill the script.
 
Old 07-28-2015, 09:33 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Welcome to LQ! We'd very much like to help, but your current thread makes that difficult. Please visit http://www.linuxquestions.org/questi...#faq_lqwelcome for some additional information on how you can help us help you. If you have any questions or need additional clarification, just let us know.
 
Old 07-28-2015, 09:52 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Depends on the system...Depends on what is actually going on...

Since you indicate it is running at 100 (which doesn't quite make sense - start levels are only two digits long...).

If it happens to be a systemd based distribution, have you tried doing a secure shell login? If you can you then you can go to root and stop it.

If you can't, your only alternative is to crash the system, then boot in single user mode and remove the script.
 
Old 07-28-2015, 09:55 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Boot a live CD, mount your drive, pull the script back out of init.d, and then start the OS back up.
 
  


Reply



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] bash script how kill app running in bg that was started by the script porphyry5 Programming 2 07-26-2014 01:18 PM
Shell Script to start a program either not running or kill if running avataratar Linux - Newbie 1 03-29-2012 02:45 AM
Ctrl-enter doesn't work when running Midnight Commander in xterm narnie Linux - Software 6 02-19-2010 10:21 PM
Slack64-current - CTRL-ALT-BACKSPACE doesn't kill X GrapefruiTgirl Slackware 8 08-29-2009 09:32 AM
anaconda doesn't appear to be running dmraid during install - cannot see bios raid... avoidspam Fedora 14 02-06-2007 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 PM.

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
Open Source Consulting | Domain Registration