From b318800b323ee0d59e3e5e198200f22c994c1396 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 25 Feb 2020 09:56:38 +0000 Subject: [PATCH 1/2] make created file executable for all users --- src/newbash | 2 +- src/newsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/newbash b/src/newbash index ca36360..6b8568a 100755 --- a/src/newbash +++ b/src/newbash @@ -11,4 +11,4 @@ echo "#!/bin/bash" > "$1" echo "" >> "$1" echo "$2" >> "$1" -chmod u+x "$1" +chmod +x "$1" diff --git a/src/newsh b/src/newsh index e2312e1..2231967 100755 --- a/src/newsh +++ b/src/newsh @@ -11,4 +11,4 @@ echo "#!/bin/sh" > "$1" echo "" >> "$1" echo "$2" >> "$1" -chmod u+x "$1" +chmod +x "$1" From cc594c635c46d04465d7ebbafeb539c14b3a02cb Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 25 Feb 2020 10:05:59 +0000 Subject: [PATCH 2/2] add pam-say script --- README.md | 3 ++- src/pam-say | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 src/pam-say diff --git a/README.md b/README.md index 2728f62..b8e2123 100644 --- a/README.md +++ b/README.md @@ -12,5 +12,6 @@ Useful utility scripts. |---|---| |newsh ["command"]|Create executable `sh` script. Optionally add `command`.| |newbash ["command"]|Create executable `bash` script. Optionally add `command`.| -|date-show ["command"]|Show a time and date window.| +|date-show|Show a time and date window.| +|pam-say |Tells Pamela to say something| diff --git a/src/pam-say b/src/pam-say new file mode 100755 index 0000000..3848265 --- /dev/null +++ b/src/pam-say @@ -0,0 +1,6 @@ +#!/bin/sh + +_command="echo ""$*"" | festival --tts" +ssh pamela "$_command" + +