LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-04-2011, 08:37 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Rep: Reputation: 51
Of interactive and non-interactive shells.


Hi:
I learn shells can be interactive or non-interactive, login or non-login. So, there are four classes in all. A (bash) shell script usually begins with

#!/bin/bash.

Question: this instance of bash that runs the script, is a non-interactive shell, am I right?

EDIT: Sorry. I found this:
Code:
Invoked non-interactively
.........................

When Bash is started non-interactively, to run a shell script, for
example, ...
     
      --Bash info pages, 6. Bash features, Bash startup files.
So, my question has been answered!

Last edited by stf92; 10-04-2011 at 08:46 PM.
 
Old 10-05-2011, 01:37 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Replying to take this off of the zero reply list. Glad to see you found a solution.
 
  


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
How are variables set for interactive shells? Josh000 Slackware 22 05-07-2010 01:19 AM
[SOLVED] Login and Interactive shells Josh000 Slackware 7 04-23-2010 10:02 AM
Interactive and non-interactive shells? Tim356 Linux - Newbie 7 11-05-2008 11:32 PM
BASH - How to open an interactive script from a non interactive script..... OldGaf Programming 4 06-29-2008 05:34 PM
interactive and non-interactive shell linuxjamil Programming 3 09-03-2006 09:42 PM


All times are GMT -5. The time now is 05:01 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration