Find the answer to your Linux question:
Results 1 to 4 of 4
I want to automate a s/w execution with a shell script. But tht s/w asks for various user i/ps so how can i give these values from shell script?...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    17

    Shell script to automate s/w execution

    I want to automate a s/w execution with a shell script.
    But tht s/w asks for various user i/ps so how can i give these values from shell script?

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Lightbulb

    using Here Documents would solve your issue.
    HTH
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Posts
    17
    hi,

    But it doesn't work with other commands like scp or for installing any s/w.

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    I'm not wrong, for things like ssh/scp you can't use here doc, but creating password less login should work.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

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