Slackware :: How Are Variables Set For Interactive Shells

May 5, 2010

I am trying to figure out where variables are set for interactive shells? In particular, I am trying to have LS_OPTIONS inherited by interactive shells as it is by login shells. I understand LS_OPTIONS is set in /etc/profile, and this may not be processed by interactive shells but by login shells. However, I also note other variables such as PATH and INPUTRC are set correctly in interactive shells, and these are also set in /etc/profile from what I understand. So how is it determined which variables are inherited by all shells, and which are just for login shells?

View 16 Replies


Slackware :: Difference Between Login And Interactive Shells

Apr 22, 2010

I am having trouble distinguishing between login and interactive shells as they relate to terminals. I understand that a login shell is what is started when you login, and an interactive shell is used by scripts and such. I also get that terminals will use an interactive shell by default. What I don't understand is why interactive shells have no prompt by default. Is their a way to get an interactive shell to inherit the normal PS1 prompt? Is it considered bad to do this? Would it be better to have terminals start login shells, and if so why or why not?

View 7 Replies View Related

General :: Which Environment Variables Not Inherited By Bash Shells

Jan 2, 2011

I am using Linux some years, but since I built a LFS, I feel noobish again. Now with the help of BLFS I am setting up my environment and somewhere I incidentally read, that not every variable is inherited by a child Bash shell. As for the $PS1 and $PS2 variables I know, that they are not inherited by non-interactive Bash shells (and there is no reason why they should in my opinion). Well, as for my first thread I hope the title gives enough information on what I want to know. But anyways: Which environment variables are not inherited by Bash shells?

View 1 Replies View Related

General :: Bash Read All Environmental Variables Set By Other Shells?

Jul 23, 2010

For example, if I'm in csh, I can use `setenv VARNAME varVALUE` while I can use export in Bash. Given that the environmental variables are created, can BASH read env vars from csh and vice versa?

View 2 Replies View Related

Slackware :: Read $PS1 On Non-login Shells?

Jun 6, 2010

Let's say that I have a customized Bash prompt stored as a PS1 variable. My variable gets read every time I invoke a login shell, i.e., when logging in in one of the standard virtual terminal or by invoking xterm with the -ls parameter.

However, when I just invoke the terminal without specifying that it is a login shell, I just get something like: bash-XXX$ as a prompt.

where should I place my PS1 variable so that it could get read even on non-login shells?

View 7 Replies View Related

Slackware :: SU Command - Environment Variables Missing

Jun 30, 2010

I've just noticed something odd with 'su'. When you run 'su' with both the '-' (aka -l) and -c command options like this: "su -l user -c command" it doesn't appear to run /etc/profile before running the specified command even though the -l option is specified. If you run "su -l user" without the -c it does run /etc/profile.

Now, on other linux such as fedora it works as expected and runs both /etc/profile followed by the command specified on the '-c'. I'm fairly sure it used to work this way on Slackware (and every other UNIX I've ever used) too. "su -l root -c env" is a good way to see, as you'll find most the environment variables are missing.

View 6 Replies View Related

Slackware :: Standard Location For Defining Environment Variables

Jan 4, 2011

I'm setting up Tomcat right now, and I've been directed to create a tomcat_home (catalina_home as of writing) environment variable.

Where is the default location for env variables in Slackware? My current inclination is to create a new script /etc/profile.d/

View 1 Replies View Related

Ubuntu :: Bash Script With Variables And Editing Variables

Apr 6, 2011

mkvmerge -o <filename without extension>_TV.mkv -S <filename> && mkvextract tracks <filename> 3:<filename without extension>.*** && perl /home/brian/Desktop/ <filename without extension>.*** && rm <filename without extension>.***

Doing these commands for multiple command line file inputs is the goal. So I can just type ./ *.mkv in my terminal.This is what I have so far, but it doesn't work whatsoever.

View 2 Replies View Related

Programming :: How To Turn Non-interactive Shell Into Interactive Shell?

Feb 4, 2011

I have a situation where I am in a non-interactive shell. I have tried from within my non-interative shell to spawn an interactive shell but my output still does not goto me. Isn't there a way I can somehow go into /proc or somwhere and make the output my /dev/tty1? Or some way else to remedy this?The situation arises because I drop from my restricted shell environment (a sort of CLI interface), into the actual Linux shell. I cannot change the code of the CLI environment I am just faced with being in the linux shell environment and its non-interactive. Its very annoying to have to put > /dev/tty1 after every command I type.

Not to mention it seems damn near impossible to get pagers like more and less to work properly when your in a non-interactive shell.

View 2 Replies View Related

General :: What Is The /bin/ksh Shells

Jun 27, 2010

what is the /bin/ksh shells

View 1 Replies View Related

Ubuntu :: Shells - Run IRC Remotely With Screen

