Re: User's bin path not recognised in login script

2016-03-24 Thread Russell Gadd
On 24/03/16 00:30, David Wright wrote: ... I don't know what you mean by "login" script because you haven't yet told us (I believe) what your machine is configured to do when you boot it up. If you've installed some sort of Desktop Environment, then the DE

Re: User's bin path not recognised in login script

2016-03-23 Thread The Wanderer
On 2016-03-23 at 20:23, David Wright wrote: > On Tue 22 Mar 2016 at 22:35:32 (+), Russell Gadd wrote: > >> On 22/03/16 19:00, The Wanderer wrote: >>> Also, at least on my system, ~/.bashrc is invoked only by being >>> sourced from ~/.profile or ~/.bash_profile. Unless your system is >>> conf

Re: User's bin path not recognised in login script

2016-03-23 Thread David Wright
you don't have to run bash --login because it's done for you by virtue of having /bin/bash in your line of /etc/passwd. However, that presupposes you're logging in to a VC and then running X with the startx command. It seems likely that you're not. > Maybe what this is tellin

Re: User's bin path not recognised in login script

2016-03-22 Thread The Wanderer
hich would explain what you're seeing. I don't think that's very likely, for multiple reasons, but it's easy enough to rule out. > Maybe what this is telling me is that I should run another script > from my "login" script by 'bash --login real_login_scriptf

Re: User's bin path not recognised in login script

2016-03-22 Thread Lisi Reisz
On Tuesday 22 March 2016 21:42:11 seeker5...@comcast.net wrote: > See if this gets through, my WiFi got flaky, which seems like it cause some > issue with imap between Thunderbird and Comcast. Thunderbird claims the > message was sent twice, but I never got a copy in my inbox. I got two earlier co

Re: User's bin path not recognised in login script

2016-03-22 Thread Russell Gadd
On 22/03/16 20:20, Seeker wrote: ... Create '~/.xprofile' and put your export commands and extra non-desktop specific stuff you always want to run there. https://wiki.archlinux.org/index.php/xprofile Later, Seeker Thanks. I might try this later.

Re: User's bin path not recognised in login script

2016-03-22 Thread Russell Gadd
is a bit beyond my experience. I've never tried bash --login before as I haven't previously come across it. Maybe what this is telling me is that I should run another script from my "login" script by 'bash --login real_login_scriptfile' in order to get these profiles to run first?

Re: User's bin path not recognised in login script

2016-03-22 Thread seeker5528
See if this gets through, my WiFi got flaky, which seems like it cause some issue with imap between Thunderbird and Comcast. Thunderbird claims the message was sent twice, but I never got a copy in my inbox. Here we go again, from the webmail this time. ;) On 3/22/2016 11:20 AM, Russell Gad

Re: User's bin path not recognised in login script

2016-03-22 Thread Seeker
On 3/22/2016 1:11 PM, Michael Fothergill wrote: On 22 March 2016 at 19:59, Dan Ritter > wrote: On Tue, Mar 22, 2016 at 05:13:43PM +, Michael Fothergill wrote: > On 22 March 2016 at 16:24, Andrew McGlashan < > andrew.mcglas...@affinityvision.com.a

Re: User's bin path not recognised in login script

2016-03-22 Thread Seeker
On 3/22/2016 11:20 AM, Russell Gadd wrote: Thanks for the export point which I have now used. However it doesn't solve the problem. I experimented by adding the following line into ~/.bash_profile, ~/.profile and ~/.bashrc: echo "This is " &>>/tmp/out.txt Neither of the profile files trigger

Re: User's bin path not recognised in login script

2016-03-22 Thread Seeker
On 3/22/2016 11:20 AM, Russell Gadd wrote: Thanks for the export point which I have now used. However it doesn't solve the problem. I experimented by adding the following line into ~/.bash_profile, ~/.profile and ~/.bashrc: echo "This is " &>>/tmp/out.txt Neither of the profile files tri

Re: User's bin path not recognised in login script

