LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2010, 01:02 PM   #1
managementguy
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
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
 
Old 04-28-2010, 01:05 PM   #2
managementguy
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
initrd modification: alternatives to nash? Lord Estraven Red Hat 3 10-25-2009 09:18 AM
LPIC 1 Certification Bible by Angie Nash and Jason Nash RomanMoz Linux - Certification 3 12-30-2006 12:39 PM
nash 4.1.18.1 Problem rosenblitt Linux - Software 0 12-07-2005 08:43 AM
GENTOO - "init=/linuxrc" (/linuxrc: not found | kernel panic!!) halo14 Linux - Distributions 6 01-14-2005 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration