HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- #!/usr/bin/ksh, however ksh does not show up in ps
Operating System - Tru64 Unix
1829879
Members
3623
Online
109993
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 12:06 AM
10-22-2003 12:06 AM
#!/usr/bin/ksh, however ksh does not show up in ps
Hi,
I start a script by crontab and I check whether it is still running with the code below. However now ps shows no more ksh.
What can it be? I am using 5.1A PK3
hub 588838 678911 0.0 23:00:00 ?? 0:00.01 /teamhub/prod/app/xfac
e/bat/xface.teamdata_monitor
function check_if_xface_is_running
{
if test `ps -eo pid,command | grep "ksh.*teamdata_monitor" | grep -v grep | wc
-l` -gt 1
then
return 1
fi
return 0
}
I start a script by crontab and I check whether it is still running with the code below. However now ps shows no more ksh.
What can it be? I am using 5.1A PK3
hub 588838 678911 0.0 23:00:00 ?? 0:00.01 /teamhub/prod/app/xfac
e/bat/xface.teamdata_monitor
function check_if_xface_is_running
{
if test `ps -eo pid,command | grep "ksh.*teamdata_monitor" | grep -v grep | wc
-l` -gt 1
then
return 1
fi
return 0
}
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 01:16 AM
10-22-2003 01:16 AM
Re: #!/usr/bin/ksh, however ksh does not show up in ps
Here is what I see under TRU64 4.0F
# ps -u sys_vf
PID TTY S TIME CMD
22726 ttyq6 I N 0:00.01 ksh ./sl.ksh
30689 ttyq6 I N 0:00.01 sleep 1440
31463 ttyq6 S 0:00.07 -ksh (ksh)
Here is what I see under TRU64 5.1
# ps -u sys_vf
PID TTY S TIME CMD
6271 console I + 0:00.14 -ksh (ksh)
72243 pts/1 S 0:00.20 -ksh (ksh)
75753 pts/1 I N 0:00.01 ./sl.ksh
75754 pts/1 I N 0:00.01 sleep 1440
Changes depend on:
Tru64 > 5.x use parenthesis when the child had a child process, parent displayed to the left if not, the -child is displayed
(here -ksh (ksh))
So it is a well known feature not a bug.
# ps -u sys_vf
PID TTY S TIME CMD
22726 ttyq6 I N 0:00.01 ksh ./sl.ksh
30689 ttyq6 I N 0:00.01 sleep 1440
31463 ttyq6 S 0:00.07 -ksh (ksh)
Here is what I see under TRU64 5.1
# ps -u sys_vf
PID TTY S TIME CMD
6271 console I + 0:00.14 -ksh (ksh)
72243 pts/1 S 0:00.20 -ksh (ksh)
75753 pts/1 I N 0:00.01 ./sl.ksh
75754 pts/1 I N 0:00.01 sleep 1440
Changes depend on:
Tru64 > 5.x use parenthesis when the child had a child process, parent displayed to the left if not, the -child is displayed
(here -ksh (ksh))
So it is a well known feature not a bug.
Help() { FirstReadManual(urgently); Go_to_it;; }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2003 03:07 AM
10-22-2003 03:07 AM
Re: #!/usr/bin/ksh, however ksh does not show up in ps
Hi Ralf,
thanks for your info. This explains, why my check does not work anymore. However, I am not happy about it. :-(
best regards
Michael
thanks for your info. This explains, why my check does not work anymore. However, I am not happy about it. :-(
best regards
Michael
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP