











CompTIA
Exam Vouchers
Save money on CompTIA exams
| Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
| TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more | * ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i Online practice tests
Certification sites Online university Online college Online education Distance learning Software forum Server administration forum Programming resources
|
|  |
| Author |
shell and subshell
|
Bernie
Senior Member
Registered: Aug 2000 Location: Raleigh, NC Country: USA State: Certifications: Working on: BS in Network Engineering
Total Posts: 581
|
|
shell and subshell
I'm taking a class on Red Hat7.2 and the teach was discussing the diff shells. He then mentioned you can use a subshell and this subshell can be diff from the original shell. Ex) the shell is bash and you want to use sh for a subshell. My question is why would you use a subshell and why would want to use a diff shell from the original?
Report this post to a moderator
|
|
01-30-02 01:20 PM
|
|
webd
Senior Member F
Registered: Feb 2001 Location: San Fernando Country: Trinidad and Tobago State: Certifications: i-Net+ Working on: CCNA
Total Posts: 155
|
|
u use a subshell anytime u run a shell script. the subshell alows you to change the running enviroment as necessary.
__________________
Jamie Deonanan, i-Net+
Report this post to a moderator
|
|
01-30-02 05:28 PM
|
|
Bernie
Senior Member
Registered: Aug 2000 Location: Raleigh, NC Country: USA State: Certifications: Working on: BS in Network Engineering
Total Posts: 581
|
|
|
01-30-02 06:32 PM
|
|
webd
Senior Member F
Registered: Feb 2001 Location: San Fernando Country: Trinidad and Tobago State: Certifications: i-Net+ Working on: CCNA
Total Posts: 155
|
|
you can use the shell to write scripts that will run in a subshell. for example, put the following in a script called 'script01':
/bin/sh
date
ls -lai
then use the chmod u+x script01 command to make it executable. then when you type ./script01 it will spawn a subshell and execute the script.
__________________
Jamie Deonanan, i-Net+
Report this post to a moderator
|
|
01-30-02 06:44 PM
|
|
onoski
Determined IT Hussler M
Registered: Jan 2002 Location: Country: United kingdom State: Certifications: MCP NT4/Srv Working on: On gaining more practical skills, not papers
Total Posts: 775
|
|
I'd advice you to get a book on Linux/Unix commands such "Unix in a nutshell" or "Linux in a nutshell". Cheerio and happy learning.
Report this post to a moderator
|
|
02-08-02 09:09 AM
|
|
|
Featured site: MCSE, MCSD, CompTIA, CCNA training videos
Forum Rules: Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is ON. |
|
ExamNotes forum archive
|