how to see particular job whether completed or not?

Answers were Sorted based on User's Feedback



how to see particular job whether completed or not?..

Answer / swapnil

To see particular job whether completed or not fire
following comand

ps -ef | grep (name of that process)

will give process ID start time of process also

Is This Answer Correct ?    2 Yes 0 No

how to see particular job whether completed or not?..

Answer / daaga

use command "jobs" without quotes. The o/p will be self
explanatory....

Is This Answer Correct ?    1 Yes 0 No

how to see particular job whether completed or not?..

Answer / arun

ps -ef | grep ( particular job)

Is This Answer Correct ?    0 Yes 0 No

how to see particular job whether completed or not?..

Answer / stratovarius

One way would checking the successful completion of a
command, check the exit status.
An exit status of zero indactes sucess,
An exit status or 1 or above indicates error.

example:
#cd /etc
#echo $?
0
#

This indicates the command change directory was a success.

#ps -ef | grep <process_name>
#pgrep -fl |grep <process_name>

Will show display details of the process/programs loaded..
such as the PID.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Solaris Commands Interview Questions

I have a "telnet" error then what you will do?

4 Answers   Thomson Reuters,


How to change the hostname and Ethernet address in single command

2 Answers  


After creating swap file update the same to /etc/vfstab what will be the fstype.

3 Answers  


How to find memory status i.e.. it is full like 100%?

5 Answers   HP,


How to rename the old root disk. In this example, rootdisk is being renamed as rootold.

1 Answers  






Default path for patches

2 Answers  


What is Sun Explorer ?

5 Answers   CTS,


how to stop the process using process name

10 Answers   HP,


what is use of default users in solaris especilly nobady,noacess and nobady4

2 Answers  


If super block corrupted how to recover

2 Answers  


What is the nature of VCS?

2 Answers  


What is nslookup

2 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)