Hi folks
Does anyone know whether there is a setting in Terminal that will automatically generate log files of all Terminal sessions and save them individually? I saw an allusion to this on a post somewhere but cannot find any such setting myself.
That failing, can anyone give me a hand implementing this solution I found on a dead forum? I am an extreme novice when it comes to this.
Specifically;
1) I have saved a text file with this content on my desktop but when I try to copy it to /usr/local/bin via Terminal (because I can't actually navigate there manually with Finder) I get a permissions denied error...
2) How would I then make it executable?
3) How would I set is as the command to execute when creating a new terminal window in Terminal preferences - I cannot see where/how to set this.
MUCH 'bliged.
Does anyone know whether there is a setting in Terminal that will automatically generate log files of all Terminal sessions and save them individually? I saw an allusion to this on a post somewhere but cannot find any such setting myself.
That failing, can anyone give me a hand implementing this solution I found on a dead forum? I am an extreme novice when it comes to this.
Use the script command. I've set up one of the macs here to log everything automatically every time the terminal is opened. Just save these two lines into a blank file:
#!/bin/bash
script "/Users/<yourname>/Documents/Logs/`date "+%m.%d.%y %H.%M.%S"`"
Then make it executable, put it somewhere like /usr/local/bin and set it as the command to execute when creating a new terminal window in Terminal preferences.
Specifically;
1) I have saved a text file with this content on my desktop but when I try to copy it to /usr/local/bin via Terminal (because I can't actually navigate there manually with Finder) I get a permissions denied error...
2) How would I then make it executable?
3) How would I set is as the command to execute when creating a new terminal window in Terminal preferences - I cannot see where/how to set this.
MUCH 'bliged.