For instance, if it is a ksh script and a path to ksh is /usr/bin/ksh, since ksh will gladly run a script as
unlike sed where you say
so you need no argument, the first line should be:
Sometimes this is called the magic. For our memory, we call this "pound-bang"! It is documented in man 2 exec: Man Page for exec (OpenSolaris Section 2) - The UNIX and Linux Forums
It also guides the file command to identify it as a ksh script. As the man page warns, you might end up under some shell (sh?) as stdin without it. In UNIX, interpreted files with right permissions
are just as executable as binaries to the common loader, exec().
The only thing where scripts are second class is if you would set setuid or setgrpid bits with chmod and have scripts that change user or group; it is too insecure, so when loading setuid/setgrpid, the dynamic library path is unset by exec as it changes user/group, and withou it the ksh cannot run. A C program compiled with -R can have hard coded dynamic library paths and so be setuid/setgrpid. Many commands you use to see OS things or affect other processes are setuid to a super-user:
Last edited by DGPickett; 11-17-2010 at 09:01 PM..
i corrected that problem.....
this problem was due to the placing of balance updation code inside the amtvalidation function ....
i kept this code out side the function and problem was corrected
the code that i have pasted in this thread was running fine because it has the updation code separate from validation function .....
but in my office server it was inside the validation function
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.
Please review the rules, which you agreed to when you registered, if you have not already done so.
More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.
Hello,
Please suggest or share any of your experience for the following requests:
Request:
1.
Creation of the local network.
The company will be in the field of IT.
10-15 persons. 10 will be physically in the office.
The local network should be secured and all the files and... (0 Replies)
Hi friends,
I am a Computer Science student, and about to do my final year project. I am a big lover of Solaris and SPARC RISC computers, and I want to work on those computers in future. I want to become a System Administrator/Security Administrator etc on the Solaris stuff. Could you please tell... (1 Reply)
Dear all,
i am in last year of electronics department in engineering faculty
i need suggestions for a graduation project based on unix or free bsd or linux and electronics "embedded linux "
i think about embedded unix for example or device drivers
please i need helps (1 Reply)
Dear all,
i am in last year of electronics department in engineering faculty
i need suggestions for a graduation project based on unix or free bsd or linux and electronics "embedded linux "
i think about embedded unix for example or device drivers
please i need helps (1 Reply)
Dear all,
i am in last year of electronics department in engineering faculty
i need suggestions for a graduation project based on unix or free bsd or linux and electronics "embedded linux "
i think about embedded unix for example or device drivers
please i need helps (1 Reply)
Dear all,
i am in last year of electronics department in engineering faculty
i need suggestions for a graduation project based on unix or free bsd or linux and electronics "embedded linux "
i think about embedded unix for example or device drivers
please i need helps (1 Reply)
hi guys,
its been a while since my last visit here,
could not keep up the pace on this ever changing industry :)
i'd just doing my home research under vmware to make a solaris-based router-firewall using zones - doing a lot of reading about zones & review solaris zone functionality.
and... (4 Replies)
Hi All,
I am having problem with kerberos kadmin library in c++.
I am using red hat linux Enterprise Linux Server release 5 (Tikanga), and gcc c++ - 4.1.1-52.el4.i386.
When I make a c project (main.c) and use function from kadmin library such as
kadm5_init_krb5_context(&context); ... (2 Replies)
could any one provide me any new real time project idea in shell scripting
i am learning shell script and wants to do some real time development . (1 Reply)