Announcement

Collapse
No announcement yet.

batch file to enter password in a command prompt

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • batch file to enter password in a command prompt

    followed steps given in below link to automatically backup from linux to windows 7 os.

    https://www.gefoo.org/rsync-your-bac...ndows-box.html

    created batch file as given in the link above & scheduled it with task scheduler.
    batch files are working fine for 4 linux machines backing up automatically without asking for password.
    but one linux machine is asking for password to enter than it proceeds showing "checking for incremnental file list"
    need a batch file which automatically enters password in to the command prompt when it is asking for password stops & waits for user input.

  • #2
    appears to have quite a lot of help: https://www.google.co.uk/search?q=wi...wDw&gws_rd=ssl
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      i am using keys for authorization
      but only on one linux machine it is not working
      when i run the batch file created using given link, it opens a command prompt asking for password of root user of that linux machine.
      how to enter that password automatically using a batch file ??
      a batch file runs this cwrsync batch file & passes password automatically in to command prompt.
      something like cwrsync.bat < password.txt

      Comment

      Working...
      X