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 03-18-2012, 07:33 PM   #1
dajobi
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
HELP ME! URGENT - Entered "exit" before previous command had completed run


Please help me (Newbie) urgently.

I was restarting our application via SSH and thought the command was complete when I entered "exit". This obviously was a bad thing to do and, the application didn't restart and now when I try to restart
using the SSH command line
Code:
~/tardis/production/delta/trunk/cron/restart.sh
Instead of running the restart script it instead displays...
Code:
.: 13: Can't open exit/bin/functions
Does anyone have an idea what I can do to fix it?

Thanks and appreciated in advance.
 
Old 03-18-2012, 07:52 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 7,458

Rep: Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408
Here's a suggestion.

Try ps -A (if you don't see the desired results as user, try it as root). If the output contains the hung process(es), try the kill command on them. Then try to restart them.

See man ps and man kill for details.
 
Old 03-18-2012, 07:53 PM   #3
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 607

Rep: Reputation: 127Reputation: 127
Most restart scripts will attempt a clean shutdown before restarting. It looks as thats the case. (Path is not set and so cant exit).

So you will have to go into "restart.sh" and manually set the path, complete the shutdown and start up.

How big is the code in restart.sh? Make a copy of startup.sh before examining and tinkering with it as below:
mv restart.sh restart_safe.sh # this retains file info like date etc.
cp restart_safe.sh restart.sh


Because you posted your thread with the subject beginning with "HELPME! URGENT", you are likely to get some comments you could have avoided.

OK
 
Old 03-18-2012, 08:12 PM   #4
dajobi
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the quick responses.

Not sure if this will help other newbies like me in future. But I was helped with this set of instructions from the developer. Basically he told me entering "exit" before the process was complete de-configured the path.

So in my case this is was re-configured it.

Check dir

Quote:
pwd
/home/tasvac
Then

Quote:
cd ~
. ./setup
User/Instance: tasvac/production
Enter Setup Dir [exit] (d: /home/tasvac/tardis) ? /home/tasvac/tardis
Then just followed the steps entering "return" as it went.

After it completed then I was able to re-run the restart.sh successfully.

All happy now.
 
  


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
sudo to solve this error "tar: Error exit delayed from previous errors" ? xombboxer Linux - Newbie 7 03-13-2012 02:26 AM
Multiple issues including: "Previous Installation hasn't been completed" sisterdelirious Linux - Software 6 09-16-2010 04:49 AM
How to exit and save (or just to exit) inside a "make config" running command? scrat75 Linux - Kernel 6 09-05-2008 04:02 PM
tar "Error exit delayed from previous errors" using "-C /" ToK Linux - Software 2 03-19-2008 06:49 AM
Red Hat 5 " tar: error exit delayed from previous errors" brettreyu Linux - Newbie 4 09-13-2007 01:42 PM


All times are GMT -5. The time now is 03:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration