\begin{Bravard, Mark}
> 1) How do you configure an account so that each time you logout the system
> will execute the fortune command and sleep for 15 seconds?

assuming bash:
put
 sleep 15 && fortune
at the end of the user's ~/.bash_logout


> 2) Modify the startup file so that each time you log into the system will
> create a command named "ll". When you type in the command "ll" at the
> prompt.

assuming bash:
put
 alias ll="ls -l"
somewhere in the user's ~/.bashrc

and make sure ~/.bash_profile includes:
 . ~/.bashrc
(silly bash design decision - other shells don't need this)


> 3) Create a shell script named "mylogin". The script will execute the `last`
> command and display to the screen a list of all the times you have log into
> techlinux. I want it to display information about your account only. 

cat >mylogin <<EOF
#!/bin/sh
# try lots of things to find out the current user:
exec last ${USER:-${LOGNAME:-`whoami`}}
EOF

chmod +x mylogin
./mylogin

> This message is being sent by or on behalf of a lawyer.

nice to know a lawyer is interested in such detailed unix matters.

> It is intended exclusively for the individual or entity to which it is addressed.  
>This communication may contain information that is proprietary, privileged or 
>confidential or otherwise legally exempt from disclosure.  If you are not the named 
>addressee, you are not authorized to read, print, retain, copy or disseminate this 
>message or any part of it.  If you have received this message in error, please notify 
>the sender immediately by e-mail and delete all copies of the message.

lawyers just can't cope with people being nice to each other by
choice, can they..

besides which, there's a few bugs:

given that the disclaimer is at the end of the email, how are we to
find it with reading the email. by the time we read "you are not
authorized to read .. this message or any part of it" its way too
late.

i am not "the individual or entity to which it is addressed" (slug
isn't a legal entity, afaik. and if it was, everyone subscribed to the
slug list is certainly not a representative of that entity) and yet i
have not "received this message in error", so i am under no obligation
(assuming this was legally binding, and i'd find that surprising) to
"notify the sender immediately .. and delete all copies".

if he was a coder writing code, i wouldn't hire him. since he's a
lawyer writing legalese..

-- 
 - Gus


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to