ExamNotes.net  -  IT certification portal

ForumsCertResearchTop sitesNewslettersFree email
HomeRegister
Exams Notes
Practice exams
Exam games
Questions by email
Online training
Training videos
College degrees
Boot camps
Book store
Links directory
Tell a friend
For webmasters

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






This is interesting: Free IT Magazines | Databases help forum



Other IT certifications > Linux/Unix > shell and subshell

Show a Printable Version
Email This Page to Someone!
Receive updates to this thread






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
Question 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

Old Post 01-30-02 01:20 PM
Bernie is offline Click Here to See the Profile for Bernie Click here to Send Bernie a Private Message Add Bernie to your buddy list Find more posts by Bernie Reply w/Quote Edit/Delete Message IP: Logged
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

Old Post 01-30-02 05:28 PM
webd is offline Click Here to See the Profile for webd Click here to Send webd a Private Message Visit webd's homepage! Add webd to your buddy list Find more posts by webd    Send an AIM message to webd Reply w/Quote Edit/Delete Message IP: Logged
Bernie
Senior Member




Registered: Aug 2000
Location: Raleigh, NC
Country: USA
State:
Certifications:
Working on: BS in Network Engineering

Total Posts: 581


sorry, i'm kinda new to the Linux/Unix thing. can you run a script on the first shell?

Report this post to a moderator

Old Post 01-30-02 06:32 PM
Bernie is offline Click Here to See the Profile for Bernie Click here to Send Bernie a Private Message Add Bernie to your buddy list Find more posts by Bernie Reply w/Quote Edit/Delete Message IP: Logged
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

Old Post 01-30-02 06:44 PM
webd is offline Click Here to See the Profile for webd Click here to Send webd a Private Message Visit webd's homepage! Add webd to your buddy list Find more posts by webd    Send an AIM message to webd Reply w/Quote Edit/Delete Message IP: Logged
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
Lightbulb

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

Old Post 02-08-02 09:09 AM
onoski is offline Click Here to See the Profile for onoski Click here to Send onoski a Private Message Add onoski to your buddy list Find more posts by onoski Reply w/Quote Edit/Delete Message IP: Logged
All times are GMT.
Post new thread   Post reply

Featured site: MCSE, MCSD, CompTIA, CCNA training videos



Forum Jump:
Rate This Thread:
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


Powered by: vBulletin 2.2.8
Copyright ©2000, Jelsoft Enterprises Limited.

  Free Braindumps | mcse braindumps