3 ms·
I'm still new to bash scripting - how do you use this? Just put into ~/.profile and create a cron job for $PROMPT_COMMAND?
by cbcoutinho 10y ago
I'm still new to bash scripting - how do you use this? Just put into ~/.profile and create a cron job for $PROMPT_COMMAND?
- amelius 10y agoJust put it in ~/.bashrc And run mkdir ~/.logs because that's where the logs are stored.
- BhavdeepSethi 10y agoJust add it to your ~/.bash_profile or ~/.bashrc (source it or restart your terminal). PROMPT_COMMAND: http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x264.html http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x264.html Nope, no cron. It basically takes your command, and appends (creates if it does not exist) it to a file based on the current date.