public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* How to send SIGTSTP, SIGCONt signals to a script scheduled using cron
@ 2004-09-23  9:10 Saurabh Agarwal
  2004-09-23  9:29 ` How to send SIGTSTP,SIGCONt " Manish Kumar Arya
  0 siblings, 1 reply; 2+ messages in thread
From: Saurabh Agarwal @ 2004-09-23  9:10 UTC (permalink / raw)
  To: python-list-+ZN9ApsXKcEdnm+yROfE0A, The Linux-Delhi mailing list,
	linux-8086-u79uwXL29TY76Z2rM5mHXA,
	ecos-devel-R2MHTz/CkKAf7BdofF/totBPR1lH4CV8,
	ecos-discuss-Uw52s+jYEPSZhAaKUW67JEB+6BGkLq7r

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

_______________________________________________
ilugd mailinglist -- ilugd-cunTk1MwBs8/MmOfgqcDl+ys7Bb73OIl@public.gmane.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd-cunTk1MwBs8/MmOfgqcDl+ys7Bb73OIl@public.gmane.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to send SIGTSTP,SIGCONt signals to a script scheduled using cron
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Manish Kumar Arya @ 2004-09-23  9:29 UTC (permalink / raw)
  To: Saurabh Agarwal, python-list, The Linux-Delhi mailing list,
	linux-8086, ecos-devel, ecos-discuss

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 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-23  9:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-23  9:10 How to send SIGTSTP, SIGCONt signals to a script scheduled using cron Saurabh Agarwal
2004-09-23  9:29 ` How to send SIGTSTP,SIGCONt " Manish Kumar Arya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox