- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: property of Korn shell and POSIX shell
Operating System - HP-UX
1756569
Members
2579
Online
108848
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
Discussions
Discussions
Forums
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
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
тАО12-09-2008 04:34 AM
тАО12-09-2008 04:34 AM
Re: property of Korn shell and POSIX shell
>why isn't the standard "korn shell" of HP-UX Korn93? can i use Korn93 version /usr/dt/bin/dtksh?
Because it's different? Is it installed on your machines?
>one effect is now when variable not initialized and in the source code exists: "unset VARIABLE" the shell script got an error and stop.
That's goodness.
>with Korn93 I have now problems
What are they? Perhaps that's why ksh93 isn't the default?
>the program tool have been worked for many years with "Korn Shell", so I think it is better for me to use "Korn93"?
It is probably better to continue using ksh.
Because it's different? Is it installed on your machines?
>one effect is now when variable not initialized and in the source code exists: "unset VARIABLE" the shell script got an error and stop.
That's goodness.
>with Korn93 I have now problems
What are they? Perhaps that's why ksh93 isn't the default?
>the program tool have been worked for many years with "Korn Shell", so I think it is better for me to use "Korn93"?
It is probably better to continue using ksh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2008 04:36 AM
тАО12-09-2008 04:36 AM
Re: property of Korn shell and POSIX shell
Hi (again):
> can i use Korn93 version '/usr/dt/bin/dtksh'?
Yes, of course. Again, pay attention to everything that has been said in this thread, though.
Regards!
...JRF...
> can i use Korn93 version '/usr/dt/bin/dtksh'?
Yes, of course. Again, pay attention to everything that has been said in this thread, though.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 07:14 AM
тАО12-23-2008 07:14 AM
Re: property of Korn shell and POSIX shell
i choose now POSIX because Korn93 version '/usr/dt/bin/dtksh' has some effects like :
i tried to check a file with permission "s" (set-owner-ID-on-file-execution or set-group-ID-on-file-execution permission) like
if [ -u file ];then;echo ok;fi
and if doesn't match,also
if [ ! -u file ];then;echo ok;fi
i had to change some source codes for POSIX,but it works now.
i tried to check a file with permission "s" (set-owner-ID-on-file-execution or set-group-ID-on-file-execution permission) like
if [ -u file ];then;echo ok;fi
and if doesn't match,also
if [ ! -u file ];then;echo ok;fi
i had to change some source codes for POSIX,but it works now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2008 07:25 AM
тАО12-23-2008 07:25 AM
Re: property of Korn shell and POSIX shell
Hi (again):
Regarding your last post about checking for 'setuid' bits, this works for me:
# cat ./seeset
#!/usr/dt/bin/dtksh
[ -u /sbin/passwd ] && echo "is setuid" || echo "not setuid"
[ -u /etc/passwd ] && echo "is setuid" || echo "not setuid"
Regards!
...JRF...
Regarding your last post about checking for 'setuid' bits, this works for me:
# cat ./seeset
#!/usr/dt/bin/dtksh
[ -u /sbin/passwd ] && echo "is setuid" || echo "not setuid"
[ -u /etc/passwd ] && echo "is setuid" || echo "not setuid"
Regards!
...JRF...
- « Previous
-
- 1
- 2
- Next »
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP