How can I avoid running .bashrc?
- From: phil-news-nospam@xxxxxxxx
- Date: 9 Mar 2008 03:17:39 GMT
How can I avoid running .bashrc when I specify a command to be executed
*AND* use the -t option because the command needs tty semantics?
What I'd really prefer is to directly execute the command WITHOUT running
it through the shell at all. I know that would mean either something else
has to parse the command string into tokens, or the command has to be
provided already broken into tokens. But I guess that means extending
the SSH protocol so it can transfer the command as separated tokens instead
of a single string.
But for some reason, using -t triggers running the shell in interactive
mode as opposed to command mode. Is ssh/sshd doing that or is the shell
detecting this and making an assumption?
If there was at least some environment variable set going into the shell
that would indicate a command is being provided on the command line, then
I could at least code the .bashrc to skip everything if that environment
variable is set. But I did some tests and see nothing distinctive between
these cases.
--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2008-03-08-2016@xxxxxxxx |
|------------------------------------/-------------------------------------|
.
- Follow-Ups:
- Re: How can I avoid running .bashrc?
- From: Unruh
- Re: How can I avoid running .bashrc?
- Prev by Date: Re: scripts without passwords
- Next by Date: Re: Where is ssh-rsa public key?
- Previous by thread: scripts without passwords
- Next by thread: Re: How can I avoid running .bashrc?
- Index(es):
Relevant Pages
|
|