Timeline for Create a temporary script with sed (or any other utility) for immediate script creation to run in-place
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 15, 2016 at 18:45 | comment | added | user149572 | Would appreciate your take on this, gogoud. | |
| Nov 10, 2016 at 23:37 | comment | added | user149572 | I now offer bounty. Please note that if I run echo ', and then '|sudo tee ses.sh >/dev/null && sudo chmod +x ses.sh && sudo ./ses.sh --- I don't get any text-editor like program to paste the script in run it in, and the regular bash re appears... Also note that if I just teyp echo ', then the script, and then '|sudo tee ses.sh >/dev/null && sudo chmod +x ses.sh && sudo ./ses.sh --- The script still won't run. | |
| Nov 3, 2016 at 17:50 | comment | added | user149572 | It ran without it... I must note... | |
| Nov 3, 2016 at 14:52 | comment | added | gogoud | @Benia you need to add the single quote at the end of the script too so that the entire text between the two single quotes is treated as an argument to the -c parameter | |
| Nov 3, 2016 at 8:53 | comment | added | user149572 | According to your answer I type in prompt: "/bin/bash -c ' " (without double quote marks) and then just copy and paste my script... I didn't add a single quote mark in the end of the script (I use only one single quote mark as in /bin/bash -c ')... Do you think it's okay? | |
| Nov 1, 2016 at 18:21 | history | edited | gogoud | CC BY-SA 3.0 |
added 1 character in body
|
| Nov 1, 2016 at 18:16 | history | edited | gogoud | CC BY-SA 3.0 |
deleted 20 characters in body
|
| Nov 1, 2016 at 18:10 | history | answered | gogoud | CC BY-SA 3.0 |