![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to know rhe PID for the Shell Script running | pbsrinivas | Shell Programming and Scripting | 7 | 01-25-2007 09:10 AM |
| Shell script not running thru Cronjob | gauravshrinivas | Shell Programming and Scripting | 8 | 11-03-2006 10:17 AM |
| Problem in running shell script | gammit | UNIX for Dummies Questions & Answers | 6 | 09-11-2006 02:42 AM |
| Have a script running even with the shell logging out | 435 Gavea | Shell Programming and Scripting | 4 | 09-20-2005 05:20 PM |
| running shell script thru WEB page .... | Nicol | Shell Programming and Scripting | 6 | 07-21-2004 11:42 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
i have a script which need to do behave differently when run as a startup process from init.d/ rc2.d script and when run manually from shell. How do i distinguish whether my script is run by init process or by shell?? Will the command /proc/$$/psinfo | grep "myscript" work well??? Problem is i can't reboot my system to verify it. |
|
||||
|
|
|
||||
|
apptrace – for trace of library calls
dtrace – debugger, new in version 10 pargs – get list of arguments and environment variables with which process was started pfiles – list of file descriptors, associated with process pgrep – get the PID's of processes by name i.e. Something like ps -efl|grep -v grep|grep process_name pkill – send signal to process. For example pkill -9 init :-P pldd – list dynamic libraries, associated with process, similar to ldd for executable plockstat – see list of locked by process files. Lock can be mutex i.e. exclusive and reader/writer for shared access pmap – get memory map (segments) of process preap – try to kick-off zombie process prstat – fullscreen view of processes sorted by different criteria, similar to Linux top command prun – continue hold with pstop process ps - print process information and status. In Solaris exist SYSV and BSD variants, respectively /usr/bin/ps and /usr/ucb/ps psig – list signals that can be handled by process pstack – get backtrace stack of process for debugging purposes pstop – temporary hold process ptree - print the tree of processes pwait – wait till process finish pwdx – list working directory for process, like pwd command truss – for trace system calls and signals |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|