Mar 24, 2011

Does anyone know of any free services offering debian or ubuntu shells? I want to run IRC remotely with screen, but free services only seem to offer unix shells. I'm not really bothered by that but I feel more comfortable on ubuntu.

View 2 Replies View Related

General :: Difference Between CLI Terminal Shells?

Jan 16, 2010

Is there a difference between the shells such as sh, csh, ksh and bash if so what is it or is it simply a matter of preference?

View 2 Replies View Related

General :: Calling URL From Shells Script

Jun 13, 2011

I have to call URL from shell script. E.g.: How can I call URL from the shell script.

View 6 Replies View Related

General :: Differences Between Shells - Which One Is Better To Run Under Scripts

Nov 16, 2010

What are the differences between the shells in Linux (eg. bash,bourne,korn,C etc) and which one is it better to run scripts under?

View 4 Replies View Related

General :: Command To List Number Of Shells

Feb 15, 2010

How can I know how many shells my system support (Is there any specific command)?

View 9 Replies View Related

General :: Topics For Project - Creating New Shells

Feb 24, 2010

I am college student and for this semester. I am planning to do a project in Linux. Also I have a plan 2 create a new shell in linux.

View 4 Replies View Related

General :: Interacting With Running Shells (Fedora 15)

Jun 21, 2011

I was able to set up SSH and log into my linux machine and I want to interact with shells already running on the desktop. I can locate and view the processes but I'm wondering if its possible to "get into" the program I already have running via SSH and enter commands.

View 4 Replies View Related

General :: Way To Have Multiple X Severs Running In Different Shells?

May 24, 2010

Is there any way to have x server on multiple shells at a time?(eg. Sally is logged in on shell 6 with her own desktop cube while Rob is logged in on shell 7 with his own desktop cube, etc)

View 2 Replies View Related

Programming :: Different Initialized Environments For Shells Vs Emacs?

Aug 7, 2010

I'm finalizing the the dual-boot addition that I recently completed. I've added lubuntu to the LT3114u Netbook that I use. That's done, now I'm migrating my user environment back from the Cygwin one that I've been using on Windoze, as of late. One of features that's been useful has been the global environment management possible with the windoze UI functions. As I coded my emacs environment while 'over there' (windoze side), I included a check for the lisp library repository path environment variable EMACSLOADPATH. It is globally available when one logs in, and does not get set in any user scripts, or dot files any to do with CYGWIN or emacs.

While it has been easy enough to set EMACSLOADPATH for the login shell environment, via .bashrc, .profile, and system wide via /etc/profile, I have not been able to have '/usr/bin/emacs23' have EMACSLOADPATH set when invoked via the LXDE UI. Thus, it would appear that emacs is not being initialized with the same environment that any of the shells are (old school?). Thus, what is it that one must update in order to have GNU emacs initialized with the same environment variables as bash? Or, put another way, why aren't the environment variable defined in /etc/profile, ~/.bashrc and/or ~/.profile ending up in the initialized environment upon invocation of emacs23 on lubuntu Linux?


View 3 Replies View Related

General :: Configure KDE Konsole To Open New Shells On A Different Machine?

Mar 11, 2010

How to configure the KDE Konsole that when I press on a "new tab" button, the new shell would open on another machine (thorugh ssh), and not on the current one?

View 1 Replies View Related

Red Hat / Fedora :: Changing Shells - Illegal Variable Name Error

Jun 8, 2011

I changed shells for a user from bash to tcsh using this command... chsh user -s /bin/tcsh but when logging on via ssh under that user I get a "Illegal variable name" error. I type, echo $shell and it says, /bin/tcsh. I am curious what that Illegal variable name could be.

View 3 Replies View Related

Programming :: Difficulties Running Commands In Shells From Perl?

Jun 23, 2010

I'm getting something(s) wrong, trying to run commands (both simple and piped) in shells from Perl programs. The ultimate objective is to set up "copy X selection to clipboard" from urxvt but apparently simple debugging statements are not working.Here's the Perl, taken from here and modified to use xclip instead of xsel and with debugging added, shown in green

