Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create a login/logout tracking log file for all users' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a login/logout tracking log file for all users
Authored by: PostScript on Jul 20, '07 11:13:02AM

Eh... pardon my ignorance, but a few things:

1. How do you create scripts?
2. My computer has no /usr/local/bin, so I have no idea how to save the script, if I knew how to make one.
3. My terminal is saying that it does not recognize a+x.
4. My terminal is saying that it does not recognize ?.

Er, sorry if these are obvious questions, but I'm not a very proficient user.

---
Phillip
"I played a blank tape on full volume. The mime who lives next door complained." -SW



[ Reply to This | # ]
Create a login/logout tracking log file for all users
Authored by: jamesconroyfinn on Oct 15, '07 09:20:48AM

1. How do you create scripts?

In a plaintext editor like TextEdit, or my favourite TextMate. BBEdit is the other major editor but it's expensive IMO.

2. My computer has no /usr/local/bin, so I have no idea how to save the script, if I knew how to make one.

You need to be an administrator and enable root access to tinker with the contents of /usr. If you have the priveleges necessary use:

sudo mkdir -p /usr/local/bin

to create the necessary directories all the way down to /usr/local/bin

3. My terminal is saying that it does not recognize a+x.

Once the scripts exist in the /usr/local/bin directory use…

chmod +x /usr/local/bin/loginscript

…to enable execution. You'll need to change loginscript to the name of your script, whatever that may be.

4. My terminal is saying that it does not recognize ?.

What exactly is the response from Terminal? Is it that terminal does not recognise a question mark or are you trying to work with files that don't exist??

The errors may be due to the scripts being located somewhere other than where you're chmod'ing.

---
James

[ Reply to This | # ]