This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How to send SIGTSTP,SIGCONt signals to a script scheduled using cron
- From: Manish Kumar Arya <manish_ipx at yahoo dot com>
- To: Saurabh Agarwal <saurabhagarwal1981 at gmail dot com>, python-list at python dot org, The Linux-Delhi mailing list <ilugd at lists dot linux-delhi dot org>, linux-8086 at vger dot kernel dot org, ecos-devel at sources dot redhat dot com, ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 23 Sep 2004 02:29:19 -0700 (PDT)
- Subject: [ECOS] Re: How to send SIGTSTP,SIGCONt signals to a script scheduled using cron
- Reply-to: manish_ipx at yahoo dot 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
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss