Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

read on remote machine

Name: Anonymous 2012-03-22 13:29

I want to run read using a local bash script on a remote machine. It works in a string but not as a file.


anon@HP-xw4600:~$ ssh anon@aids.net "read aids ; echo \$aids"
anon@aids.net's password:
aids!
aids!
anon@HP-xw4600:~$ ssh anon@aids.net 'bash -s' < aids.sh
anon@aids.net's password:
anon@HP-xw4600:~$ cat aids.sh
#! /bin/bash
read aids
echo \$aids
exit 0


Tell me why-eee!

Name: Anonymous 2012-03-23 13:13

PS, I'm a ~~girl~~ ^^ ~~~~~
(   .   Y   .   )

Name: Anonymous 2012-03-23 13:34

Name: Anonymous 2012-03-23 13:41


cat test.sh | ssh anon@aids.net


try test.sh with:

uname
ls -l


That works

Name: Anonymous 2012-03-23 13:43

And what happens when you remove 'bash -s'? Ie, you just type

ssh anon@aids.net < aids.sh

Name: Anonymous 2012-03-23 15:03


         __
        /\_\
       / / /_
      / /_/\ \
     _\ \/  \ \
    /\ \  /\ \_\
    \ \/  \ \/_/
     \  /\ \_\
      \/_/ / /
        / / /
        \/_/

Name: Anonymous 2012-03-23 15:07

>>5

anon@HP-xw4600:~$ ssh anon@aids.net < aids.sh
Pseudo-terminal will not be allocated because stdin is not a terminal.
anon@aids.net's password:
TERM environment variable not set.
anon@HP-xw4600:~$

blerg

Name: Anonymous 2012-03-23 17:06

>>6
That is anti-Semitic! Swastika was officially forbidden by the Jews for being a pagan symbol. You'll end in jail by using it. They only God allowed is the Jewish God.

Don't change these.
Name: Email:
Entire Thread Thread List