hello everyone,
I am fuzzy about how to set a command in a script to be run only when the shell is running within an X session.
basically, in ~/.bashrc I set my keyboard maps as
setxkbmap -layout 'us,gr' -variant 'altgr-intl,extended' -option
grp:alt_shift_toggle
If I am connecting through putty , or otherwise, and i just open a command prompt window, I DONT want this command to run.
If on the
hello everyone,
I am fuzzy about how to set a command in a script to be run only when the shell is running within an X session.
basically, in ~/.bashrc I set my keyboard maps as
setxkbmap -layout 'us,gr' -variant 'altgr-intl,extended' -option
grp:alt_shift_toggle
If I am connecting through putty , or otherwise, and i just open a command prompt window, I DONT want this command to run.
If on the
The bash man page says:
"When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, "
I can see that bash.bashrc is executed because I put echo in it, but .bashrc is not.
I have left a script running on a remote machine from when I was locally working at it. I can connect over SSH to the machine as the same user and see the script running in ps.
I'm using the linux 'script' command http://www.linuxcommand.org/man_pages/script1.html to log all input and output in an interactive bash script.
At the moment I have to call the script command, then run my bash script, then exit.
I want to run the script and exit commands from within the actual bash script itself.
I encountered a strange issue this morning. My $PATH environment variable is screwed up by a command
export PATH=./releases/bin:$PATH
It is totally okay to run this under a existing shell, the issue is I put it in the shell startup shell script .profile.
I encountered a strange issue this morning. My $PATH environment variable is screwed up by a command
export PATH=./releases/bin:$PATH
It is totally okay to run this under a existing shell, the issue is I put it in the shell startup shell script .profile.
Hello guys,I am totally lost. I cannot figure out how to set the us altgr-intl with umlaut support but with nodeadkeys variant together with support for alt_shift toggle switch to have other layouts, too.What I tried so far was "setxkbmap -layout "us,pl" -variant altgr-intl,nodeadkeys -option grp:alt_shift_toggle".
I have a script on a server-A
Script-A
#!/bin/bash -l
echo "script-A.sh" | change-environment.sh
When I ssh onto server-A and execute it, it works fine.
However, when I
ssh user@server-A ./script-A.sh
Script-A executes, but throws an undefined variable error in change-environment.sh.