Re: Question about ssh no login
- From: Bit Twister <BitTwister@xxxxxxxxxxxxxxxx>
- Date: 28 Apr 2007 08:03:49 GMT
On 28 Apr 2007 00:48:22 -0700, sk8terg1rl wrote:
sk8terg1rl@home:~/.ssh> cat test
ssh sk8terg1rl@xxxxxxxxxx << EOF
ls
exit
EOF
By the way, exactly what is "<< EOF" for? The above script still works
if I change either EOF to anything else (even non-matching) but stops
working if I remove the first EOF
That is a "here document" indicator and they need to match.
http://www.tldp.org/LDP/abs/html/here-docs.html#HEREDOCREF
For extra points, read
http://www.tldp.org/LDP/abs/html/index.html
.
- References:
- Re: Question about ssh no login
- From: Robert M. Riches Jr.
- Re: Question about ssh no login
- Prev by Date: Globe7 has Launched new VOIP! Phone for linux users
- Next by Date: Re: X doesn't start on boot, can't tell X to start
- Previous by thread: Re: Question about ssh no login
- Next by thread: Re: Question about ssh no login
- Index(es):
Relevant Pages
|