public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
From: Manish Kumar Arya <manish_ipx@yahoo.com>
To: Saurabh Agarwal <saurabhagarwal1981@gmail.com>,
	python-list@python.org,
	The Linux-Delhi mailing list <ilugd@lists.linux-delhi.org>,
	linux-8086@vger.kernel.org, ecos-devel@sources.redhat.com,
	ecos-discuss@ecos.sourceware.org
Subject: Re: How to send SIGTSTP,SIGCONt signals to a script scheduled using cron
Date: Thu, 23 Sep 2004 02:29:19 -0700 (PDT)	[thread overview]
Message-ID: <20040923092919.69177.qmail@web51507.mail.yahoo.com> (raw)
In-Reply-To: <b237c3a1040923021042f3839e@mail.gmail.com>

hi

the step i told u earlier will definatly work

pid=`ps ax | grep urcommand | cut -b 2-6 | grep -v
tty`

u have to include more with tty like pty etc

if any script is scheduled using cron, the script
names does appears in ps ax output, and u can gets pid
on this basis.

once u got pid u can easily send sigals to it.

please let me know if u have ne further query

-Manish
LinuxIndia.net

--- Saurabh Agarwal <saurabhagarwal1981@gmail.com>
wrote:

> Hi all,
> I had scheduled a script using cron and got pid of
> it when it is
> running as it is running for a long time.The script
> is  somewhat like
> 
> cmd
> sleep 10
> cmd2
> sleep  20
> ..
> This is scheduled using cron now i want to send
> SIGTSTP signal to it
> to suspend it
> and SIGCONT to resume it but these signals are not
> working please help urgently.
> kill -SIGTSTP pid
> 
> Thanks
> -- 
> Saurabh Agarwal
> 9868358071
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

      reply	other threads:[~2004-09-23  9:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-23  9:10 How to send SIGTSTP, SIGCONt signals to a script scheduled using cron Saurabh Agarwal
2004-09-23  9:29 ` Manish Kumar Arya [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040923092919.69177.qmail@web51507.mail.yahoo.com \
    --to=manish_ipx@yahoo.com \
    --cc=ecos-devel@sources.redhat.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=ilugd@lists.linux-delhi.org \
    --cc=linux-8086@vger.kernel.org \
    --cc=python-list@python.org \
    --cc=saurabhagarwal1981@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox