Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- process_that_needs_credentials & # start in the background
- # the script will continue immediately
- sleep 2
- read -rp "username: " username
- read -rp "password: " password
- (
- echo "$username"
- echo "$password"
- ) > credentials.txt
Add Comment
Please, Sign In to add comment