meaning of #!/bin/ksh -p


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting meaning of #!/bin/ksh -p
# 1  
Old 10-04-2010
meaning of #!/bin/ksh -p

SmilieHI Friends,

Can you help me understand -p option with /usr/bin/ksh shell interpreter ?

Thanks,
Panditt
# 2  
Old 10-04-2010
From man ksh:
Code:
              -p      Disables processing of the $HOME/.profile file and  uses
                      the  file  /etc/suid_profile  instead  of  the ENV file.
                      This mode is on whenever the effective uid (gid) is  not
                      equal  to  the  real uid (gid).  Turning this off causes
                      the effective uid and gid to be set to the real uid  and
                      gid.

This User Gave Thanks to Corona688 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Usage of #!/bin/ksh

Hi, In the beginning of Shell script, we give a statement like #!/bin/ksh I have 2 questions related to this, 1) It could denote about the shell we want to use, what is the real usage of this? My shell script works even without this statement, is it a mandatory one. 2) I'm using... (7 Replies)
Discussion started by: Dev_Dev
7 Replies

2. Shell Programming and Scripting

help me out in letting me know the meaning of sh, ksh, bash

Could you please help me out in letting me know the meaning of #!/bin/sh #!/bin/ksh #!/bin/bash what the difference between all these :eek:.... Also please view the below mention script, could you please explain whats this script doing #!/bin/bash t=100 echo $t echo $tea echo... (4 Replies)
Discussion started by: jojo123
4 Replies

3. UNIX for Dummies Questions & Answers

fuser: difference with bin/sh and bin/ksh shell script

Hi, I have a problem I don't understand with fuser. I launch a simple shell script mysleep.sh: I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted: mysleep: Then I modify my script switching from #!/bin/sh to #!/bin/ksh I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies

4. Shell Programming and Scripting

/bin/sh and /bin/ksh problem

we have a shell script that we are using in KSH if ]; then _IFS=$IFS IFS=: and it's failing on /bin/sh . Is there a simple way to modify it to work on both . ( not with awk) Thanks in adv (3 Replies)
Discussion started by: talashil
3 Replies

5. Shell Programming and Scripting

Meaning of "if [ -x /opt/OV/bin/ovpolicy ]"

Hi, Could someone pls help me on the below command: if then ------------------ ------------ fi if then ------------- ------------------- ------------------- fi What does this signify? Thanks, .. (4 Replies)
Discussion started by: ww26683
4 Replies

6. Shell Programming and Scripting

if [ ! -r ${1} ] meaning in ksh

hi, iam new of unik if meaning in ksh (1 Reply)
Discussion started by: naveeng.81
1 Replies

7. Shell Programming and Scripting

#!/bin/sh and #!/bin/ksh

Hi All, I have a shell (#!/bin/sh) with below piece of code: if ! then echo Staging table ABC_INT_TAB is not present in the schema >> $OUTPUT fi Shell is throwning below error and continue to work even after this error... (3 Replies)
Discussion started by: bhush782003
3 Replies

8. Shell Programming and Scripting

#!/bin/ksh -e

Can you please tell me what the command "#!/bin/ksh -e" means? I tried running a ksh script with "#!/bin/ksh -e" as starting line, and with "#!/bin/ksh" as starting line - they behave differently.. Thanks! Ramya (2 Replies)
Discussion started by: ramsi_ece
2 Replies

9. Shell Programming and Scripting

#!/bin/ksh

Hi, I wrote scripting to perform some jobs. (eg, run_job) Everything works ok when i tested it on my side. I execute the run_job manually and it works perfectly ok. When my administrator try to run it using a scheduler job. He encountered problem of running it. He said it might be due to... (1 Reply)
Discussion started by: maldini
1 Replies

10. Shell Programming and Scripting

#!/bin/ksh

Hi. What does this command do in the shell script? #!/bin/ksh I have some scripts which do not run if this line is removed. First I thought it is comment but I think it sets up korn as shell. Sanjay (2 Replies)
Discussion started by: sanjay_g
2 Replies
Login or Register to Ask a Question