public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Urgent help needed How to get pid of a command ,script which is scheduled using at command
@ 2004-09-22 16:04 Saurabh Agarwal
  2004-09-23  3:35 ` Manish Kumar Arya
  0 siblings, 1 reply; 2+ messages in thread
From: Saurabh Agarwal @ 2004-09-22 16:04 UTC (permalink / raw)
  To: The Linux-Delhi mailing list, ecos-devel, Bhaskar Singhal

Hi All,

i want to get pid of a command or script which are scheduled using at.
I am scheduling a command using at which will take a lot of time.I
want to get pid of that command I am using solaris


Thanks
-- 
Saurabh Agarwal
9868358071

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

* Re: Urgent help needed How to get pid of a command ,script which is scheduled using at command
  2004-09-22 16:04 Urgent help needed How to get pid of a command ,script which is scheduled using at command Saurabh Agarwal
@ 2004-09-23  3:35 ` Manish Kumar Arya
  0 siblings, 0 replies; 2+ messages in thread
From: Manish Kumar Arya @ 2004-09-23  3:35 UTC (permalink / raw)
  To: Saurabh Agarwal, The Linux-Delhi mailing list, ecos-devel,
	Bhaskar Singhal, Manish Kumar Arya

hi

u invoke the command via a shell script like

#!/bin/sh

sh /<path>/command
if $? -eq 0
then
  echo "Command Executed properly with PID $!"
  #OR
  echo "Command Executed properly with PID $!" >
somefile
  #OR
  echo "Command Executed properly with PID $!" | mail
-S "mail Subject" email@urdomain.com 

else
  echo "Could not execute command
fi

now scheduled this script instead of scheduling
command directly

bye

Manish
LinuxIndia.net

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

> Hi All,
> 
> i want to get pid of a command or script which are
> scheduled using at.
> I am scheduling a command using at which will take a
> lot of time.I
> want to get pid of that command I am using solaris
> 
> 
> Thanks
> -- 
> Saurabh Agarwal
> 9868358071
> 



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-22 16:04 Urgent help needed How to get pid of a command ,script which is scheduled using at command Saurabh Agarwal
2004-09-23  3:35 ` 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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).