2016-03-22 Thread The Wanderer
eck the >> order in which they run -- e.g. verify that .bash_profile runs >> before your bash login script, so that PATH includes $HOME/bin. > > Thanks for the export point which I have now used. However it > doesn't solve the problem. > > I experimented by addin

Re: User's bin path not recognised in login script

2016-03-22 Thread Russell Gadd
On 22/03/16 02:40, David Christensen wrote: ... Did you remember the 'export' in .profile? export PATH=$PATH:$HOME/bin It might help to add echo's in the various scripts to check the order in which they run -- e.g. verify that .bash_profile runs before your bash login

Re: User's bin path not recognised in login script

2016-03-21 Thread David Christensen
On 03/21/2016 11:03 AM, Russell Gadd wrote: The bash login script I have added in to my startup programs does not recognise /home/user/bin as part of the path, whereas it used to when I was running Linux Mint (I'm a recent refugee). I've got PATH="$HOME/bin:$PATH" in ~

Re: User's bin path not recognised in login script

2016-03-21 Thread Sven Arvidsson
On Mon, 2016-03-21 at 18:03 +, Russell Gadd wrote: > The bash login script I have added in to my startup programs does > not  > recognise /home/user/bin as part of the path, whereas it used to when > I  > was running Linux Mint (I'm a recent refugee). I've got  &g

User's bin path not recognised in login script

2016-03-21 Thread Russell Gadd
The bash login script I have added in to my startup programs does not recognise /home/user/bin as part of the path, whereas it used to when I was running Linux Mint (I'm a recent refugee). I've got PATH="$HOME/bin:$PATH" in ~/.bashrc and also in ~/.profile, together wi

Re: remote login script

2005-11-23 Thread Yoram Hekma
Amish Rughoonundon wrote: Hi, I would like to do something only when i remote login to my debian box. I would like to run export DISPLAY=[client ip]:0.0 but i don't want linux to do this if I login on the box itself. Thanks Amish I take it you log in using ssh? If so, try ssh -X or ssh -Y.

Re: remote login script

2005-11-23 Thread marzubus
What about ssh -X [EMAIL PROTECTED] this enables x11 forwarding for session Kegan Holtzhausen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

remote login script

2005-11-22 Thread Amish Rughoonundon
Hi, I would like to do something only when i remote login to my debian box. I would like to run export DISPLAY=[client ip]:0.0 but i don't want linux to do this if I login on the box itself. Thanks Amish -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble?

Re: login script & xterm

2004-11-26 Thread ms419
On Nov 17, 2004, at 5:10 AM, Andrea Vettorello wrote: On Tue, 16 Nov 2004 23:12:46 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Where should I put commands to be executed when I login, & when I open an xterm, but not when a shell is run on other occasions? I want some commands executed when

Re: login script & xterm

2004-11-17 Thread Andrea Vettorello
On Tue, 16 Nov 2004 23:12:46 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Where should I put commands to be executed when I login, & when I open > an xterm, but not when a shell is run on other occasions? > > I want some commands executed when I login, but not when a shell is > otherwise

Re: login script & xterm

2004-11-17 Thread Thomas Dickey
[EMAIL PROTECTED] wrote: > Where should I put commands to be executed when I login, & when I open > an xterm, but not when a shell is run on other occasions? > I want some commands executed when I login, but not when a shell is > otherwise run, so I put them in my ~/.login, vs. my ~/.bashrc. >

login script & xterm

2004-11-16 Thread ms419
Where should I put commands to be executed when I login, & when I open an xterm, but not when a shell is run on other occasions? I want some commands executed when I login, but not when a shell is otherwise run, so I put them in my ~/.login, vs. my ~/.bashrc. Unfortunately, they aren't executed

Re: bash login script problems...

2002-06-19 Thread Colin Watson
On Wed, Jun 19, 2002 at 04:50:14PM +0200, Ivo Wever wrote: > Derrick 'dman' Hudson wrote: > >When you run a script in a subshell, it can modify the environment of > >that subshell, then that subshell terminates (when the script is done) > >and you get the prompt from your original shell again. Unl

Re: bash login script problems...

2002-06-19 Thread Ivo Wever
Derrick 'dman' Hudson wrote: Neal Lippman wrote: | I am having two problems with bash login scripts, which I cannot seem to sort | out. Probably something simple, but I'm missing it. | | 1. First, here is a few lines from my .bash_profile. These lines were | commented out by default, and I hav

Re: bash login script problems...

2002-06-15 Thread Neal Lippman
> When you run a script in a subshell, it can modify the environment of > that subshell, then that subshell terminates (when the script is done) > and you get the prompt from your original shell again. Unlike MS-DOS, > scripts normally run in subshells and can't wreak havoc on your > environment.

Re: bash login script problems...

2002-06-15 Thread Derrick 'dman' Hudson
On Sat, Jun 15, 2002 at 10:16:37PM -0400, Neal Lippman wrote: | I am having two problems with bash login scripts, which I cannot seem to sort | out. Probably something simple, but I'm missing it. | | 1. First, here is a few lines from my .bash_profile. These lines were | commented out by default

bash login script problems...

2002-06-15 Thread Neal Lippman
I am having two problems with bash login scripts, which I cannot seem to sort out. Probably something simple, but I'm missing it. 1. First, here is a few lines from my .bash_profile. These lines were commented out by default, and I have uncommented them. # set PATH so it includes user's privat

Re: login script

1999-11-20 Thread Eric G . Miller
On Sat, Nov 20, 1999 at 02:05:56PM -0500, Antonio Rodriguez wrote: > after fixing my keyboard settings with xkeycaps, it told me to modify my > login script to contain a line like > xmodemap~ ... etc > Where is my login script? I already learned to vi a text file (from > window

login script

1999-11-20 Thread Antonio Rodriguez
after fixing my keyboard settings with xkeycaps, it told me to modify my login script to contain a line like xmodemap~ ... etc Where is my login script? I already learned to vi a text file (from windows to unix-linux there is a lot to learn!!!), but first I need to find the script. Please help

Re: Login script!

1999-08-07 Thread Paul Miller
Rudy Broersma wrote: > > Hi, > > Is it possible that Linux executes a script file when a user logs on? > So for example, if user RUDY logs on, it executes the /home/rudy/script > file, and when ROOT logs on, it executes the /root/script file! > > Could anybody please give me some examples? > Yu

Re: Login script!

1999-08-07 Thread Bob Nielsen
If you are using the bash shell, the file ~/.bash_profile is read when logging on. Bob On Sat, Aug 07, 1999 at 08:44:30PM +0200, Rudy Broersma wrote: > Hi, > > Is it possible that Linux executes a script file when a user logs on? > So for example, if user RUDY logs on, it executes the /home/ru

Re: Login script!

1999-08-07 Thread Brian Servis
*- On 7 Aug, Rudy Broersma wrote about "Login script!" > Hi, > > Is it possible that Linux executes a script file when a user logs on? > So for example, if user RUDY logs on, it executes the /home/rudy/script > file, and when ROOT logs on, it executes the /root/script

Re: Login script!

1999-08-07 Thread Michael Stenner
On Sat, Aug 07, 1999 at 08:44:30PM +0200, Rudy Broersma wrote: > Is it possible that Linux executes a script file when a user logs on? > So for example, if user RUDY logs on, it executes the /home/rudy/script > file, and when ROOT logs on, it executes the /root/script file! your shell takes care o

Re: Login script!

1999-08-07 Thread Oliver Elphick
"Rudy Broersma" wrote: >Hi, > >Is it possible that Linux executes a script file when a user logs on? >So for example, if user RUDY logs on, it executes the /home/rudy/script >file, and when ROOT logs on, it executes the /root/script file! > >Could anybody please give me some examples?

Login script!

1999-08-07 Thread Rudy Broersma
Hi, Is it possible that Linux executes a script file when a user logs on? So for example, if user RUDY logs on, it executes the /home/rudy/script file, and when ROOT logs on, it executes the /root/script file! Could anybody please give me some examples? Thanks in advance, Rudy