LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linuxrc and nash (https://www.linuxquestions.org/questions/linux-software-2/linuxrc-and-nash-804802/)

managementguy 04-28-2010 01:02 PM

Linuxrc and nash
 
I have a requirement to run a script code in linuxrc which deals with
string and sub string functionality. But the linuxrc file contains #!/
bin/nash so its not recognizing any bash shell commands. How I can use
Bash shell commands in linuxrc can I change the first line #!/bin/
nash to #!/bin/bash and the system will execute in bash shell. What
if bash shell is not present at that point. and in this case if it
executes will it execute all the nash commands properly in bash shell.

Thanks in adv

managementguy 04-28-2010 01:05 PM

I can't seem to use any other command interpreter (e.g. sh) in the /linuxrc file, if I change the linuxrc from #!/bin/
nash to #!/bin/bash the kernel just gives me an error, asking me to specify init="", however the relevant command is there!
Even the ls cat all basic commands are not working.

Is it only possible to use "bash" in the linuxrc script and if so how?

Thanks for your help


All times are GMT -5. The time now is 04:14 PM.