Timeline for Trap on DEBUG signal for the dash shell?
Current License: CC BY-SA 3.0
Post Revisions
29 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 8, 2021 at 1:53 | answer | added | Martin Kealey | timeline score: 0 | |
| Oct 24, 2020 at 7:33 | comment | added | MohammadReza moeini | why you are not using self bash debugging feature , for debugging refre to #!/bin/bash -xv | |
| May 16, 2018 at 2:49 | history | edited | karel |
changed a tag
|
|
| Nov 15, 2017 at 17:39 | comment | added | hackerb9 |
@cosimo: Are you sure you are asking the right question? What exactly are you trying to do? Log all commands run by an interactive user? There may be a simpler way to do what you're trying, such as the script command, lastcomm, or auditd.
|
|
| S Nov 15, 2017 at 16:45 | history | bounty ended | CommunityBot | ||
| S Nov 15, 2017 at 16:45 | history | notice removed | CommunityBot | ||
| S Nov 7, 2017 at 15:26 | history | bounty started | kenorb | ||
| S Nov 7, 2017 at 15:26 | history | notice added | kenorb | Authoritative reference needed | |
| Apr 21, 2017 at 23:36 | review | Close votes | |||
| Apr 22, 2017 at 4:24 | |||||
| S Apr 21, 2017 at 20:13 | history | bounty ended | CommunityBot | ||
| S Apr 21, 2017 at 20:13 | history | notice removed | CommunityBot | ||
| Apr 17, 2017 at 19:28 | comment | added | Zombo | This is not really the right site for this question. I wont be adding any more bounties if this one does not work. You should consider deleting this and reposting on unix.stackexchange.com | |
| S Apr 13, 2017 at 18:19 | history | bounty started | Zombo | ||
| S Apr 13, 2017 at 18:19 | history | notice added | Zombo | Draw attention | |
| Apr 11, 2017 at 14:51 | history | edited | Cosimo | CC BY-SA 3.0 |
Clarified why I need this
|
| Apr 11, 2017 at 14:49 | comment | added | Cosimo |
Sorry but that's not helping very much. The idea here is to install the trap in a file dropped in, for instance, /etc/profile.d/bash-logger and have any user shell session commands logged automatically to syslog.
|
|
| S Apr 11, 2017 at 4:18 | history | bounty ended | CommunityBot | ||
| S Apr 11, 2017 at 4:18 | history | notice removed | CommunityBot | ||
| Apr 10, 2017 at 14:16 | comment | added | Hastur |
@StevenPenny Yes, I was writing eval <command> and I cancel the wrong part, it happens... of course always if you do not want to force your script to use commands on disk instead of the alias/function ones...◉‿◉
|
|
| Apr 9, 2017 at 3:02 | comment | added | Zombo |
@Hastur I think you mean eval "$line"
|
|
| Apr 7, 2017 at 18:37 | history | edited | Cosimo | CC BY-SA 3.0 |
edited body
|
| Apr 7, 2017 at 16:11 | comment | added | Hastur |
What about while read -r line; do logger -t shell "$line"; command "$line"; done < myscript.sh ? If it works I may add some line more in an answer.
|
|
| Apr 3, 2017 at 5:11 | history | tweeted | twitter.com/super_user/status/848764968724025345 | ||
| S Apr 3, 2017 at 2:21 | history | bounty started | Zombo | ||
| S Apr 3, 2017 at 2:21 | history | notice added | Zombo | Draw attention | |
| S Feb 1, 2017 at 22:34 | history | suggested | 8bittree |
Add dash tag
|
|
| Feb 1, 2017 at 20:58 | review | Suggested edits | |||
| S Feb 1, 2017 at 22:34 | |||||
| Feb 1, 2017 at 12:43 | review | First posts | |||
| Feb 1, 2017 at 21:00 | |||||
| Feb 1, 2017 at 12:40 | history | asked | Cosimo | CC BY-SA 3.0 |