Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Find Process ID of Job Created with AT

Posted on 1999-01-25
7
253 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

839 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