LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 07:37 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
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 07:46 PM.
 
Old 10-05-2011, 12:37 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:22 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
Open Source Consulting | Domain Registration