LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Scripts Variation (https://www.linuxquestions.org/questions/linux-newbie-8/scripts-variation-537125/)

shipon_97 03-13-2007 12:52 PM

Scripts Variation
 
Dear friends,

I have to find Two types of Scripts in Linux . Some wre using "@@@@@@" character which is not readable mode AND other is normal bash/ksh scripts which are Readable .

Now my question is what is the differents between this two types of Scripts And How can I change a Normal bash shell scripts into "@@@@@@" form ?
plz explain me .. ..

pixellany 03-13-2007 02:16 PM

I do not understand the question---using "@@@@@@" where???

Any file--including a script--is readable according to how the permissions are set.
Quote:

I have to find Two types of Scripts in Linux
Why??

shipon_97 03-14-2007 12:10 PM

Script Variation
 
Dear pixellany ,

Very recently I have to install ORACLE 9i into my RHEL 4. here in $ORACLE_HOME/bin , I get a lot of scripts Like dbsnmp,oemctl ets.
Now when I open "dbsnmp" using VI editor I get some character Like the following :

^?ELF^A^A^A^@^@^@^@^@^@^@^@^@^B^@^C^@^A^@^@^@ 6^E^H4^@^@^@<90>u#^@^@^@^@^@4^@ ^@^G^@(^@^^^@^[^@^F^@^@^@4^@^@^@4<80>^D^H

And again when I open the "oemctl" file using VI editor , I get following :

#!/bin/sh
sageAndExit()
{
echo "Usage: $ME start oms "
echo " $ME stop oms <EM Username>/<EM Password>"
echo " $ME status oms <EM Username>/<EM Password>[@<OMS-hostname>]"
echo " $ME ping oms "
echo " $ME enable eventhandler "
echo " $ME disable eventhandler "
echo " $ME export eventhandler <filename> "
echo " $ME import eventhandler <filename> "
echo " $ME dump eventhandler "
echo " $ME import registry <filename> <repUserName>/<repPasswd>@<repAlias> "
echo " $ME export registry <repUserName>/<repPasswd>@<repAlias> "
echo " $ME configure rws "
exit 1
}
Like this.

Now plz explain me what is the difference between them ?


All times are GMT -5. The time now is 08:19 PM.