Solved

Find Process ID of Job Created with AT

Posted on 1999-01-25
7
251 Views
Last Modified: 2010-05-18
When I start a command with AT, I wish to know its process ID to kill it, and see if its finished.  How is this done?
I normally use tail -f <logfile> to watch its log progress.
0
Comment
Question by:snydero
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 7

Expert Comment

by:HalldorG
ID: 2009410
pstree will give you some clues
0
 
LVL 1

Author Comment

by:snydero
ID: 2009411
Sorry I didn't mention that its Sun Solaris 2.6 - bash shell.
The pstree command is not found.  Could i change shell and use it.  How do I change shell?

0
 
LVL 7

Expert Comment

by:HalldorG
ID: 2009412
The pstree is a linux command :( sorry
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Accepted Solution

by:
jcea earned 50 total points
ID: 2009413
* Write in the AT invocation something like "cat $$ >/path/pid". So, when AT executes your process,. its PID will be saved into "pid" file.

* Run your AT jobs as a special user. You can use "ptree" to see the processes tree per User or per PID.
0
 
LVL 1

Author Comment

by:snydero
ID: 2009414
I had to use "echo $$ >/path/pid" in this version (bash)
Thanks for the expertise
0
 
LVL 1

Expert Comment

by:jcea
ID: 2009415
Yeah, a typo, you know :-). You're right, of course.
0
 

Expert Comment

by:ssaldhi
ID: 2009416
After giving the at command ,just give echo $$ to have its PID
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now