-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
643a2ed
commit a78277d
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/expect -f | ||
|
||
set timeout 1 | ||
|
||
spawn ./foo.sh | ||
|
||
expect "Directory to backup?\r" | ||
send -- "/home/dave/Documents\r" | ||
|
||
expect "Backup location?\r" | ||
send -- "/media/dave/external/backup\r" | ||
|
||
expect eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
echo "Directory to backup?" | ||
read source_directory | ||
|
||
echo "Backup location?" | ||
read target_directory | ||
|
||
echo | ||
echo "Target directory:" $target_directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/expect | ||
|
||
# docker run \ | ||
# --interactive \ | ||
# --tty \ | ||
# --rm \ | ||
# --volume "$pure_project_dir/conf.d/:/nemo/.config/fish/conf.d/" \ | ||
# --volume "$pure_project_dir/functions/:/nemo/.config/fish/functions/" \ | ||
# purefish/docker-fish:3.5.1 | ||
# spawn docker run -it --rm purefish/docker-fish:3.5.1 | ||
set timeout 1 | ||
|
||
spawn fish --command "echo \$pure_version" | ||
# send "echo \$pure_version\r" | ||
expect -re "4.*" | ||
expect eof |