The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
running script in background on remote machine hcclnoodles Shell Programming and Scripting 5 11-21-2008 11:26 AM
How to stop asking password while running shell script? govindts Shell Programming and Scripting 5 11-12-2008 02:40 PM
Running RSH on the background eamani_sun Shell Programming and Scripting 2 06-02-2008 01:37 PM
running in background ali560045 Shell Programming and Scripting 5 04-30-2008 02:43 AM
How to find the jobs running in background and stop srinivas_paluku Shell Programming and Scripting 7 01-28-2008 08:41 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-22-2008
Prateek007 Prateek007 is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 18
Unhappy How to stop the script which is running in background

Hi

I have a script, which i ran in background, can someone please help in stopping this.

i gave this command:

ksh abc.ksh &

this script sends me a mail every 30 seconds. i have deleted the script but still i am getting the mails. can some one please help me stopping dese.

thanks in advance
  #2 (permalink)  
Old 11-23-2008
replytoshishir replytoshishir is offline
Registered User
  
 

Join Date: May 2006
Location: Bangalore
Posts: 23
try this
history | sed 's/[0-9][0-9]*//'


thnx Shishir
  #3 (permalink)  
Old 11-23-2008
summer_cherry summer_cherry is offline Forum Advisor  
Registered User
  
 

Join Date: Jun 2007
Location: Beijing China
Posts: 1,047
you may try below:
Code:
ps -ef | grep -i XXXX:  to find your background running process

kill OID : kill your unnecessary process
  #4 (permalink)  
Old 11-23-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,910
just do a "fg" to bring your process back and stop it with ctrl+c.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0