User Profile

Collapse

Profile Sidebar

Collapse
bollweevil
bollweevil
Last Activity: Apr 19 '09, 12:35 PM
Joined: Apr 6 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to use "expect&qu ot; in a bash shell script?

    Hello Everyone,

    I wish I could edit my earlier post, but I can't. The earlier post asks how to make a bash script fill in the password when prompted. I found something that does exactly that: expect.

    Expect successfully fills in the password, BUT it breaks something else. Here is the new and improved code, in sync.sh:
    Code:
    #!/bin/bash
    ...
    See more | Go to post
    Last edited by Nepomuk; Apr 19 '09, 09:10 AM. Reason: Please use [code] tags

    Leave a comment:


  • Making a bash script only prompt for password once?

    Hello Everyone,

    I do Django web development on my Mac at home, and then I rsync the files with the Ubuntu web server. I want to write one single bash shell script that rsyncs the files and restarts Apache on the server.

    Here is the script I have so far, sync.sh:

    #!/bin/bash
    echo -n Password:
    read -s PW
    rsync --compress --times --perms --links --recursive --delete --include-from=incls.txt...
    See more | Go to post
No activity results to display
Show More
Working...