Tuesday, October 8, 2013

Setting environment variables when running command via SSH in Ubuntu

There are less environment variables available when running command directly by SSH then interactively. This is because for some reason, Ubuntu does a little less for non-interactive shells and stops executing .bashrc after this line:

[ -z "$PS1" ] && return

So if you wish to run anything, it should be done before, like:

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_21/
[ -z "$PS1" ] && return

1 comment:

  1. Interestingly, joker cards can be utilized in sort of|this thecasinosource.com type of|this sort of} sport since they don’t count in others, like Blackjack. In addition, video poker is straightforward to play, even for newbies, end result of|as a outcome of} our beginner’s information will unwrap all the stipulations. At superior levels, where you’ll be after we’re done fine-tuning you, you’ll ravish within the euphoria of playing in} VP. The earliest model of Draw Poker required minimal of|no much less than} two pairs for a winning hand.

    ReplyDelete