#! /usr/bin/perl
sub on_sel_grab {


View 5 Replies View Related

Ubuntu :: Retrieve Panels Firefox Shells On Dual Boot

May 13, 2011

i am running ubuntu 10.10 on an aspire 5734z laptop, as 11.04 has a backlight issue, and i am dual booting with win7, which i am currently on. i have/had KDE, xfce, desktop edition ubuntu, and gnome 3 sessions installed. i had noticed recently that startup is taking longer than usual, 2x the time as win7, ubuntu and windows are both 32 bit bytheway. after grub, it would be a black screen with only '_' displayed, followed by a screen that says something about sql stuff. i figured this could be the reason my startups were long, and as i dont use sql (that i know of) i decided to just remove it and hope that would fix the problem... yeah, im a linux-noob. i went to software center, searched for it and removed the first entry, and it said it would remove some other stuff, mostly sql named things, plus shotwell and evolution, which i also dont use. after it went thru applying changes, i selected the next one on the list for removal, and the software center froze.

i logged out of the gnome3 part, and logged into ubuntu desktop edition. i then only saw a wallpaper, both of the default panels were gone. at this point i decided a reset was in order. i logged back into the default ubuntu desktop edition part, and the panels were still missing. i figured i would login to gnome3 or kde and see if i could get something figured out from there, but they are missing from the drop down box. the only ones remaining are ubuntu (desktop, recovery and safemode) and xcfe. i logged into xcfe only to find out firefox is gone. i am not familiar with xcfe, i only added it to maybe use sometime when i need to extend battery time, and with no click here to get online - icon in the panel, i figured my best bet was to return to windows and plead for help, before i tried to 'fix' something else, and made an even bigger mess. i dont know what i couldve done to basically render my ubuntu useless to me, to get rid of my panels, firefox, and i dont even know what else.. but the only thing i did at all was to remove the top sql entry, which was something like sql3_lib or something like that.

View 6 Replies View Related

Security :: Setting Limits For Authenticated User - Controlling Shells

Apr 16, 2010

I want to limit what a authenticated user can do on my Linux server. I've set the default shell to rbash, but I know a knowledgeable user can switch shells. Can I use file permissions to deny execution rights to /bin/bash to anyone who is not in a particular group? And if that works, how do I find out what other shells are installed on my server (Ubuntu 9.10)?

View 7 Replies View Related

Software :: Failed To Check Remot Comnd Executin Using Shells /usr/bin/ssh And /usr/bin/rsh?

Apr 5, 2009

I am configuring RAC 10gR2 over linux 4EL (two node over san) , as for as configuration is concerned every thing went fine ,every thing is passed in cvu utility , the only problem is that when i start setup it through following errors, SSh rpm are intalled on both machines , as i established eser equilence between oracle user ob both machine it is working , BUT i dont know y the follwing erorr apear , Could u tell me how to resolve this error

here it is ....

[oracle@rac1-pub orainstall]$ ./clusterware/runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-04-03_06-23-31AM.

View 2 Replies View Related

Software :: GNU Screen Doesn't Start Shells As A Login Shell?

Mar 22, 2010

I want to have an ls' output colorization in gnu screen. Colorization in my system (Slackware 13) is realized by aliasing of ls in /etc/profile.d/

$ alias ls
alias ls='/bin/ls $LS_OPTIONS'
where $LS_OPTIONS is
$ echo $LS_OPTIONS
-F -T 0 --color=auto

But in screen this alias isn't defined. It seems like /etc/profile script isn't executed at shell starting in screen. I think it happens because screen starts a shell not as a login shell. I tried to correct it by adding to ~/.screenrc or to /etc/screenrc. The problem is the same. By the way when I start screen as a root I haven't this problem. What's wrong?

View 3 Replies View Related

General :: Non-interactive Way To Set A Password?

Aug 11, 2010

Is there a non-interactive way to change a user's passwd short of using expect? I'm using Debian.If not, then I guess I need to get this expect script working:

#!/usr/local/bin/expect -f
set username $env(UNAME)


View 2 Replies View Related

Fedora Installation :: Get Into Interactive Start Up?

Apr 6, 2009

Posting from Splashtop as i can't get past keytouch-apid in the boot process,Yeah me bad so i would like to disable it so i can complete the process.Using the interactive startup seemed the way to go but how does one get there before udev starts up?Or is there something else i could try.

View 2 Replies View Related

Fedora :: Interactive Startup Not Working?

Feb 20, 2011

My problem is: One of my services has failed to start. All I need is just go into interactive startup and ignore that service. The system is encrypted as LUKS. I press 'i' before and after entering the phrase (it asked me "Password for filesystem"). But interactive startup seems not working. All the services go to start without my permission. I mean there is no question such as "Start XXX [Y/N]?"

In the past I used CentOS for some months, and interactive startup (by pressing 'i' on boot time) was fine. I could allow or not what service should be started.

I have googled and found these:


View 2 Replies View Related

Ubuntu :: Run Interactive Script After Login

Jan 26, 2011

I need to run a script that prompts the user for some input and takes action based on that input. It must run at the end of the login process, after the desktop is displayed.I tried putting it in ~/.bash_login, but it didn't run. Do I need to tell /etc/profile to run ~/.bash_login? I thought it looked for it & ran it if it was found.

A related question would be - Can I make it so the terminal session that is running the script be the only thing that the user can do? In other words, they can't click on anything on the desktop or in the panels and have it run until after they respond to the input request.

View 1 Replies View Related

Copyrights 2005-15, All rights reserved