Re: Execute at login

2011-09-27 Thread Helmut Schneider
Polytropon wrote: > On Mon, 26 Sep 2011 20:41:43 + (UTC), Helmut Schneider wrote: > > Hi, > > > > which options do I have to execute at login? > > > > I would like to implement something like update-motd [1] without > > actually modifying /etc/motd. Th

Re: Execute at login

2011-09-27 Thread Polytropon
On Mon, 26 Sep 2011 20:41:43 + (UTC), Helmut Schneider wrote: > Hi, > > which options do I have to execute at login? > > I would like to implement something like update-motd [1] without > actually modifying /etc/motd. The code snippet is > > if [ -d /etc/motd.d ]; t

Execute at login

2011-09-26 Thread Helmut Schneider
Hi, which options do I have to execute at login? I would like to implement something like update-motd [1] without actually modifying /etc/motd. The code snippet is if [ -d /etc/motd.d ]; then for FILE in /etc/motd.d/*; do [ -x ${FILE} ] && ${FILE} done fi It should be executed