Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default bash script help


    okay, i want a script i want in bash to log into a telnet session and
    use a file temp.txt to get the user name

    something like:
    telnet -l temp.txt 192.168.1.125

    i 'm really new to bash and want to make an automated login
    program store usernames then eventually use encrypted passwords
    (gulp) to connect.

    --
    Posted via [url]http://dbforums.com[/url]
    another2 Guest

  2. Similar Questions and Discussions

    1. php+bash script
      hello, can anyone give me any hints about running proccesses in linux from php level. i'd like php script run bash-script witch search some data...
    2. Can not send mail from bash script
      Hi , I have created a little script that is running as daemon ( it is hard to say as daemon :)) ) . Then i try to send a mail and the mail is...
    3. problem using bash variables with command-line perl in bash script
      Hi! I have a problem with variables when using command-line perl in a bash script. The script should update a date (in 2003-10-10 form) if the...
    4. bash: can I cd from a script
      On Wed, Jul 23, 2003 at 11:17:58AM +0100, David selby wrote: That's right, you can't do that. 'export' exports the variable to subprocesses,...
    5. bash: esc space not recognised in cat script ?
      Hello again, more thorny bash escaped space problems ... in $_tox is a file called "this is a test" .... Below is the portion of code that is...
  3. #2

    Default Re: bash script help

    >>> another2 wrote:

    a> okay, i want a script i want in bash to log into a telnet session and
    a> use a file temp.txt to get the user name

    a> something like:
    a> telnet -l temp.txt 192.168.1.125

    telnet -l `cat temp.txt` 192.168.1.125
    (assuming that temp.txt contains only one word)

    a> i 'm really new to bash and want to make an automated login
    a> program store usernames then eventually use encrypted passwords
    a> (gulp) to connect.


    -netch-
    Valentin Nechayev Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139