This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to send SIGTSTP,SIGCONt signals to a script scheduled using cron


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]